-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathMailView.axaml
More file actions
44 lines (41 loc) · 1.92 KB
/
MailView.axaml
File metadata and controls
44 lines (41 loc) · 1.92 KB
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
38
39
40
41
42
43
44
<UserControl xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:core="clr-namespace:SampleApp.Common;assembly=SampleApp.Common"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:prism="http://prismlibrary.com/"
xmlns:vm="using:SampleApp.Modules.Mail.ViewModels"
x:Class="SampleApp.Modules.Mail.Views.MailView"
x:CompileBindings="True"
x:DataType="vm:MailViewModel"
prism:ViewModelLocator.AutoWireViewModel="True">
<UserControl.Styles>
<Style Selector="Border.ControlBorder">
<Setter Property="BorderThickness" Value="2" />
<Setter Property="Background" Value="GhostWhite" />
<Setter Property="BorderBrush" Value="Gainsboro" />
<Setter Property="CornerRadius" Value="3,3" />
<Setter Property="Margin" Value="5" />
</Style>
</UserControl.Styles>
<Grid RowDefinitions="Auto,*">
<StackPanel Orientation="Horizontal" Spacing="5">
<Button Command="{Binding CommandShowDashboard}" Content="< Dashboard" />
<Label VerticalAlignment="Center"
Content="{Binding Greeting}"
FontWeight="Bold" />
<Label VerticalAlignment="Center" Content="{Binding SelectedTabIndex}" />
</StackPanel>
<Grid Grid.Row="1">
<Border Grid.Column="0" Classes="ControlBorder">
<TabControl prism:RegionManager.RegionName="{x:Static core:RegionNames.MailTabRegion}"
Margin="5"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
BorderThickness="1"
SelectedIndex="{Binding SelectedTabIndex}"
SelectedItem="{Binding SelectedTabItem}" />
</Border>
</Grid>
</Grid>
</UserControl>