Hi,
I have a floating pane "LeftPane" that needs to act like photoshop tool palette.The pane is floating and its location is set as expected, but its size can not go under 84px.I tried all the possible ways of resizing the pane,the pane group,and the tool window to 26px but none of this worked and the floating pane width is always ~84px while resizing would work if i am setting to a bigger size (e.g 150px).
Thanks in advance
Madani
I have a floating pane "LeftPane" that needs to act like photoshop tool palette.The pane is floating and its location is set as expected, but its size can not go under 84px.I tried all the possible ways of resizing the pane,the pane group,and the tool window to 26px but none of this worked and the floating pane width is always ~84px while resizing would work if i am setting to a bigger size (e.g 150px).
<telerik:RadDocking Grid.Row="1" HasDocumentHost="False" x:Name="radDocking" AllowUnsafeMode="True" VerticalAlignment="Stretch" VerticalContentAlignment="Stretch" ClipToBounds="True" Margin="0,0,0,0" PaneStateChange="radDocking_PaneStateChange"> <telerik:RadSplitContainer InitialPosition="DockedTop" Orientation="Horizontal" VerticalAlignment="Stretch" VerticalContentAlignment="Stretch" telerik:RadDocking.FloatingSize="26,300" telerik:RadDocking.FloatingLocation="7,200" > <telerik:RadPaneGroup Name="LeftPaneGroup" telerik:ProportionalStackPanel.RelativeSize="20, 500"> <telerik:RadPane PaneHeaderVisibility="Collapsed" Name="LeftPane" prism:RegionManager.RegionName="LeftRegion"> </telerik:RadPane> </telerik:RadPaneGroup> <telerik:RadPaneGroup telerik:ProportionalStackPanel.RelativeSize="80, 500" > <telerik:RadPane Name="ContentPane" VerticalAlignment="Stretch" VerticalContentAlignment="Stretch"> <ContentControl prism:RegionManager.RegionName="ContentRegion"/> </telerik:RadPane> </telerik:RadPaneGroup> </telerik:RadSplitContainer> </telerik:RadDocking>private void radDocking_PaneStateChange(object sender, Telerik.Windows.RadRoutedEventArgs e) { if (e.OriginalSource == LeftPane) { if (LeftPane.IsFloating) { LeftPane.CanUserClose = false; LeftPane.MaxWidth = 26; LeftPane.Width = 26; LeftPane.PaneHeaderVisibility = System.Windows.Visibility.Collapsed; ToolWindow window = LeftPane.ParentOfType<ToolWindow>(); if (window == null) { window = (((LeftPane.Parent as RadPaneGroup).Parent as RadSplitContainer).Parent) as ToolWindow; } window.Width = 26; window.MaxWidth = 26; LeftPaneGroup.Width = 26; LeftPaneGroup.MaxWidth = 26; } } }Thanks in advance
Madani