Hello everybody,
I want to bind the property "IsOpen" of a CommandBar to a bool value of my ViewModel.
However even this simple version does not work:
<CommandBar x:Name="CommandBar1" IsOpen="{Binding}">
and in CodeBehind:
CommandBar1.DataContext = true;
Of course, this is a very simple example, but in my opinion this should work, so that the CommandBar is shown.
A direct
CommandBar1.IsOpen = true;
works fine . . .
Thank you very much in advance!