Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

How to find a BindigGroup (by type) in a DataTemplate

$
0
0

Hi,

I have some DataTemplates (defined in different xaml files loaded at runtime) and I have to search (and retrieve) all BindingGroups used.
the problem is that I need to search them by type because the templates change every time.

<DataTemplate><DataTemplate.Resources><BindingGroup Name="BindingGroup1" >
    ....</BindingGroup><DataTemplate.Resources><ScrollViewer><StackPanel Orientation="Horizontal"><Grid><Grid.BindingGroup><BindingGroup Name="BindingGroup2" >
          ....</BindingGroup></Grid.BindingGroup>     </Grid><Grid><Grid.BindingGroup><BindingGroup Name="BindingGroup3" >
          ....</BindingGroup></Grid.BindingGroup>     </Grid><StackPanel></ScrollViewer></DataTemplate>

Any suggestions?

Daniele.


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>