This is a migrated thread and some comments may be shown as answers.

RadPane - Trigger pane to open from code

3 Answers 127 Views
Docking
This is a migrated thread and some comments may be shown as answers.
MattC2007
Top achievements
Rank 1
MattC2007 asked on 18 Dec 2009, 02:29 PM
Is it possible to trigger the rad pane to open from code? If so could someone please provide an example. I would like to have a UIElement's onclick event trigger my bottom docked radpane to open.

Thanks

3 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 21 Dec 2009, 01:23 PM
Hi,

Thank you for your interest in our products.
It is possible to trigger the rad pane to open from code. You can create a new pane and add it to the group, or you can show a hidden one. Attached is a project which illustrates both approaches.
If you have further question please feel free to ask.


Best wishes,
Konstantina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
MattC2007
Top achievements
Rank 1
answered on 23 Dec 2009, 01:25 PM

Although your attached project works perfectly. I cant seem to duplicate it within my own project. I have used the same code behind to trigger the radpanes focus property without success.

I have attached my xaml code in hopes that I'm over looking something?

<

UserControl xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" xmlns:controlsToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit" x:Class="MineTracker.MainPage"

 

 

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

 

 

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

 

 

xmlns:d="http://schemas.microsoft.com/expression/blend/2008"

 

 

xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"

 

 

xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"

 

 

xmlns:animation="clr-namespace:Telerik.Windows.Controls.Animation;assembly=Telerik.Windows.Controls"

 

 

xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"

 

 

xmlns:telerikDocking="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking">

 

 

<Grid x:Name="grdRoot">

 

 

<Grid.Resources>

 

 

<ResourceDictionary>

 

 

<ResourceDictionary.MergedDictionaries>

 

 

<ResourceDictionary x:Name="grdRootTheme" Source="Themes/FourLeaf.xaml" />

 

 

</ResourceDictionary.MergedDictionaries>

 

 

</ResourceDictionary>

 

 

</Grid.Resources>

 

 

<Grid.RowDefinitions>

 

 

<RowDefinition />

 

 

<RowDefinition Height="Auto"/>

 

 

<RowDefinition Height="Auto"/>

 

 

</Grid.RowDefinitions>

 

 

<telerikDocking:RadDocking x:Name="radDocking" Background="DarkGray" Canvas.ZIndex="99999">

 

 

<telerikDocking:RadDocking.DocumentHost>

 

 

<telerikDocking:RadSplitContainer>

 

 

<telerikDocking:RadPaneGroup Style="{StaticResource RadPaneGroup}">

 

 

<telerikDocking:RadDocumentPane Title="Level 4400" CanFloat="False" CanUserClose="False" IsPinned="True" Canvas.ZIndex="99999">

 

 

<telerikDocking:RadDocumentPane.Content>

 

 

<ScrollViewer ScrollViewer.HorizontalScrollBarVisibility="Hidden" ScrollViewer.VerticalScrollBarVisibility="Hidden">

 

 

<!-- Canvases handle all the map, object rendering-->

 

 

<Grid>

 

 

<Image x:Name="Logo" Source="Images/MineTracker_Logo.png" Opacity=".9" HorizontalAlignment="Right" VerticalAlignment="Top" />

 

 

<Canvas x:Name="cnvsRoot" Margin="25" RenderTransformOrigin="0.5,0.5" Canvas.ZIndex="-99999">

 

 

<Canvas.RenderTransform>

 

 

<TransformGroup>

 

 

<ScaleTransform x:Name="scaler" ScaleY="-1"/>

 

 

</TransformGroup>

 

 

</Canvas.RenderTransform>

 

 

<Canvas.Background>

 

 

<SolidColorBrush Color="{StaticResource Canvas.BackGround}" />

 

 

</Canvas.Background>

 

 

<Canvas x:Name="cnvsDisplay" MouseWheel="cnvsDisplay_MouseWheel" MouseLeftButtonDown="cnvsDisplay_MouseLeftButtonDown" MouseLeftButtonUp="cnvsDisplay_MouseLeftButtonUp"

 

 

