Finished basic GUI
This commit is contained in:
		@@ -13,10 +13,11 @@
 | 
				
			|||||||
                <!-- Accent and AppTheme setting -->
 | 
					                <!-- Accent and AppTheme setting -->
 | 
				
			||||||
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Blue.xaml" />
 | 
					                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Blue.xaml" />
 | 
				
			||||||
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" />
 | 
					                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" />
 | 
				
			||||||
 | 
					                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/FlatButton.xaml" />
 | 
				
			||||||
            </ResourceDictionary.MergedDictionaries>
 | 
					            </ResourceDictionary.MergedDictionaries>
 | 
				
			||||||
            <Style TargetType="Label">
 | 
					            <Style TargetType="Label">
 | 
				
			||||||
                <Setter Property="FontFamily" Value="Segoe UI Light"/>
 | 
					                <Setter Property="FontFamily" Value="Segoe UI Light"/>
 | 
				
			||||||
                <Setter Property="FontSize" Value="24px"/>
 | 
					                <Setter Property="FontSize" Value="26px"/>
 | 
				
			||||||
            </Style>
 | 
					            </Style>
 | 
				
			||||||
        </ResourceDictionary>
 | 
					        </ResourceDictionary>
 | 
				
			||||||
    </Application.Resources>
 | 
					    </Application.Resources>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -47,6 +47,9 @@
 | 
				
			|||||||
    <Reference Include="MahApps.Metro, Version=1.6.5.1, Culture=neutral, processorArchitecture=MSIL">
 | 
					    <Reference Include="MahApps.Metro, Version=1.6.5.1, Culture=neutral, processorArchitecture=MSIL">
 | 
				
			||||||
      <HintPath>..\packages\MahApps.Metro.1.6.5\lib\net45\MahApps.Metro.dll</HintPath>
 | 
					      <HintPath>..\packages\MahApps.Metro.1.6.5\lib\net45\MahApps.Metro.dll</HintPath>
 | 
				
			||||||
    </Reference>
 | 
					    </Reference>
 | 
				
			||||||
 | 
					    <Reference Include="MahApps.Metro.IconPacks, Version=2.3.0.4, Culture=neutral, processorArchitecture=MSIL">
 | 
				
			||||||
 | 
					      <HintPath>..\packages\MahApps.Metro.IconPacks.2.3.0\lib\net45\MahApps.Metro.IconPacks.dll</HintPath>
 | 
				
			||||||
 | 
					    </Reference>
 | 
				
			||||||
    <Reference Include="System" />
 | 
					    <Reference Include="System" />
 | 
				
			||||||
    <Reference Include="System.Data" />
 | 
					    <Reference Include="System.Data" />
 | 
				
			||||||
    <Reference Include="System.Windows.Interactivity, Version=4.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
 | 
					    <Reference Include="System.Windows.Interactivity, Version=4.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,23 +1,37 @@
 | 
				
			|||||||
<Controls:MetroWindow x:Class="DerpingDrivers.MainWindow"
 | 
					<controls:MetroWindow x:Class="DerpingDrivers.MainWindow"
 | 
				
			||||||
                      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 | 
					                      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 | 
				
			||||||
                      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 | 
					                      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 | 
				
			||||||
                      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
 | 
					                      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
 | 
				
			||||||
                      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
 | 
					                      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
 | 
				
			||||||
                      xmlns:local="clr-namespace:DerpingDrivers"
 | 
					                      xmlns:local="clr-namespace:DerpingDrivers"
 | 
				
			||||||
                      xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
 | 
					                      xmlns:controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
 | 
				
			||||||
 | 
					                      xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
 | 
				
			||||||
                      mc:Ignorable="d"
 | 
					                      mc:Ignorable="d"
 | 
				
			||||||
                      Title="Derping Drivers - Windows driver settings detection tool"
 | 
					                      Title="Derping Drivers - Windows driver settings detection tool"
 | 
				
			||||||
                      Height="450" Width="800"
 | 
					                      Height="420" Width="600"
 | 
				
			||||||
                      ShowMaxRestoreButton="False"
 | 
					                      ShowMaxRestoreButton="False"
 | 
				
			||||||
                      ResizeMode="NoResize"
 | 
					                      ResizeMode="NoResize"
 | 
				
			||||||
                      DataContext="{Binding RelativeSource={RelativeSource Self}}">
 | 
					                      DataContext="{Binding RelativeSource={RelativeSource Self}}">
 | 
				
			||||||
 | 
					    <controls:MetroWindow.Flyouts>
 | 
				
			||||||
 | 
					        <controls:FlyoutsControl>
 | 
				
			||||||
 | 
					            <controls:Flyout Header="Driver situation for this machine"
 | 
				
			||||||
 | 
					                             IsOpen="{Binding IsChecked, ElementName=DetailsToggleButton}"
 | 
				
			||||||
 | 
					                             Position="Right"
 | 
				
			||||||
 | 
					                             Width="600">
 | 
				
			||||||
 | 
					                <!-- Your custom content here -->
 | 
				
			||||||
 | 
					                <Label>Hi</Label>
 | 
				
			||||||
 | 
					            </controls:Flyout>
 | 
				
			||||||
 | 
					        </controls:FlyoutsControl>
 | 
				
			||||||
 | 
					    </controls:MetroWindow.Flyouts>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <Grid Margin="15">
 | 
					    <Grid Margin="15">
 | 
				
			||||||
        <Grid.RowDefinitions>
 | 
					        <Grid.RowDefinitions>
 | 
				
			||||||
 | 
					            <RowDefinition Height="Auto" />
 | 
				
			||||||
            <RowDefinition Height="Auto" />
 | 
					            <RowDefinition Height="Auto" />
 | 
				
			||||||
            <RowDefinition Height="*" />
 | 
					            <RowDefinition Height="*" />
 | 
				
			||||||
        </Grid.RowDefinitions>
 | 
					        </Grid.RowDefinitions>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        <Grid Grid.Row="1">
 | 
					        <Grid Grid.Row="0">
 | 
				
			||||||
            <Grid.RowDefinitions>
 | 
					            <Grid.RowDefinitions>
 | 
				
			||||||
                <RowDefinition Height="Auto" />
 | 
					                <RowDefinition Height="Auto" />
 | 
				
			||||||
                <RowDefinition Height="Auto" />
 | 
					                <RowDefinition Height="Auto" />
 | 
				
			||||||
