Is there an option/property or "workaround" to get the behavior of the old Infragistics.Win.UltraTree.ScrollBounds = ScrollToFill ?
Currently with WPF 2015.2 XamDataTree in a panel, nodes did not fill up to the lower border end results in a horizontal scrollbar shown immediately below the last visible node. But it should be at the lower border of the control! See image, the area with the red cross should be filled by the tree (with empty/transparent nodes??) and not show the outer control background:
http://prntscr.com/ad4cy7
How do I get the scrollbar to the bottom?
Hello,
Controls inside a panel will use their assigned width and height. This explains the nature of having extra space at the bottom of your data tree. You have two choices to address this, manually increase the height of the XamDataTree or replace the panel with a grid container and remove the Horizontal and VerticalAlignment properties to allow docking or set them to Stretch.
Let me know if you have any questions regarding this matter.
In context of WPF you are right, I know. But: have a look to my xaml code at
http://prntscr.com/adg5wt
Do I something wrong here? No Width/Height set, no code behind change the Height. Still the same image I posted above :-(
I should mention that I load the theme provided by IG:
<ResourceDictionary Source="/MyApp;component/Themes/Office2013/Office2013.xamDataTree.xaml" />
Does it matter?
Because Stack Panels are not designed this way. You would be better off using a DockPanel instead.
http://stackoverflow.com/posts/569275/revisions
Let me know if you have any additional questions.
This makes the difference! Thanks! I don't know why it does not work as expected within a StackPanel...
The behavior is your seeing is expected because stack panel derives from panel. I recommend altering your code to use row definitions instead set the Alignment properties to Stretch. Let me know if you have any questions.
Example.
<Grid><Grid.RowDefinitions ><RowDefinition Height = Auto /><RowDefinition /></Grid.RowDefinition>
<toolbar grid.row = 0 ... ><ig:XamDataTree grid.row = 1 HorizontalAlignment = Stretch VerticalAlignment = Stretch>
</Grid