Sorry for the title, I do not know how to explain it in a sentence.
So my goal is: Need a bullion in my ViewModel, defines the visibility for the control (range).
I know that I can achieve it with the BooleanTwizibility Connor, but it's a bit more. If the control is not visible then I want a button on my UI. Once the button is pressed, I want to believe the boolean as correct in my ViewModel and then I want to see the control and finish the button which was pushed just for collapse. After the control is visible, I think that a button within the visual control has recently broken down to control and then the original button will appear.
Basically, there are two buttons: 1 to appear (then collapse yourself) and the second has to collapse its container and then show the first button.
I am trying to do this with MVVM so that I can escape the code in my view which would be ideal!
Since you are using ICMMend on your viewodel, it should work ... assume That your order "ShowBorderCommand" and "HideBorderCommand" and the property on your ViewModel is "ShowBorder"
& Lt; Converter namespace: reverse bulliontvsibility converter x: key = "bulletocolps" /> & Lt; Segment Visibility = "{Binding ShowBorder, Converter = {Static Resources BoolToVis}}" & gt; & Lt; Button command = "{Binding HideBorderCommand}" /> & Lt; / Border & gt; & Lt; Button command = "{binding showband comma}" Visibility = "{binding showboard, converter = {static resource bulletocoldex}}" />
Comments
Post a Comment