@@ -34,23 +48,36 @@
 | 
				
			|||||||
            </Grid.ColumnDefinitions>
 | 
					            </Grid.ColumnDefinitions>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            <Label Grid.Row="0" Grid.Column="0">Windows version name:</Label>
 | 
					            <Label Grid.Row="0" Grid.Column="0">Windows version name:</Label>
 | 
				
			||||||
            <Label Grid.Row="0" Grid.Column="2" Content="{Binding Path=OsVersionName}"/>
 | 
					            <Label Grid.Row="0" Grid.Column="2" Content="{Binding Path=OsVersionName}" />
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            <Label Grid.Row="1" Grid.Column="0">Windows version number:</Label>
 | 
					            <Label Grid.Row="1" Grid.Column="0">Windows version number:</Label>
 | 
				
			||||||
            <Label Grid.Row="1" Grid.Column="2" Content="{Binding Path=OsVersion}"/>
 | 
					            <Label Grid.Row="1" Grid.Column="2" Content="{Binding Path=OsVersion}" />
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            <Label Grid.Row="2" Grid.Column="0">Windows architecture:</Label>
 | 
					            <Label Grid.Row="2" Grid.Column="0">Windows architecture:</Label>
 | 
				
			||||||
            <Label Grid.Row="2" Grid.Column="2" Content="{Binding Path=OsArchitecture}"/>
 | 
					            <Label Grid.Row="2" Grid.Column="2" Content="{Binding Path=OsArchitecture}" />
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            <Label Grid.Row="3" Grid.Column="0">Current boot mode:</Label>
 | 
					            <Label Grid.Row="3" Grid.Column="0">Current boot mode:</Label>
 | 
				
			||||||
            <Label Grid.Row="3" Grid.Column="2" Content="{Binding Path=BootMode}"/>
 | 
					            <Label Grid.Row="3" Grid.Column="2" Content="{Binding Path=BootMode}" />
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            <Label Grid.Row="4" Grid.Column="0">Secure Boot state:</Label>
 | 
					            <Label Grid.Row="4" Grid.Column="0">Secure Boot state:</Label>
 | 
				
			||||||
            <Label Grid.Row="4" Grid.Column="2" Content="{Binding Path=SecureBootEnabled}"/>
 | 
					            <Label Grid.Row="4" Grid.Column="2" Content="{Binding Path=SecureBootEnabled}" />
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            <Label Grid.Row="5" Grid.Column="0">OS upgrade status:</Label>
 | 
					            <Label Grid.Row="5" Grid.Column="0">OS upgrade status:</Label>
 | 
				
			||||||
            <Label Grid.Row="5" Grid.Column="2" Content="{Binding Path=OsUpgradeStatus}"/>
 | 
					            <Label Grid.Row="5" Grid.Column="2" Content="{Binding Path=OsUpgradeStatus}" />
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        </Grid>
 | 
					        </Grid>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        <Grid Grid.Row="1" Margin="0,20,0,0">
 | 
				
			||||||
 | 
					            <Grid.ColumnDefinitions>
 | 
				
			||||||
 | 
					                <ColumnDefinition Width="Auto" />
 | 
				
			||||||
 | 
					                <ColumnDefinition Width="*" />
 | 
				
			||||||
 | 
					            </Grid.ColumnDefinitions>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            <ToggleButton x:Name="DetailsToggleButton"
 | 
				
			||||||
 | 
					                          Grid.Column="0"
 | 
				
			||||||
 | 
					                          FontSize="20px">
 | 
				
			||||||
 | 
					                Show me some wisdom!
 | 
				
			||||||
 | 
					            </ToggleButton>
 | 
				
			||||||
        </Grid>
 | 
					        </Grid>
 | 
				
			||||||
</Controls:MetroWindow>
 | 
					    </Grid>
 | 
				
			||||||
 | 
					</controls:MetroWindow>
 | 
				
			||||||
@@ -4,4 +4,5 @@
 | 
				
			|||||||
  <package id="Costura.Fody" version="3.1.6" targetFramework="net451" />
 | 
					  <package id="Costura.Fody" version="3.1.6" targetFramework="net451" />
 | 
				
			||||||
  <package id="Fody" version="3.2.13" targetFramework="net451" developmentDependency="true" />
 | 
					  <package id="Fody" version="3.2.13" targetFramework="net451" developmentDependency="true" />
 | 
				
			||||||
  <package id="MahApps.Metro" version="1.6.5" targetFramework="net451" />
 | 
					  <package id="MahApps.Metro" version="1.6.5" targetFramework="net451" />
 | 
				
			||||||
 | 
					  <package id="MahApps.Metro.IconPacks" version="2.3.0" targetFramework="net451" />
 | 
				
			||||||
</packages>
 | 
					</packages>
 | 
				
			||||||
		Reference in New Issue
	
	Block a user