-
Notifications
You must be signed in to change notification settings - Fork 1
/
MainView.xaml
37 lines (33 loc) · 1.51 KB
/
MainView.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<UserControl x:Class="Example.View.MainView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
xmlns:dxmvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm"
xmlns:ViewModel="clr-namespace:Example.ViewModel"
xmlns:View="clr-namespace:Example.View">
<UserControl.DataContext>
<ViewModel:MainViewModel/>
</UserControl.DataContext>
<dxmvvm:Interaction.Behaviors>
<dx:DialogService DialogWindowStartupLocation="CenterOwner">
<dx:DialogService.ViewTemplate>
<DataTemplate>
<View:RegistrationView/>
</DataTemplate>
</dx:DialogService.ViewTemplate>
<dx:DialogService.DialogStyle>
<Style TargetType="dx:ThemedWindow">
<Setter Property="Width" Value="300"/>
<Setter Property="Height" Value="160"/>
</Style>
</dx:DialogService.DialogStyle>
</dx:DialogService>
<dx:DXMessageBoxService/>
</dxmvvm:Interaction.Behaviors>
<Grid Background="White">
<Button HorizontalAlignment="Center"
VerticalAlignment="Center"
Command="{Binding ShowRegistrationFormCommand}"
Content="Show Registration Form"/>
</Grid>
</UserControl>