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 regardsSimeon
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>
</Grid>
</UserControl>
There is a control inside MainPage.xaml:
<UserControl x:Class="XamDWUserControl.MainPage"
xmlns:controls="clr-namespace:XamDWUserControl.Controls"
d:DesignHeight="300" d:DesignWidth="400">
<controls:XDWUserControl x:Name="userXWD" Width="300" Height="200">
</controls:XDWUserControl>
XamDialogWIndow will have full fumctionality inside an UserConreol:
Hope this can help :-)
Cheers!
Mihail
Hi Misho,thank you very much! Yes, It will help :)
Now I'm using "<ig:XamDialogWindow" instead of "<UserControl", and can access the window from code: IMS_Silverlight.TRKTRC.TrackIt trackitWindow = new IMS_Silverlight.TRKTRC.TrackIt();trackitWindow.Show();
<ig:XamDialogWindow x:Class="IMS_Silverlight.TRKTRC.TrackIt" xmlns:ig="http://schemas.infragistics.com/xaml" 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" xmlns:res="clr-namespace:IMS_Silverlight.Resources" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" d:DesignHeight="500" d:DesignWidth="750" StartupPosition="Center" HorizontalAlignment="Center" VerticalAlignment="Center" Width="750" Height="490" IsModal="True" Header="{Binding Source={StaticResource WindowTitles}, Path=TrackItWindow_Title}"> <ig:XamDialogWindow.Resources> <res:trktrc_index x:Key="trktrc_index" /> <res:WindowTitles x:Key="WindowTitles" /> </ig:XamDialogWindow.Resources> <Grid Name="grid1"> Put content here </Grid></ig:XamDialogWindow>
Which one is better for using, what do you think?
Hubav den!Simeon