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
290
How to disable horizontal scroll bar in the XamTree control?
posted

I would like to disable horizontal scroll bar in the XamTree control to get a tree view like in MS Outlook (there is no horizontal scroll bar when you minimize the outlook bar in MS Outlook).  The problem is that when I disable it, XamTreeItems get truncated.  ScrollViewer.HorizontalScrollBarVisibility="Hidden" does not work for me because, in this case, when you select a child XamTreeItem, XamTree automatically scrolls to the selected item. 

 

<Grid x:Name="LayoutRoot" Background="White" Width="400">

   <ig:XamTree x:Name="XamNavigationTree" ScrollViewer.HorizontalScrollBarVisibility="Disabled"/>

</Grid>

 

private void MainPage_OnLoaded(object sender, RoutedEventArgs e)

{

   for (int i = 0; i < 10; i++)

   {

      XamTreeItem parentItem = new XamTreeItem();

      parentItem.Header = "Parent XamTreeItem with a long header";

      XamNavigationTree.Items.Add(parentItem);

 

      for (int j = 0; j < 5; j++)

      {

         XamTreeItem child = new XamTreeItem();

         child.Header = "Child XamTreeItem with a long header.Child XamTreeItem with a long header";

         parentItem.Items.Add(child);

      }

    }

 }

Parents
No Data
Reply
  • 138253
    Offline posted

    Hello,

     

    I have logged this with development under ID: 132009 and I have also created a support ticket on your behalf: CAS-109803-Z7X4Q7 and have linked the development issue to it, so that you can get automatically updated, when a Service Release containing the fix is available for download. You can get the new version from our website’s “My IG”, “My Keys & Downloads” tags: https://es.infragistics.com/Membership/Default.aspx?panel=Downloads#Downloads

     

    You can also monitor the support ticket’s progress through the “My Support Activity” tag: https://es.infragistics.com/Membership/MySupport.aspx

Children