hi - I'm evaluating ig controls and am unable to get scroll bars in the xamdatatree - can anyone tell me how to do this?
Thanks,
chris
Hi,
Scrollbars should be automatically shown / hidden depending on if the content fits in the XamDataTree's content area.
Isn't that how it works for you ?
HTH,
Stoimen - thanks for getting back to me.
I'm loading several thousand items into a XamDataTree. The data tree is contained in a grid. the grid is contained in an igDock:ContentPane. The tree is initially collapsed. When I expand it, I don't automatically get a vertical or horizontal scroll bar, even though both should show up.
I tested, but I was unable to reproduce your issue. I tried something like the following:
<igDock:XamDockManager> <igDock:XamDockManager.Panes> <igDock:SplitPane> <igDock:ContentPane Header="foo"> <Grid x:Name="LayoutRoot" Background="White"> <Grid.Resources> <data:TestDataSource x:Key="TestDataSource"/> </Grid.Resources> <ig:XamDataTree x:Name="TestXamDataTree" ItemsSource="{StaticResource TestDataSource}"> <ig:XamDataTree.GlobalNodeLayouts> <ig:NodeLayout Key="EnumerableData" TargetTypeName="TestData" DisplayMemberPath="TextData" IsDraggable="True"/> </ig:XamDataTree.GlobalNodeLayouts> </ig:XamDataTree> </Grid> </igDock:ContentPane> </igDock:SplitPane> </igDock:XamDockManager.Panes> </igDock:XamDockManager>
Could you please try to isolate the issue in a separate sample and send it so I am able to reproduce your issue? Also, please let me know which is the build you are using (1003, 2018?).
Hi Stoimen. thanks for sticking with me. I think I figured out the problem.
We are using Prism.
With this in the shell, I do not get scroll bars on the tree in my view. Actually I was able to by adding row/column defs in the view xaml with the row having a fixed height.
<igDock:ContentPane x:Name="baseTaxonomyDock" Header="Base Taxonomy" AllowClose="False" CloseButtonVisibility="Collapsed" IsPinned="True"> <ItemsControl prism:RegionManager.RegionName="BaseTaxonomyRegion" DockPanel.Dock="Right"/></igDock:ContentPane>
With this in the shell, I do get scroll bars on the tree in my view. No row/column defs needed. It just works.
<igDock:ContentPane x:Name="baseTaxonomyDock" Header="Base Taxonomy" AllowClose="False" CloseButtonVisibility="Collapsed" IsPinned="True"> <ContentControl prism:RegionManager.RegionName="BaseTaxonomyRegion" DockPanel.Dock="Right"/></igDock:ContentPane>