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
818
xamDialogWindow broken when added to ChildWindow
posted

I have a modal xamDialogWindow that I have added to a ChildWindow. When the xamDialogWindow is shown, it is shown on the parent form of the ChildWindow, not on the ChildWindow itself.

Parents
No Data
Reply
  • 4666
    posted

    Hi Competent,

    XamDialogWindow works very well with ChildWindow. You just need to set property RestrictInContainer="True" foe your XamDialogWindow.

    Here is a sample application - hope this cha help :-)

    Cheers!

    Mihail

    <UserControl x:Class="XDWinChildWindow.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:Controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" mc:Ignorable="d"

       d:DesignHeight="300" d:DesignWidth="400" xmlns:ig="http://schemas.infragistics.com/xaml">

     

        <Grid x:Name="LayoutRoot" Background="White">

            <Controls:ChildWindow x:Name="MyChileWindow" Width="300" Height="200">

                <Grid>

                    <ig:XamDialogWindow Height="80" Width="150" HorizontalAlignment="Left" RestrictInContainer="True" Name="xamDialogWindow1" VerticalAlignment="Top">

                        <TextBlock Text="Simple Content!!!"/>

                    </ig:XamDialogWindow>

                </Grid>

            </Controls:ChildWindow>

        </Grid>

    </UserControl>

Children