IsHidden
="{Binding Hidden, Mode=TwoWay}"
public bool Hidden
{
get { return hidden; }
set
{
hidden =
value;
PropertyChanged.Raise(
this, "IsHidden"); // Raise is an extension method to do a property changed event
}
}
<
telerik:RadDocking.DocumentHost
>
<
telerik:RadSplitContainer
Orientation
=
"Vertical"
>
<
telerik:RadPaneGroup
Name
=
"myGroup"
AllowDragReorder
=
"False"
telerik:ProportionalStackPanel.RelativeSize
=
"300, 200"
Grid.Row
=
"1"
SelectionChanged
=
"myGroup_SelectionChanged"
DropDownDisplayMode
=
"Visible"
ScrollViewer.HorizontalScrollBarVisibility
=
"Auto"
>
</
telerik:RadPaneGroup
>
<
telerik:RadPaneGroup
telerik:ProportionalStackPanel.RelativeSize
=
"300, 200"
Visibility
=
"Collapsed"
Name
=
"DocumentClasses"
AllowDragReorder
=
"False"
>
<
telerik:RadPane
Header
=
"Column Selection"
Name
=
"ColumnPane"
CanFloat
=
"False"
CanUserPin
=
"true"
IsPinned
=
"True"
Content
=
"Column selection go here."
/>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
</
telerik:RadDocking.DocumentHost
>
Hi Telerik,
This might be an obvious question but I'd like to ask this anyway. I have two RadDocumentPanes, I'd like to close the inactive pane (that's pane B, see Sample.png) by clicking the close button. But the pane being closed is the selected/active pane (that's pane A).
My Code:
<telerik:RadButton x:Name="CloseButton"
Grid.Column="4"
Command="telerik:RadDockingCommands.Close"
Style="{StaticResource CustomRadButtonDocumentCloseStyle}"
Visibility="{Binding IsEnabled, RelativeSource={RelativeSource Self}, Converter={StaticResource BooleanToVisibilityConverter}}"/>
Hi, is it possible to keep a UI element in front of a RadPane
when it is in a Flyout state?
I have used the xaml-sdkbrowser to create an example showing
the problem.
After initial load the text is in front of the RadPane. But
if you collapse all panes down and then hover over one to make it FlyOut the
pane is in front of the text. I have tried using the Canvas.ZIndex property but
this seems to make no difference.
<
UserControl
x:Class
=
"PaneGroupItemsSource.Example"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
xmlns:local
=
"clr-namespace:PaneGroupItemsSource"
mc:Ignorable
=
"d"
d:DesignHeight
=
"300"
d:DesignWidth
=
"400"
>
<
Grid
x:Name
=
"LayoutRoot"
Background
=
"White"
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
/>
</
Grid.RowDefinitions
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
Button
Content
=
"Reset Panes"
Click
=
"ButtonReset_Click"
Margin
=
"5"
/>
<
Button
Content
=
"Add"
Click
=
"ButtonAdd_Click"
Margin
=
"5"
/>
<
Button
Content
=
"Insert"
Click
=
"ButtonInsert_Click"
Margin
=
"5"
/>
<
Button
Content
=
"Delete First"
Click
=
"ButtonDelFirst_Click"
Margin
=
"5"
/>
<
Button
Content
=
"Delete Last"
Click
=
"ButtonDelLast_Click"
Margin
=
"5"
/>
</
StackPanel
>
<
telerik:RadDocking
Grid.Row
=
"1"
x:Name
=
"dock"
Canvas.ZIndex
=
"1"
>
<
telerik:RadSplitContainer
Canvas.ZIndex
=
"1"
>
<
telerik:RadPaneGroup
x:Name
=
"PaneGroup"
Canvas.ZIndex
=
"1"
local:PaneGroupExtensions.ItemsSource
=
"{Binding}"
/>
</
telerik:RadSplitContainer
>
</
telerik:RadDocking
>
<
StackPanel
Margin
=
"100,100,100,100"
Grid.Row
=
"1"
Canvas.ZIndex
=
"999999"
>
<
TextBlock
>Put This Text Infront</
TextBlock
></
StackPanel
>
</
Grid
>
</
UserControl
>
We need to implement a zooming feature on our control, which include RadDocking element.
Unfortunately, the floating tool windows do not scale just by applying RenderTransform to the control, like this:
Dock.RenderTransform = new ScaleTransform { ScaleX = Scaler.Scale, ScaleY = .caler.Scale };
As said in this thread (http://www.telerik.com/forums/applying-a-scaletransform-to-a-raddocking-container-causes-splitters-to-drag-strangely) there is no native solution to this. However, is this possible with manual control over the positioning and scaling of the windows? Is there a way to get a list of all tool windows generated for RadPanes, and is it possible to control their position and scale?
Thanks.
Hello
I want to use RadDocking inside a RadWindow.
I use this code :
<
telerik:RadWindow
x:Class
=
"Silverlight.Test.FrmWindow1"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
Header
=
"Window1"
>
<
telerik:RadDocking
>
<
telerik:RadDocking.DocumentHost
>
<
telerik:RadSplitContainer
>
<
telerik:RadPaneGroup
Padding
=
"0"
>
<
telerik:RadPane
Visibility
=
"Collapsed"
CanUserClose
=
"False"
>
<
Border
Background
=
"Red"
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Stretch"
>
<
telerik:Label
Content
=
"DocumentHost"
HorizontalAlignment
=
"Center"
VerticalAlignment
=
"Center"
/>
</
Border
>
</
telerik:RadPane
>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
</
telerik:RadDocking.DocumentHost
>
<
telerik:RadSplitContainer
InitialPosition
=
"DockedLeft"
Orientation
=
"Vertical"
>
<
telerik:RadPaneGroup
>
<
telerik:RadPane
Header
=
"Toolbox"
/>
</
telerik:RadPaneGroup
>
<
telerik:RadPaneGroup
>
<
telerik:RadPane
Header
=
"Server Explorer"
/>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
<
telerik:RadSplitContainer
InitialPosition
=
"DockedTop"
Height
=
"80"
>
<
telerik:RadPaneGroup
>
<
telerik:RadDocumentPane
Header
=
"Navigation"
>
<
Border
Background
=
"Aqua"
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Stretch"
>
<
telerik:Label
Content
=
"DocumentHost"
/>
</
Border
>
</
telerik:RadDocumentPane
>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
</
telerik:RadDocking
>
</
telerik:RadWindow
>
Everything work except Pin/Unpin RadPane. Icon is visible but click has not effect.
Is a limitation or I miss something ? (this code work in a UserControl)
Thank in advance for your help.
Arnaud.
<telerik:RadDocking.DocumentHost>
<telerik:RadSplitContainer>
<telerik:RadPaneGroup x:Name="radTabs" TabStripPlacement="Left" TabOrientation="Horizontal" AllTabsEqualHeight="True" Background="White" Margin="0" SelectedIndex="1" TabIndex="0" Align="Left" HorizontalContentAlignment="Center">
<telerik:RadPane HeaderTemplate="{StaticResource TabHeader}" Header="Policy Information" x:Name="tabPolicyInfo" Margin="0,0,2,0" CanUserClose="False" CanFloat="False" IsSelected="True">
</telerik:RadPane>
</telerik:RadSplitContainer>
</telerik:RadDocking.DocumentHost>
</telerik:RadDocking>
Thanks,
Lana
RadDocking in the RadWindow in modal dialog mode. Yes, it can be :)
Anyway, when I trying to drag a RadPane, everything is Ok until I released this pane.
1) When I clicking something in RadWindow, floating pane hides behind the overlay of RadWindow.
2) When I drop RadPane in SplitContainer (beside of primary RadPaneGroup of DocumentHost) and drag it again, it drags behind the overlay again. But if I put the pane in primary RadPaneGroup and drag it, RadPane is on top z-index again.
Sorry for my English.
Microsoft Silverlight (64-bit) Version: 5.1.41105.0
Windows 8.1 (64-bit)
Internet Explorer 11.0.9600.17416
Telerik 2016.2.503.1050
What is the recommended way to set the DragVisual to a template for Deferred drag and drop?
I would also like to change the DragVisual offset for all deferred drags of a Title Bar so that it is X centered at the cursor even if the drag click was on the right side of the Title Bar (the tab drag offset is fine the way it is).
It looks like there are two DragVisuals - one for RadPane and one for RadPaneHeader.
I have set my title and header templates to a template that only includes an image (icon).
Pane.TitleTemplate = myTemplate;
Pane.HeaderTemplate = myTemplate;
When dragging, the DragVisual / indicator is empty because it is not using my template, it is getting a string for the Title.
I would like it to use the same template.
I have not found a way to accomplish this.
I have tried DragDropManager.AddDragInitializeHandler(PaneGroup, OnDragInitialize); but it does not call my handler. Even if it did, there are issues with the RadPaneHeader not being exposed to allow me to call AddDragInitializeHandler(PaneHeader, OnDragInitialize).
I see that the OnDragInitialize methods are virtual. I considered creating classes to override them, but the LoadLayout / XML layout loader requires the classes to be named "RadPane". Also, I probably could not get the classes to use MyRadPaneHeader.
I am compiling source, so changing the code is a viable option for me. Of course, a reliable method that does not require code changes would be OK too.
If code changes are the easiest method, having the code look for a HeaderTemplate or TitleTemplate (accordingly) and use it if found would be great. If not found, the current code could be used. Those code changes sound like something everyone would want - it seems logical to use the provided template instead of just a string.
If code changes are the way to go, some help on what code changes to make in RadPane and RadPaneHeader.OnDragInitialize would be greatly appreciated.
Thank You,
Dean