I am trying to connect / apply a Windows RT application to WIndows10 and I am trying to use the new x: Bind bindings.
So far, I can bind to my ViewModel properties and other View elements. But now I'm trying to bind TextBox text to a SelectedItem GridView.
In classic binding, I do it like this.
<TextBox x:Name="tb_textgroup" Grid.Row="1" PlaceholderText="Change Groupname" Text="{Binding UpdateSourceTrigger=PropertyChanged, ElementName=gv_textgroup, Mode=TwoWay,Path=SelectedItem.bezeich}" IsEnabled="{Binding UpdateSourceTrigger=PropertyChanged, ElementName=gv_textgroup, Mode=TwoWay,Path=SelectedItem.edit_activated}" Margin="20,10,20,0" />
I tried using
- Text = "{x: Bind gv_textgroup.SelectedItem.bezeich, Mode = TwoWay}"
- Text = "{x: Link the text group [gv_textgroup.SelectedIndex] .bezeich, Mode = TwoWay}"
- where textgroup is my viewmodelclass class with all elements
But none of them worked ... any ideas?
And can someone explain to me what to do with "DependencyProperty". I watched viedo with "build 2015" and had code samples. But that doesnโt tell me anything ... I'm pretty newbie ...
Many thanks for your help
source share