Telerik Forums
UI for Silverlight Forum
9 answers
345 views
Hi all,

I'm binding to a RadPane's IsHidden property as follows:

IsHidden

 

="{Binding Hidden, Mode=TwoWay}"

 


My ViewModel looks like this:

 

public bool Hidden

 

{

 

get { return hidden; }

 

 

set

 

{

hidden =

value;

 

PropertyChanged.Raise(

this, "IsHidden");  // Raise is an extension method to do a property changed event

 

}

}


The first time Hidden is set in the ViewModel's constructor, the IsHidden seems to work properly.  Subsequent changes to try to reshow the RadPane through the Hidden property don't work.

best,
-Mike Gold


Vladimir Stoyanov
Telerik team
 answered on 28 Feb 2020
3 answers
165 views
When I set RadPane.IsHidden to false this causes RadPane.IsActive to become true

Luckily when I use Visibility instead of IsHidden that works, but is that an accident?

I was asuming IsHidden and Visibility would be linked together not IsHidden and IsActive?

Regards,

Bayram
Dinko | Tech Support Engineer
Telerik team
 answered on 12 Dec 2019
8 answers
163 views
Hi,

I am not able to make a RadPaneGroup Visibility = Collapsed.  (see xaml).  I dont get a compile error but the pane does not get hidden.  I also tried IsHidden = true.  Is there a way to do this?

Thanks
Rich 


<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>
Vladimir Stoyanov
Telerik team
 answered on 10 Jan 2019
0 answers
65 views

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}}"/>

 


A
Top achievements
Rank 1
 asked on 05 Nov 2018
1 answer
97 views

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: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>
Dinko | Tech Support Engineer
Telerik team
 answered on 22 Dec 2017
1 answer
38 views

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.

Polya
Telerik team
 answered on 31 Mar 2017
3 answers
43 views

Hello

I want to use RadDocking inside a RadWindow.

I use this code :

<telerik:RadWindow x:Class="Silverlight.Test.FrmWindow1"
                   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                   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.

Olivier
Top achievements
Rank 1
 answered on 28 Feb 2017
3 answers
100 views
I am using multiple docking panes in my page, but would like the tabs for the main document host tabs to be placed on the left instead of the top.  Is this possible?  I have tried setting the TabStripPlacement="Left", but it doesn't do anything.

<telerik:RadDocking x:Name="radDocking" telerik:StyleManager.Theme="Windows7" Unpin="radDocking_Unpin" Pin="radDocking_Pin" AllowUnsafeMode="True" Opacity="0.95" Margin="0,0,0,0" VerticalAlignment="Top">

<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

Nasko
Telerik team
 answered on 20 Dec 2016
1 answer
48 views

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

Kalin
Telerik team
 answered on 05 Oct 2016
8 answers
48 views

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

 

 

 

 

Nasko
Telerik team
 answered on 09 Mar 2016
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?