To get started, I would like to apologize for my English, which is far from perfect (its not my native language ...).
I have a problem with data binding in my XAML code. I have a combox that should display all the graphic nodes that I drop onto a custom canvas. My graphic nodes are listed graphCanvas.uinodes, and each node has name. And this is what I want to show in my combo box.
So, I tried something like this:
<ComboBox ItemsSource="{Binding ElementName=graphCanvas, Path=uinodes/name}"
Height="23" HorizontalAlignment="Left" Name="comboBox1"
VerticalAlignment="Top" Width="71" Foreground="Black" />
But even after drawing the nodes on my canvas, my combox is empty ...
Any clue?
Thank.
source
share