Hi I'm trying changing font size of a treeView at runtime.
My treeView is contained in a UltraExplorerBar
when I set a font larger then original, the treeview grow accordingly....
But the group(i have a lot of goup in UltraExplorerBar ) of the UltraExplorerBar that contain the treeview don't grow...so my treeview go out of his group and some elements result invisible.
How can i change the size of UltraExplorerBarGroup ?
Code Sample
Friend WithEvents barDecreti As Infragistics.Win.UltraWinExplorerBar.UltraExplorerBar
....
Dim new_font As New Font(barDecreti.Font.FontFamily, new_size, barDecreti.Font.Style, barDecreti.Font.Unit)
barDecreti.Font = new_font
For Each gruppo As Infragistics.Win.UltraWinExplorerBar.UltraExplorerBarGroup In barDecreti.Groups()
Dim tree As UltraTree = GetGroupTreeView(gruppo)
If tree.Override.NodeSpacingAfter + factor > 0 Then
tree.Override.NodeSpacingAfter += (factor)
End If
If tree.Override.ItemHeight + factor > 0 Then
tree.Override.ItemHeight += factor
Next
Hello crossslr,
To change the size of an UltraExplorerBarGroup you could use an approach like the following:
ultraExplorerBar1.Groups[0].Settings.ContainerHeight = integer;
As to the the width of the UltraExplorerBarGroup - it depends of the width of the whole UltraExplorerBar.
Please note, we are making efforts to ensure all posts are addressed by an Infragistics expert. We believe that the other community members could benefit from this thread as well.
Please do not hesitate to contact us if you need any additional assistance.