MouseMove="cnvsDisplay_MouseMove" Width="1070" Height="765" Canvas.ZIndex="99998">

 

 

<!--<Rectangle Width="1070" Height="765" Stroke="Black" StrokeThickness="1"/>-->

 

 

<Canvas.Background>

 

 

<SolidColorBrush Color="{StaticResource Canvas.BackGround}" />

 

 

</Canvas.Background>

 

 

</Canvas>

 

 

</Canvas>

 

 

</Grid>

 

 

</ScrollViewer>

 

 

</telerikDocking:RadDocumentPane.Content>

 

 

</telerikDocking:RadDocumentPane>

 

 

</telerikDocking:RadPaneGroup>

 

 

</telerikDocking:RadSplitContainer>

 

 

</telerikDocking:RadDocking.DocumentHost>

 

 

<telerikDocking:RadSplitContainer InitialPosition="DockedLeft">

 

 

<telerikDocking:RadPaneGroup>

 

 

<telerikDocking:RadPane Header="Tag List" IsPinned="False" CanFloat="False" CanDockInDocumentHost="False" CanUserClose="False" IsHidden="False">

 

 

<telerikDocking:RadPane.Content>

 

 

<!-- ============================================================================-->

 

 

<!-- Content Menu-->

 

 

<!-- ============================================================================-->

 

 

<!--References-->

 

 

<StackPanel>

 

 

<telerikNavigation:RadTreeView x:Name="tvMapObjects" SelectionMode="Single" IsDragDropEnabled="False">

 

 

<telerikNavigation:RadTreeViewItem x:Name="tviAssets" Header="Assets" />

 

 

<telerikNavigation:RadTreeViewItem x:Name="tviPersonnel" Header="Personnel" />

 

 

</telerikNavigation:RadTreeView>

 

 

<Button x:Name="btnSearch" MouseLeftButtonDown="btnSearch_MouseLeftButtonDown" Height="25" Width="200" Content="Search"/>

 

 

</StackPanel>

 

 

<!-- ============================================================================-->

 

 

</telerikDocking:RadPane.Content>

 

 

</telerikDocking:RadPane>

 

 

<telerikDocking:RadPane x:Name="radSearchPane" Header="Search" IsPinned="False" CanUserClose="False" />

 

 

</telerikDocking:RadPaneGroup>

 

 

</telerikDocking:RadSplitContainer>

 

 

<telerikDocking:RadSplitContainer InitialPosition="DockedBottom">

 

 

<telerikDocking:RadPaneGroup>

 

 

<telerikDocking:RadPane x:Name="radDetailPane" Header="Details" IsPinned="False" CanUserClose="False">

 

 

<telerikDocking:RadPane.Content>

 

 

<!-- ============================================================================-->

 

 

<!-- Detail Menu-->

 

 

<!-- ============================================================================-->

 

 

<!--Menu Content-->

 

 

<controlsToolkit:DockPanel x:Name="mnuDetail_Content" Width="Auto" Height="Auto" LastChildFill="True">

 

 

</controlsToolkit:DockPanel>

 

 

<!-- ============================================================================-->

 

 

</telerikDocking:RadPane.Content>

 

 

</telerikDocking:RadPane>

 

 

</telerikDocking:RadPaneGroup>

 

 

</telerikDocking:RadSplitContainer>

 

 

</telerikDocking:RadDocking>

 

 

</Grid>

 

</

UserControl>

 

0
Konstantina
Telerik team
answered on 24 Dec 2009, 08:46 AM
Hello,

Could you please share with us which is the version of your controls? If you are using the ones from Q3 2009 SP1, please open a support ticket and send us a running project , which we can test here locally, because after that release this feature is supported and there should be no problem.
Looking forward for your reply.


Kind regards,
Konstantina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Docking
Asked by
MattC2007
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
MattC2007
Top achievements
Rank 1
Share this question
or