forked from Soda-Quantum-Lab/SodaCL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainWindow.xaml
71 lines (71 loc) · 5.57 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
<Window x:Class="SodaCL.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
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"
mc:Ignorable="d" Title="SodaCL" Height="530" Width="750" WindowStyle="None" AllowsTransparency="True" Background="Transparent" OpacityMask="White" Initialized="Window_Initialized" WindowStartupLocation="CenterScreen" Closed="Window_Closed" ResizeMode="NoResize" Activated="Window_Activated">
<Border CornerRadius="10,10,10,10">
<Border.Background>
<ImageBrush ImageSource="/Resources/Images/Launcher-Bg.jpg" />
</Border.Background>
<Border CornerRadius="10,10,10,10">
<Border.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Offset="0" Color="white" />
<GradientStop Offset="0.4" Color="white" />
<GradientStop Offset="1.3" Color="Transparent" />
</LinearGradientBrush>
</Border.Background>
<Grid Name="MainGrid">
<Grid.RowDefinitions>
<RowDefinition Height="55" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Border Height="55" Grid.Row="0" CornerRadius="10,10,0,0" Background="Transparent" VerticalAlignment="Top" MouseLeftButtonDown="Border_MouseLeftButtonDown">
<Grid>
<Grid Height="55" VerticalAlignment="Top">
<Grid.RowDefinitions>
<RowDefinition Height="4*" />
<RowDefinition Height="51*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="10*" />
<ColumnDefinition Width="auto" />
<ColumnDefinition Width="3*" MaxWidth="171" />
</Grid.ColumnDefinitions>
<StackPanel Name="TitleBar_TitlePan" Grid.Column="0" Orientation="Horizontal" Margin="3,6,0,10" HorizontalAlignment="Left" Grid.Row="1">
<Image Height="32" Width="32" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="15,0,0,0" Source="/Resources/Images/Dev.ico" />
<TextBlock Text="Soda Craft Launcher" Height="28" Margin="5,0,0,0" FontSize="16" Padding="5,4,5,0" />
</StackPanel>
<Button Name="TitleBar_GoBackBtn" Width="32" Height="32" Grid.Column="0" Grid.Row="1" HorizontalAlignment="Left" Margin="20,6,0,10" Visibility="Hidden" Click="TitleBar_GoBackBtn_Click" Style="{DynamicResource Btn_NoBackground}">
<Image Width="20" Height="20" Source="{StaticResource Svg_GoBack}" />
</Button>
<StackPanel Grid.Column="2" Orientation="Horizontal" Height="32" Margin="0,8,0,11" HorizontalAlignment="Right" Grid.Row="1">
<Button Name="TitleBar_IssuesBtn" Style="{DynamicResource Btn_NoBackground}" Width="32" Height="32" Margin="0,0,5,0" Click="TitleBar_IssuesBtn_Click" ToolTip="{DynamicResource TitleBar_IssuesBtn_Tip}">
<Image Height="22" Width="22" Source="{DynamicResource Svg_Help}"></Image>
</Button>
<Button Style="{DynamicResource Btn_NoBackground}" Name="TitleBar_SettingsBtn" Width="32" Height="32" Margin="0,0,5,0" Click="TitleBar_SettingsBtn_Click">
<Image Height="20" Width="20" Source="{DynamicResource Svg_Settings}"></Image>
</Button>
<Button Style="{DynamicResource Btn_NoBackground}" Name="TitleBar_MiniSizeBtn" Width="32" Height="32" Margin="0,0,5,0" Click="TitleBar_MiniSizeBtn_Click">
<Image Height="12" Width="12" Source="{StaticResource Svg_Min}"></Image>
</Button>
<Button Style="{DynamicResource Btn_NoBackground}" Name="TitleBar_ExitBtn" Width="32" Height="32" Margin="0,0,20,0" Click="TitleBar_ExitBtn_Click">
<Image Height="16" Width="16" Source="{StaticResource Svg_Close}"></Image>
</Button>
</StackPanel>
</Grid>
</Grid>
</Border>
<Frame Name="MainFram" Grid.Row="1" Source="./MainPage.xaml" NavigationUIVisibility="Hidden" Style="{x:Null}" Navigated="MainFram_Navigated" Navigating="MainFram_Navigating" />
<Grid Name="FrontGrid" Grid.Row="2" Visibility="Hidden">
<Rectangle Name="DialogRect" Opacity="0" Fill="Black" ></Rectangle>
<Border Name="DialogBorder" Width="400" Height="250" Background="White" CornerRadius="12">
<StackPanel Name="DialogStackPan" Width="400" Height="250" HorizontalAlignment="Left" VerticalAlignment="Top"></StackPanel>
</Border>
<Border Name="FrontBorder" Width="400" Height="250" Background="White" CornerRadius="12" Visibility="Hidden"></Border>
</Grid>
</Grid>
</Border>
</Border>
</Window>