-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
96 lines (90 loc) · 3.94 KB
/
MainWindow.xaml
File metadata and controls
96 lines (90 loc) · 3.94 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<Window x:Class="Rome.MainWindow"
mc:Ignorable="d"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
xmlns:dxwui="http://schemas.devexpress.com/winfx/2008/xaml/windowsui"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:Rome"
WindowStartupLocation="CenterScreen"
UseLayoutRounding="True"
SnapsToDevicePixels="False"
ThemeMode="System"
Title="Rome"
MinHeight="600"
MinWidth="600">
<Window.Resources>
<Style x:Key="MyListViewItemStyle"
TargetType="ListViewItem"
BasedOn="{StaticResource DefaultListViewItemStyle}">
<Style.Resources>
<Style TargetType="TextBlock"
BasedOn="{StaticResource BodyTextBlockStyle}">
<Setter Property="Margin"
Value="12,0,0,0" />
</Style>
<Style TargetType="Rectangle">
<Setter Property="Height"
Value="16" />
</Style>
</Style.Resources>
<Setter Property="MinHeight"
Value="38" />
<Setter Property="Padding"
Value="10,0,12,0" />
</Style>
</Window.Resources>
<DockPanel Margin="0,10,0,0">
<ListView x:Name="NavList"
DockPanel.Dock="Left"
Width="160"
Margin="4,0,0,0"
ItemContainerStyle="{StaticResource MyListViewItemStyle}"
SelectionMode="Single"
SelectionChanged="ListView_SelectionChanged">
<ListViewItem Tag="{x:Static local:RomePage.Home}">
<StackPanel Orientation="Horizontal">
<dx:DXImage Source="/Assets/ic_fluent_home_32_color.svg"
Width="20" />
<TextBlock Text="Home" />
</StackPanel>
</ListViewItem>
<ListViewItem Tag="{x:Static local:RomePage.Auctions}">
<StackPanel Orientation="Horizontal">
<dx:DXImage Source="/Assets/ic_fluent_calendar_32_color.svg"
Width="20" />
<TextBlock Text="Auctions" />
</StackPanel>
</ListViewItem>
<ListViewItem Tag="{x:Static local:RomePage.Investments}">
<StackPanel Orientation="Horizontal">
<dx:DXImage Source="/Assets/ic_fluent_data_trending_32_color.svg"
Width="20" />
<TextBlock Text="Investments" />
</StackPanel>
</ListViewItem>
<ListViewItem Tag="{x:Static local:RomePage.PressReleases}">
<StackPanel Orientation="Horizontal">
<dx:DXImage Source="/Assets/ic_fluent_history_32_color.svg"
Width="20" />
<TextBlock Text="Press Release" />
</StackPanel>
</ListViewItem>
</ListView>
<Grid Margin="24,0,20,20"
MaxWidth="1200"
FocusManager.IsFocusScope="True">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition />
</Grid.RowDefinitions>
<TextBlock x:Name="NavHeader"
Style="{StaticResource TitleTextBlockStyle}"
Margin="0,0,0,30" />
<dxwui:NavigationFrame x:Name="Frame"
Grid.Row="1"
AnimationType="None" NavigationCacheMode="Required" />
</Grid>
</DockPanel>
</Window>