-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathMainWindow.xaml
78 lines (70 loc) · 3.32 KB
/
MainWindow.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
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
<Window x:Class="Imya.UI.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:Components="clr-namespace:Imya.UI.Components"
xmlns:Views="clr-namespace:Imya.UI.Views"
mc:Ignorable="d"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
TextElement.Foreground="#FFFFFF"
Title="MainWindow" Height="720" Width="1280">
<Window.Background>
<ImageBrush ImageSource="/resources/background.jpg" Stretch="UniformToFill"/>
</Window.Background>
<!--<Window.Background>
<SolidColorBrush Color="#252525" />
</Window.Background>-->
<Grid Background="{DynamicResource BackgroundColorBrush}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid.Resources>
<BooleanToVisibilityConverter x:Key="BoolToVis" />
</Grid.Resources>
<ContentControl Grid.RowSpan="2"
Content="{Binding Dashboard}" />
<ScrollViewer Grid.Column="1"
Height="100"
Style="{StaticResource IMYA_SCROLLVIEWER}"
Grid.Row="1"
Margin="0,0,5,5"
Visibility="{Binding Settings.ConsoleVisibility, Converter={StaticResource BoolToVis}, UpdateSourceTrigger=PropertyChanged}">
<ContentControl Content="{Binding ConsoleLogTextBox}" />
</ScrollViewer>
<ContentControl Grid.Row="0"
Grid.Column="1"
Content="{Binding MainViewController.CurrentView, UpdateSourceTrigger=PropertyChanged}">
</ContentControl>
<!--<DockPanel Grid.Row="0" Grid.Column="1">
<TabControl x:Name="WindowViewControl"
Background="Transparent"
BorderBrush="Transparent" BorderThickness="0"
SelectedIndex="{Binding CurrentViewIndex, ElementName=Dashboard, UpdateSourceTrigger=PropertyChanged}">
<TabControl.ItemContainerStyle>
<Style TargetType="TabItem">
<Setter Property="Visibility" Value="Hidden" />
<Setter Property="BorderThickness" Value="0"/>
</Style>
</TabControl.ItemContainerStyle>
<TabItem Background="Transparent">
<Views:ModActivationView/>
</TabItem>
<TabItem Background="Transparent">
<Views:SettingsView />
</TabItem>
<TabItem Background="Transparent">
<Views:GameSetupView />
</TabItem>
<TabItem Background="Transparent">
<Views:ModTweakerView />
</TabItem>
</TabControl>
</DockPanel>-->
</Grid>
</Window>