-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
133 lines (127 loc) · 7.48 KB
/
MainWindow.xaml
File metadata and controls
133 lines (127 loc) · 7.48 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<Window x:Class="PulseAPK.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:local="clr-namespace:PulseAPK"
xmlns:utils="clr-namespace:PulseAPK.Utils"
xmlns:vm="clr-namespace:PulseAPK.ViewModels"
xmlns:views="clr-namespace:PulseAPK.Views"
xmlns:properties="clr-namespace:PulseAPK.Properties"
mc:Ignorable="d"
Title="{Binding WindowTitle}" Height="650" Width="1000"
Icon="Resources/CyberUnpack.ico"
WindowStartupLocation="CenterScreen"
Background="{StaticResource Brush.Background}">
<Window.DataContext>
<vm:MainViewModel/>
</Window.DataContext>
<Window.Resources>
<DataTemplate DataType="{x:Type vm:DecompileViewModel}">
<views:DecompileView/>
</DataTemplate>
<DataTemplate DataType="{x:Type vm:SettingsViewModel}">
<views:SettingsView/>
</DataTemplate>
<DataTemplate DataType="{x:Type vm:BuildViewModel}">
<views:BuildView/>
</DataTemplate>
<DataTemplate DataType="{x:Type vm:AnalyserViewModel}">
<views:AnalyserView/>
</DataTemplate>
<DataTemplate DataType="{x:Type vm:AboutViewModel}">
<views:AboutView/>
</DataTemplate>
</Window.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="250"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<!-- Sidebar -->
<Border Background="{StaticResource Brush.Panel}" BorderThickness="0,0,1,0" BorderBrush="{StaticResource Brush.BorderGlow}">
<StackPanel Margin="20">
<StackPanel Orientation="Horizontal" Margin="0,0,0,40">
<Image Source="/Resources/CyberUnpack.png" Width="30" Height="30" Margin="0,0,15,0">
<Image.Effect>
<DropShadowEffect Color="{StaticResource Color.NeonCyan}" BlurRadius="10" ShadowDepth="0" Opacity="0.8"/>
</Image.Effect>
</Image>
<TextBlock Text="{utils:Localization Key=AppTitle}" Foreground="{StaticResource Brush.TextPrimary}" FontSize="24" FontWeight="Bold" VerticalAlignment="Center"/>
</StackPanel>
<Button Content="{utils:Localization Key=MenuDecompile}" Command="{Binding NavigateToDecompileCommand}">
<Button.Style>
<Style TargetType="Button" BasedOn="{StaticResource CyberButtonStyle}">
<Setter Property="HorizontalAlignment" Value="Stretch"/>
<Setter Property="Margin" Value="0,0,0,10"/>
<Style.Triggers>
<DataTrigger Binding="{Binding SelectedMenu}" Value="Decompile">
<Setter Property="Background" Value="{StaticResource Brush.AccentCyan}"/>
<Setter Property="Foreground" Value="Black"/>
</DataTrigger>
</Style.Triggers>
</Style>
</Button.Style>
</Button>
<Button Content="{utils:Localization Key=MenuBuild}" Command="{Binding NavigateToBuildCommand}">
<Button.Style>
<Style TargetType="Button" BasedOn="{StaticResource CyberButtonStyle}">
<Setter Property="HorizontalAlignment" Value="Stretch"/>
<Setter Property="Margin" Value="0,0,0,10"/>
<Style.Triggers>
<DataTrigger Binding="{Binding SelectedMenu}" Value="Build">
<Setter Property="Background" Value="{StaticResource Brush.AccentCyan}"/>
<Setter Property="Foreground" Value="Black"/>
</DataTrigger>
</Style.Triggers>
</Style>
</Button.Style>
</Button>
<Button Content="{utils:Localization Key=MenuAnalyser}" Command="{Binding NavigateToAnalyserCommand}">
<Button.Style>
<Style TargetType="Button" BasedOn="{StaticResource CyberButtonStyle}">
<Setter Property="HorizontalAlignment" Value="Stretch"/>
<Setter Property="Margin" Value="0,0,0,10"/>
<Style.Triggers>
<DataTrigger Binding="{Binding SelectedMenu}" Value="Analyser">
<Setter Property="Background" Value="{StaticResource Brush.AccentCyan}"/>
<Setter Property="Foreground" Value="Black"/>
</DataTrigger>
</Style.Triggers>
</Style>
</Button.Style>
</Button>
<Button Content="{utils:Localization Key=MenuSettings}" Command="{Binding NavigateToSettingsCommand}">
<Button.Style>
<Style TargetType="Button" BasedOn="{StaticResource CyberButtonStyle}">
<Setter Property="HorizontalAlignment" Value="Stretch"/>
<Setter Property="Margin" Value="0,0,0,10"/>
<Style.Triggers>
<DataTrigger Binding="{Binding SelectedMenu}" Value="Settings">
<Setter Property="Background" Value="{StaticResource Brush.AccentCyan}"/>
<Setter Property="Foreground" Value="Black"/>
</DataTrigger>
</Style.Triggers>
</Style>
</Button.Style>
</Button>
<Button Content="{utils:Localization Key=MenuAbout}" Command="{Binding NavigateToAboutCommand}">
<Button.Style>
<Style TargetType="Button" BasedOn="{StaticResource CyberButtonStyle}">
<Setter Property="HorizontalAlignment" Value="Stretch"/>
<Setter Property="Margin" Value="0,0,0,10"/>
<Style.Triggers>
<DataTrigger Binding="{Binding SelectedMenu}" Value="About">
<Setter Property="Background" Value="{StaticResource Brush.AccentCyan}"/>
<Setter Property="Foreground" Value="Black"/>
</DataTrigger>
</Style.Triggers>
</Style>
</Button.Style>
</Button>
</StackPanel>
</Border>
<!-- Main Content -->
<ContentControl Grid.Column="1" Content="{Binding CurrentView}" Margin="20"/>
</Grid>
</Window>