I'm trying to bind IsEnabled property of AppBarButton to ToggleButton in XAML and it just doesn't work. There are no error messages or warnings. I can check or uncheck ToggleButton but nothing happens with AppBarButton. I have no idea where the problem is. Here's sample code:
<Page.BottomAppBar>
<CommandBar>
<AppBarButton IsEnabled="{Binding IsChecked, ElementName=button}"/>
</CommandBar>
</Page.BottomAppBar>
<Grid>
<ToggleButton x:Name="button" Content="ToggleButton"/>
</Grid>
AcceptCheckBox.Click += (s, a) => { var conv = new NullableBoolToBoolConverter(); AcceptButton.IsEnabled = (bool)conv.Convert(AcceptCheckBox.IsChecked, typeof(bool), null, ""); };- saorist