winrt xaml - Setting Visibility based on another control's visualstate -


is possible set visibility on grid or other element based on visual state of control? i'm starting wrap head around visualstatemanager concept (having found style triggers can't used in universal apps) can't work out if can done or not.

to specific scenario, able set visibility of 1 or more elements if specific item/index in listview selected? if so, how?

i maintain listview selection in property of viewmodel , bind grid.visibility property. need ivalueconverter convert selected item's datatype system.windows.visibility, required grid.visibility binding.

in case logic determine visiblity more complex, e.g. requires application state, add property bool isimportantitemselected viewmodel , bind grid.visibility property. approach allows keep complex logic in viewmodel. you'd need ivalueconverter again convert bool system.windows.visibility.


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -