Click here to Skip to main content
15,867,835 members
Home / Discussions / WPF
   

WPF

 
QuestionTuple as a Binding Parameter Pin
Ahrimal6-Sep-12 22:11
Ahrimal6-Sep-12 22:11 
QuestionBinding to an XML list of attributes Pin
Jayme656-Sep-12 11:46
Jayme656-Sep-12 11:46 
AnswerRe: Binding to an XML list of attributes Pin
Pete O'Hanlon6-Sep-12 22:24
subeditorPete O'Hanlon6-Sep-12 22:24 
GeneralRe: Binding to an XML list of attributes Pin
Jayme657-Sep-12 6:11
Jayme657-Sep-12 6:11 
GeneralRe: Binding to an XML list of attributes Pin
Pete O'Hanlon7-Sep-12 6:52
subeditorPete O'Hanlon7-Sep-12 6:52 
GeneralRe: Binding to an XML list of attributes Pin
Jayme657-Sep-12 7:10
Jayme657-Sep-12 7:10 
GeneralRe: Binding to an XML list of attributes Pin
dbaseman7-Sep-12 21:06
dbaseman7-Sep-12 21:06 
GeneralRe: Binding to an XML list of attributes Pin
Jayme658-Sep-12 0:32
Jayme658-Sep-12 0:32 
Thank you very much!! For the first time I can see those data displayed!! Wink | ;-)
Just one think... of importance:
ALL the "Kind" attributes are displayed.
I've tried a "IsSynchronizedWithCurrentItem="True"" but it doesn't change anything.
Any idea on how to fix it, please?

The datatemplate for the combobox that displays the system's "Name":
XML
<DataTemplate x:Key="SystemTemplate">
  <Label Content="{Binding XPath=Gear}"/>
</DataTemplate>

The datatemplate for the ListBox that display the "Kind" name attributes (related to the selected "System"!!):
XML
<DataTemplate x:Key="KindTemplate">
  <TextBlock Text="{Binding XPath=@name}"/>
</DataTemplate>


The WPF controls:
XML
<ComboBox  Height="37" HorizontalAlignment="Left" Margin="12,262,0,0" Name="ComboBox1" VerticalAlignment="Top" Width="167"
  ItemsSource="{Binding}"
  ItemTemplate="{StaticResource SystemTemplate}"
  IsSynchronizedWithCurrentItem="True">
</ComboBox>

<ListBox ItemsSource="{Binding XPath=//Kind}" ItemTemplate="{StaticResource KindTemplate}" IsSynchronizedWithCurrentItem="True" Margin="425,35,12,149" />


modified 8-Sep-12 6:48am.

GeneralRe: Binding to an XML list of attributes Pin
dbaseman8-Sep-12 10:08
dbaseman8-Sep-12 10:08 
GeneralRe: Binding to an XML list of attributes Pin
Jayme659-Sep-12 0:04
Jayme659-Sep-12 0:04 
GeneralRe: Binding to an XML list of attributes Pin
dbaseman9-Sep-12 16:18
dbaseman9-Sep-12 16:18 
QuestionHow to implement a gallery like the built-in gallery in Windows Phone Pin
small25-Sep-12 16:22
small25-Sep-12 16:22 
GeneralRe: How to implement a gallery like the built-in gallery in Windows Phone Pin
small29-Sep-12 15:19
small29-Sep-12 15:19 
QuestionSet background of TreeViewItem within HierarchicalDataTemplate with converter Pin
toengi19824-Sep-12 20:19
toengi19824-Sep-12 20:19 
AnswerRe: Set background of TreeViewItem within HierarchicalDataTemplate with converter Pin
Wayne Gaylard4-Sep-12 21:57
professionalWayne Gaylard4-Sep-12 21:57 
SuggestionRe: Set background of TreeViewItem within HierarchicalDataTemplate with converter Pin
toengi19824-Sep-12 22:03
toengi19824-Sep-12 22:03 
GeneralRe: Set background of TreeViewItem within HierarchicalDataTemplate with converter Pin
Wayne Gaylard4-Sep-12 22:11
professionalWayne Gaylard4-Sep-12 22:11 
SuggestionRe: Set background of TreeViewItem within HierarchicalDataTemplate with converter Pin
Mycroft Holmes5-Sep-12 12:52
professionalMycroft Holmes5-Sep-12 12:52 
QuestionCommandParameter is null when opening a ContextMenu Pin
AlexZieg713-Sep-12 22:57
AlexZieg713-Sep-12 22:57 
QuestionReuse template for different listbox items Pin
LionAM3-Sep-12 5:09
LionAM3-Sep-12 5:09 
Questiontreeview that has a custom treeview that consists of a button and a textbox Pin
truel3-Sep-12 4:48
truel3-Sep-12 4:48 
AnswerRe: treeview that has a custom treeview that consists of a button and a textbox Pin
Abhinav S3-Sep-12 7:12
Abhinav S3-Sep-12 7:12 
QuestionXML file source from users/appdata/roaming folder Pin
Jayme653-Sep-12 3:31
Jayme653-Sep-12 3:31 
AnswerRe: XML file source from users/appdata/roaming folder Pin
Mycroft Holmes3-Sep-12 13:11
professionalMycroft Holmes3-Sep-12 13:11 
GeneralRe: XML file source from users/appdata/roaming folder Pin
Pete O'Hanlon3-Sep-12 22:18
subeditorPete O'Hanlon3-Sep-12 22:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.