UWUVCI-AIO-WPF/UWUVCI AIO WPF/UI/Windows/MenuWindow.xaml

170 lines
11 KiB
Text
Raw Normal View History

2020-03-01 13:12:17 +00:00
<Window x:Class="UWUVCI_AIO_WPF.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:UWUVCI_AIO_WPF"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
mc:Ignorable="d"
2020-07-29 15:20:29 +00:00
Title="UWUVCI AIO" Width="1194.525" WindowStyle="None" WindowStartupLocation="CenterScreen" Foreground="White" MouseDown="MoveWindow" Background="LightGray" ResizeMode="NoResize" Height="670" MouseUp="Window_MouseUp" KeyUp="Window_KeyUp" materialDesign:ShadowAssist.CacheMode="{x:Null}">
2020-03-01 13:12:17 +00:00
<Window.Resources>
<Storyboard x:Key="MenuOpen">
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Width)" Storyboard.TargetName="GridMenu">
<EasingDoubleKeyFrame KeyTime="0" Value="60"/>
<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="210"/>
</DoubleAnimationUsingKeyFrames>
</Storyboard>
<Storyboard x:Key="MenuClose">
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Width)" Storyboard.TargetName="GridMenu">
<EasingDoubleKeyFrame KeyTime="0" Value="200"/>
<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="60"/>
</DoubleAnimationUsingKeyFrames>
</Storyboard>
</Window.Resources>
<Window.Triggers>
<EventTrigger RoutedEvent="ButtonBase.Click" SourceName="ButtonOpenMenu">
<BeginStoryboard Storyboard="{StaticResource MenuOpen}"/>
</EventTrigger>
<EventTrigger RoutedEvent="ButtonBase.Click" SourceName="ButtonCloseMenu">
<BeginStoryboard Storyboard="{StaticResource MenuClose}"/>
</EventTrigger>
</Window.Triggers>
<Grid DataContext="{StaticResource mvm}">
2020-03-01 13:12:17 +00:00
<Grid Margin="60,70,0,0">
<Frame x:Name="load_frame" NavigationUIVisibility="Hidden"/>
</Grid>
<Grid Height="72" VerticalAlignment="Top" Margin="0,-2,0,0">
<Grid.Background>
<VisualBrush TileMode="Tile" Viewport="0,0,0.0965,1">
<VisualBrush.Visual>
<Image Source="/UI/Images/bg maybe wpf.png"></Image>
2020-03-01 13:12:17 +00:00
</VisualBrush.Visual>
</VisualBrush>
</Grid.Background>
<TextBlock Name="tbTitleBar" HorizontalAlignment="Left" Margin="61,19,0,0" TextWrapping="Wrap" Text="UWUVCI AIO - Start" VerticalAlignment="Top" FontSize="25" Width="1075" TextAlignment="Center"/>
2020-06-24 15:54:51 +00:00
<TextBlock HorizontalAlignment="Left" Margin="61,3,0,0" TextWrapping="Wrap" Text="Space Bypass Mode" VerticalAlignment="Top" ToolTip="Disables all Space checks. May cause issues." Name="spc" Visibility="Hidden"/>
2020-03-01 13:12:17 +00:00
</Grid>
<Grid x:Name="GridMenu" Width="60" HorizontalAlignment="Left">
<Grid.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#5B6EAD" Offset="1"/>
<GradientStop Color="#7289DA" Offset="0"/>
<GradientStop Color="#6175B7" Offset="0.5"/>
</LinearGradientBrush>
</Grid.Background>
<StackPanel>
2020-08-10 13:38:42 +00:00
<Grid Height="70">
2020-03-01 13:12:17 +00:00
<Button x:Name="ButtonCloseMenu" Width="60" Height="60" Background="{x:Null}" BorderBrush="{x:Null}" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,5,0,0" Visibility="Collapsed" Click="ButtonCloseMenu_Click">
<materialDesign:PackIcon Foreground="White" Kind="ArrowLeft" Height="25" Width="25" />
</Button>
<Button x:Name="ButtonOpenMenu" Width="60" Height="60" Background="{x:Null}" BorderBrush="{x:Null}" VerticalAlignment="Top" HorizontalAlignment="Right" Margin="0,5,0,0" Click="ButtonOpenMenu_Click">
<materialDesign:PackIcon Foreground="White" Kind="HamburgerMenu" Height="25" Width="25"/>
</Button>
</Grid>
2020-07-29 15:20:29 +00:00
<ListView Foreground="White" ScrollViewer.HorizontalScrollBarVisibility="Disabled" PreviewMouseLeftButtonUp="ListView_Click" x:Name="listCONS" MouseEnter="ButtonOpenMenu_Click" MouseLeave="ButtonCloseMenu_Click">
2020-08-10 13:38:42 +00:00
2020-03-01 15:16:23 +00:00
<!--NDS-->
<ListViewItem Height="60" x:Name="NDS" IsEnabled="{Binding PathsSet}" Cursor="Hand">
2020-03-01 13:12:17 +00:00
<StackPanel Orientation="Horizontal">
2020-07-29 15:20:29 +00:00
<Image Height="44" Width="44" Source="/UI/Images/ds64x64alt4.png"></Image>
2020-03-01 15:16:23 +00:00
<TextBlock Text="NDS VC Inject" VerticalAlignment="Center" Margin="20 10"/>
</StackPanel>
</ListViewItem>
<!--GBA-->
<ListViewItem Height="60" x:Name="GBA" IsEnabled="{Binding PathsSet}" Cursor="Hand" ToolTip="Also supports GameBoy/GameBoy Color">
2020-08-10 13:38:42 +00:00
2020-03-01 15:16:23 +00:00
<StackPanel Orientation="Horizontal">
<Image Source="/UI/Images/gba64alt3.png"></Image>
2020-03-01 15:16:23 +00:00
<TextBlock Text="GBA VC Inject" VerticalAlignment="Center" Margin="20 10"/>
</StackPanel>
</ListViewItem>
<!--N64-->
<ListViewItem Height="60" x:Name="N64" IsEnabled="{Binding PathsSet}" Cursor="Hand">
2020-03-01 15:16:23 +00:00
<StackPanel Orientation="Horizontal">
<Image Source="/UI/Images/n64colorlessalt5.png"></Image>
2020-03-01 15:16:23 +00:00
<TextBlock Text="N64 VC Inject" VerticalAlignment="Center" Margin="20 10"/>
</StackPanel>
</ListViewItem>
<!--SNES-->
<ListViewItem Height="60" x:Name="SNES" IsEnabled="{Binding PathsSet}" Cursor="Hand">
2020-03-01 15:16:23 +00:00
<StackPanel Orientation="Horizontal">
<Image Source="/UI/Images/snes64alt2.png"></Image>
2020-03-01 15:16:23 +00:00
<TextBlock Text="SNES VC Inject" VerticalAlignment="Center" Margin="20 10"/>
</StackPanel>
</ListViewItem>
<!--NES-->
<ListViewItem Height="60" x:Name="NES" IsEnabled="{Binding PathsSet}" Cursor="Hand">
<StackPanel Orientation="Horizontal">
<Image Source="/UI/Images/nes64alt5.png"></Image>
<TextBlock Text="NES VC Inject" VerticalAlignment="Center" Margin="20 10"/>
</StackPanel>
</ListViewItem>
2020-08-10 13:38:42 +00:00
<!--TG16-->
<ListViewItem Height="60" x:Name="TG16alt" IsEnabled="{Binding PathsSet}" Cursor="Hand" ToolTip="Also supports TurboGrafX-CD">
<StackPanel Orientation="Horizontal">
<Image Source="/UI/Images/tg16alt.png"></Image>
<TextBlock Text="TG16 VC Inject" VerticalAlignment="Center" Margin="20 10"/>
</StackPanel>
</ListViewItem>
2020-04-07 01:09:05 +00:00
<!--MSX-->
2020-04-10 00:07:08 +00:00
<ListViewItem Height="60" x:Name="MSX" IsEnabled="{Binding PathsSet}" Cursor="Hand" ToolTip="Supports MSX and MSX2 Games">
2020-04-07 01:09:05 +00:00
<StackPanel Orientation="Horizontal">
<Image Source="/UI/Images/msx.png"></Image>
2020-04-07 01:09:05 +00:00
<TextBlock Text="MSX VC Inject" VerticalAlignment="Center" Margin="20 10"/>
</StackPanel>
</ListViewItem>
2020-04-16 04:41:25 +00:00
<!--Wii-->
<ListViewItem Height="60" x:Name="Wii" IsEnabled="{Binding PathsSet}" Cursor="Hand">
<StackPanel Orientation="Horizontal">
<Image Source="/UI/Images/Wii.png"></Image>
<TextBlock Text="WII VC Inject" VerticalAlignment="Center" Margin="20 10"/>
</StackPanel>
</ListViewItem>
<!--GC-->
2020-04-21 02:05:19 +00:00
<ListViewItem Height="60" x:Name="GC" IsEnabled="{Binding PathsSet}" Cursor="Hand" >
2020-04-16 04:41:25 +00:00
<StackPanel Orientation="Horizontal">
<Image Source="/UI/Images/NGC.png"></Image>
<TextBlock Text="GC VC Inject" VerticalAlignment="Center" Margin="20 10"/>
</StackPanel>
</ListViewItem>
2020-07-29 15:20:29 +00:00
<!--Retroarch
<ListViewItem Height="60" x:Name="RA" IsEnabled="{Binding PathsSet}" Cursor="Hand" >
<StackPanel Orientation="Horizontal">
<Image Source="/UI/Images/rarch.png"></Image>
<TextBlock Text="Retroarch VC Inject" VerticalAlignment="Center" Margin="20 10"/>
</StackPanel>
</ListViewItem>-->
2020-08-10 13:38:42 +00:00
<!--RarchTeaser-->
<ListViewItem Height="60" x:Name="Rarch" Cursor="Hand">
2020-03-01 15:16:23 +00:00
<StackPanel Orientation="Horizontal">
2020-08-10 13:38:42 +00:00
<!--<materialDesign:PackIcon Foreground="White" Kind="SettingsApplications" Height="45" Width="45"/>-->
<Image Source="/UI/Images/teaser.png"></Image>
<TextBlock Text="???????? ?? ??????" VerticalAlignment="Center" Margin="20 10"/>
2020-03-01 13:12:17 +00:00
</StackPanel>
2020-03-01 15:16:23 +00:00
</ListViewItem>
2020-03-01 13:12:17 +00:00
</ListView>
</StackPanel>
</Grid>
<Button Content="Button" HorizontalAlignment="Left" Margin="1160,11,0,0" VerticalAlignment="Top" Width="18" Background="{x:Null}" BorderBrush="{x:Null}" Height="25" Click="Window_Close" Name="close" MouseEnter="close_MouseEnter" MouseLeave="close_MouseLeave"/>
<TextBlock HorizontalAlignment="Left" Margin="1164,12,0,0" TextWrapping="Wrap" Text="X" VerticalAlignment="Top" Foreground="White" FontSize="16" IsHitTestVisible="False"/>
<Button Content="Button" HorizontalAlignment="Left" Margin="1140,11,0,0" VerticalAlignment="Top" Width="18" Background="{x:Null}" BorderBrush="{x:Null}" Height="25" Click="Window_Minimize" MouseEnter="Button_MouseEnter" Name="min" MouseLeave="min_MouseLeave"/>
<TextBlock HorizontalAlignment="Left" Margin="1141,10,0,0" TextWrapping="Wrap" Text="🗕" VerticalAlignment="Top" Foreground="White" FontSize="16" IsHitTestVisible="False"/>
2020-08-10 13:38:42 +00:00
<Button HorizontalAlignment="Left" Margin="1093,39,0,0" VerticalAlignment="Top" Width="98" Background="{x:Null}" BorderBrush="{x:Null}" Height="23" Click="settings_Click" Name="settings" Content="Open Settings" FontSize="10"/>
2020-03-01 13:12:17 +00:00
</Grid>
</Window>