Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
525
Zoom the drop indicator
posted

Hi!

When I zoom my LayoutRoot the drop indicator doesn't recognize it. How can I zoom the drop indicator too?

<Window
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:igDock="http://infragistics.com/DockManager"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="MainWindow"
	x:Name="Window"
	Title="MainWindow"
	Width="640" Height="480">
    <Grid x:Name="LayoutRoot">
        <igDock:XamDockManager x:Name="XamDM">
            <igDock:DocumentContentHost x:Name="DCH">
                <igDock:SplitPane>
                    <igDock:TabGroupPane>
                        <igDock:ContentPane Header="Content Pane">
                            <Grid>
                                <Button Content="Zoom" Height="25" Width="100" Click="Zoom"/>
                            </Grid>
                        </igDock:ContentPane>
                        <igDock:ContentPane Header="Content Pane2">
                        </igDock:ContentPane>
                    </igDock:TabGroupPane>
                </igDock:SplitPane>
            </igDock:DocumentContentHost>
        </igDock:XamDockManager>
    </Grid>
</Window>

Class MainWindow 
    Dim st As New ScaleTransform()
    Private Sub Zoom()
        Dim tg = New TransformGroup
        st.ScaleX = 1
        st.ScaleY = 1
        tg.Children.Add(st)
        LayoutRoot.LayoutTransform = tg
        st.ScaleX = st.ScaleX * 1.5
        st.ScaleY = st.ScaleY * 1.5
    End Sub
End Class

Greetings,

voks

Parents
No Data
Reply
  • 30945
    Offline posted

    Hello Voks,

     

    In order to zoom the drop indicator for the XamDockManager too you can set RootLayout’s RenderTransform to the TransformGroup that you are creating instead setting the LayoutTransform.

     

    I am attaching a screenshot of the behavior that I am getting when I set

            LayoutRoot.RenderTransform = tg

    Instead of

            LayoutRoot.LayoutTransform = tg

    If you require any further assistance on the matter please do not hesitate to ask.

     

    Sincerely,

    Krasimir

    Developer Support Engineer

    Infragistics, Inc.

    www.infragistics.com/support    

    screenshot.zip
Children