Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
85
xamWebTree
posted

Hi,

based on my senario:

the code here is working fine with microsft silverlight TreeView like this.

<UserControl.Resources>

        <test:HierarchicalDataTemplate x:Name="template1" ItemsSource="{Binding Friends}">
            <StackPanel>
                <TextBlock Text="{Binding Path=Name}" />
            </StackPanel>
        </test:HierarchicalDataTemplate>

    </UserControl.Resources>

    <StackPanel x:Name="LayoutRoot">
        <TextBlock Text="{Binding Name}"
                   FontSize="32" />
        <controls:TreeView ItemsSource="{Binding Friends}"
                           ItemTemplate="{StaticResource template1}">
        </controls:TreeView>
    
    </StackPanel>

 

But, My Question is if i use XamWebTree and binding the tree just like above, it is not working.

can any one help me how to approach this using XamWebTree

Parents
  • 5595
    posted

    Hi,

    Could you provide the namespace to which the "test" alias points?

    XamWebTree uses HierarchicalDataTemplate class which is in Infragistics assemblies and namespace, so that might be the problem, e.g.:

     

    xmlns

     

     

    :test="clr-namespace:Infragistics.Silverlight.Controls;assembly=Infragistics.Silverlight.v9.1"

     

     HTH,

Reply Children
No Data