data binding - Silverlight relativebinding ItemTemplate ListboxItem - Listbox -
I have created the program in a square (I call it the wordgrid) so that I use it as the ItemTemplate for the list list. Do it Of course, this is my data template for listboxes ....
In addition, in my ViewGrid class, I have found a dependency property named IsChecked and I keep it in sync With the IsSelected Property of ListBoxItem I have seen that any relational resource-finder in SL-ancestors support to force WPF as such, still, I have my IsChecked property internally generated ListBoxItem Syncing with IsSelected Property Z must find a way to do my Suchibks control you can help?
This is a listbox defined in XAML which uses the IsSelected property of each Litbox item Is or hide the button when selected. You just need to duplicate the binding approach to the listbox, you create in code. Either create a UserControl with that, or the appropriate ListBoxItem XAML, and insert the examples of those UserControls in those ListCon.
& lt; ListBox & gt; & Lt; ListBox.ItemTemplate & gt; & Lt; DataTemplate & gt; & Lt; Grid width = "200" height = "120" & gt; & Lt; Stackpayel margin = "5" & gt; & Lt; Text block text = "{binding name, mode = wilayev}" /> & Lt; StackPainel Visibility = "{Iscibly Binding, Mod = Wayway, Converter = {Static Resource Bulletoviewi}}" & gt; & Lt; Button content = "show details" click = "manual command" tag = "{binding}" /> & Lt; / StackPanel & gt; & Lt; / StackPanel & gt; & Lt; / Grid & gt; & Lt; / DataTemplate & gt; & Lt; /ListBox.ItemTemplate> & Lt; / ListBox & gt;
Comments
Post a Comment