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

RadDocking.SetFloatingLocation usage

3 Answers 110 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Aurore
Top achievements
Rank 1
Aurore asked on 05 Jul 2010, 11:21 AM
Hello,

I have a zoom functionnality in a RadSplitContainer, i would like to place bottom-right my main application window.

I create this splitcontainer in xaml.
<telerik:RadSplitContainer InitialPosition="FloatingOnly" x:Name="ZoomContainer"  
                                  telerik:RadDocking.FloatingSize="200 200"     > 
                <telerik:RadPaneGroup  > 
                    <telerik:RadPane CanDockInDocumentHost="False" CanUserClose="True" x:Name="paneZoom"   
                            DataContext="{Binding DataContext, ElementName=root}" 
                            IsHidden="{Binding DisplayZoom, Mode=TwoWay, Converter={StaticResource convInverseBoolean}}"  
                          Header="Zoom"  > 
                        <!--<Expander IsExpanded="True" Header="Zoom">--> 
                        <Grid x:Name="rootZoom"


Then on Main window load container I'd like tu set programmaticaly the floating location :
private void QDiagram_Loaded(object sender, RoutedEventArgs e) 
   //ZoomContainer.SetValue(RadDocking.FloatingLocationProperty, new Point(132, 10)); 
  RadDocking.SetFloatingLocation(ZoomContainer, new Point(132, 10)); 


But it seems not to work...

Thanks for your help
Aurore

ps : is there a difference between using Object.SetValue(property, value) and type.Setproperty(object, value) ?


3 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 08 Jul 2010, 12:40 PM
Hi Aurore,

Thank you for contacting us.

This scenario is not supported. FloatingLocation should be set in the XAML code, not manipulated in the code behind. However, you can achieve what you want using the code below (in the loaded event handler of the RadPane you want to move):

private void rootZoom_Loaded(object sender, RoutedEventArgs e)
        {
            ToolWindow toolwindow = paneZoom.ParentOfType<ToolWindow>();
            toolwindow.HorizontalOffset = 540;
            toolwindow.VerticalOffset = 530;
        }
  
I hope this information helps. I will be glad to assist you further.

Greetings,

George
the Telerik team

 

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Aurore
Top achievements
Rank 1
answered on 08 Jul 2010, 01:07 PM
Thanks for your help. I realize what I wanted.

But maybe you shoul add an advertizing in your documentation:
http://www.telerik.com/help/wpf/telerik.windows.controls.docking-telerik.windows.controls.raddocking-setfloatinglocation.html

Have a nice day
Aurore
0
George
Telerik team
answered on 12 Jul 2010, 04:05 PM
Hello Aurore,

Thank you for this suggestion. We will consider adding it to our online documentation.

Please do not hesitate to contact us if you require any further information. 

Kind regards,
George
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Docking
Asked by
Aurore
Top achievements
Rank 1
Answers by
George
Telerik team
Aurore
Top achievements
Rank 1
Share this question
or