I have a XamDataTree, which i need to bind a command to. I am using MVVM. In the ViewModel is the ShowReportCommand. How do i set this up so it works, without the binding error i currently have:
<igDT:XamDataTree Name="Reports" ItemsSource="{Binding ReportList}" NodeLineVisibility="Visible" Height="Auto" MaxHeight="300" BorderThickness="0" Width="Auto" MaxWidth="{Binding ElementName=ReportsExpander, Path=ActualWidth, Converter={StaticResource WidthMinusScrollConverter}}" > <igDT:XamDataTree.GlobalNodeLayouts> <igDT:NodeLayout Key="ReportFolder" TargetTypeName="ReportFolder" DisplayMemberPath="FolderName" /> <igDT:NodeLayout Key="Report" TargetTypeName="Report" DisplayMemberPath="DisplayName"> <igDT:NodeLayout.ItemTemplate> <DataTemplate> <Button Style="{StaticResource LinkButton}" Command="{Binding ShowReportCommand}" CommandParameter="{Binding}" > <StackPanel Orientation="Horizontal" > <Image Source="/Resources/Icons/report.png"/> <TextBlock Text="{Binding Data.DisplayName}" Style="{StaticResource MenuTB}" /> </StackPanel> </Button> </DataTemplate> </igDT:NodeLayout.ItemTemplate> </igDT:NodeLayout> </igDT:XamDataTree.GlobalNodeLayouts> </igDT:XamDataTree>
yeah sorry for that i guess you guys have a new fourms system, sometimes it posts questions immediately and sometimes it doesn't...
Hi Travis,
I have already answered this question in the following forum thread:
http://es.infragistics.com/community/forums/p/92787/458789.aspx#458789