This example shows how to create, customize and show a window.
public partial class MainPage : UserControl {
public MainPage() {
InitializeComponent();
window.Show();
}
private void Button_Click(object sender, RoutedEventArgs e) {
window.Hide();
}
}
<my:DXWindow x:Name="window" Title="Authorization" HorizontalContentAlignment="Stretch"
IsSizable="False" AnimationType="Rotate"
Width="300" Height="120">
<Grid VerticalAlignment="Center">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<TextBlock Text="User Name:" Margin="3"/>
<TextBlock Text="E-mail:" Margin="3" Grid.Row="1"/>
<TextBox Grid.Column="1" Margin="3"
HorizontalAlignment="Stretch"/>
<TextBox Grid.Row="1" Grid.Column="1" Margin="3"
HorizontalAlignment="Stretch"/>
<Button Margin="3" Content="OK" Grid.Row="2" Grid.Column="1" HorizontalAlignment="Right"
Click="Button_Click"/>
</Grid>
</my:DXWindow>