I have an App Bar with some buttons like this
<Page.BottomAppBar>
<AppBar x:Name="bottomAppBar" Padding="10,10,10,10" >
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
<Button Style="{StaticResource ReadAppBarButtonStyle}" >
</Button>
</StackPanel>
</AppBar>
</Page.BottomAppBar>
I want to bind the button text to a selected item property of a ListView and use an IValueConverter.
I found that the button text is to be set using AutomationProperties.Name
how can I bind this property through XAML or Code.
Thanks
You’re right, for some reason the following doesn’t work, although the same binding works just fine you use it for e.g.
Textproperty of aTextBox:I did manage to get it work by using a property in the view model and binding to it both
ListView.SelectedItemandAutomationProperties.Name:SelectedStringshould be a property in a view model implementingINotifyPropertyChanged: