-
Notifications
You must be signed in to change notification settings - Fork 1
/
MainView.xaml
28 lines (28 loc) · 1.65 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
<UserControl x:Class="RegistrationForm.View.MainView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:dxmvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm"
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
xmlns:ViewModel="clr-namespace:RegistrationForm.ViewModel"
xmlns:View="clr-namespace:RegistrationForm.View"
mc:Ignorable="d" d:DesignHeight="500" d:DesignWidth="500"
DataContext="{dxmvvm:ViewModelSource ViewModel:MainViewModel}">
<dxmvvm:Interaction.Behaviors>
<dx:DXMessageBoxService/>
</dxmvvm:Interaction.Behaviors>
<Grid x:Name="root">
<dx:DXTabControl TabContentCacheMode="CacheAllTabs">
<dx:DXTabControl.View>
<dx:TabControlScrollView HeaderLocation="Bottom" HeaderOrientation="Horizontal" ScrollButtonShowMode="Never"/>
</dx:DXTabControl.View>
<dx:DXTabItem Header="Registration Form">
<View:RegistrationView Width="300" dxmvvm:ViewModelExtensions.ParentViewModel="{Binding ElementName=root, Path=DataContext}"/>
</dx:DXTabItem>
<dx:DXTabItem Header="Records">
<View:RecordsView dxmvvm:ViewModelExtensions.ParentViewModel="{Binding ElementName=root, Path=DataContext}"/>
</dx:DXTabItem>
</dx:DXTabControl>
</Grid>
</UserControl>