How can i display one image if the node is expanded, and another if it is not expanded? I can't seem to figure out the trigger for this... I already have a DataTemplate started:
<igDT:NodeLayout Key="ReportFolder" TargetTypeName="ReportFolder" DisplayMemberPath="FolderName" > <igDT:NodeLayout.ItemTemplate> <DataTemplate> <StackPanel Orientation="Horizontal" > <Image Source="/Resources/Icons/closed_folder.png" /> //this needs to be open_folder.png when IsExpanded=true <TextBlock Text="{Binding Data.FolderName}"/> </StackPanel> </DataTemplate> </igDT:NodeLayout.ItemTemplate> </igDT:NodeLayout>
Hello Travis,
Rather than defining a NodeLayout.ItemTemplate, I would recommend that you look into the ExpandedIconTemplate and CollapsedIconTemplate values of the XamDataTree. If you set these to a DataTemplate with an Image inside, they will change accordingly.
Please let me know if you have any other questions or concerns on this matter.
Sincerely,AndrewDeveloper Support Engineer IInfragistics Inc.www.infragistics.com/support