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
90
xamDialogWindow as usercontrol
posted

Hello,

how can i use xamDialogWindow as UserControl ?

for example, something like it:

<ig:XamDialogWindow Height="226" HorizontalAlignment="Left" Margin="210,19,0,0" Name="xamDialogWindow1" VerticalAlignment="Top" Width="405">

<Grid name="grid1">
..............................
</Grid>

</ig:XamDialogWindow>

 

Is it possible?

Best regards
Simeon

Parents
No Data
Reply
  • 4666
    posted

    Hi Simeon,

    You definitely can use XamDialogWIndow as user control.

    There is a code for User Control:

    <UserControl x:Class="XamDWUserControl.Controls.XDWUserControl"

       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"

       mc:Ignorable="d"

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

     

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

            <ig:XamDialogWindow HorizontalAlignment="Left" Width="300" Height="240" Header="xamDialogWindow User Control" Name="xamDialogWindow" VerticalAlignment="Top">

                <TextBlock>

                    Put some content here..

                </TextBlock>

            </ig:XamDialogWindow>

        </Grid>

    </UserControl>

    There is a control inside MainPage.xaml:

    <UserControl x:Class="XamDWUserControl.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:XamDWUserControl.Controls"

       mc:Ignorable="d"

       d:DesignHeight="300" d:DesignWidth="400">

     

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

            <controls:XDWUserControl x:Name="userXWD" Width="300" Height="200">           

            </controls:XDWUserControl>

        </Grid>

    </UserControl>

    XamDialogWIndow will  have full fumctionality inside an UserConreol:

    Hope this can help :-)

    Cheers!

    Mihail

Children