|
| 1 | +<Window |
| 2 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 3 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 4 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 5 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 6 | + xmlns:local="clr-namespace:WPFApp" |
| 7 | + xmlns:ViewModel="clr-namespace:WPFApp.ViewModel" xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml" x:Class="WPFApp.MainWindow" |
| 8 | + mc:Ignorable="d" |
| 9 | + Title="NVIDIA INF Modifier" Height="284.157" Width="483.885" Loaded="Window_Loaded"> |
| 10 | + <Grid> |
| 11 | + <StackPanel> |
| 12 | + <GroupBox Header="Highlight the NVIDIA GPU" Margin="10,0"> |
| 13 | + <StackPanel Margin="10,10,10,10" HorizontalAlignment="Stretch"> |
| 14 | + <DataGrid x:Name="devicesDataGrid" RowDetailsVisibilityMode="VisibleWhenSelected" ItemsSource="{Binding Devices}" SelectedItem="{Binding SelectedDevice}" HorizontalAlignment="Stretch" EnableRowVirtualization="True" AutoGenerateColumns="False"> |
| 15 | + <DataGrid.Columns> |
| 16 | + <DataGridTextColumn x:Name="keyColumn" Width="*" IsReadOnly="True" Header="Device Description" Binding="{Binding Key}"/> |
| 17 | + <!--DataGridTextColumn x:Name="valueColumn" Width="Auto" IsReadOnly="True" Header="Device Id" Binding="{Binding Value}"/--> |
| 18 | + </DataGrid.Columns> |
| 19 | + </DataGrid> |
| 20 | + </StackPanel> |
| 21 | + </GroupBox> |
| 22 | + |
| 23 | + <GroupBox Header="Select the folder where the NVIDIA driver has been extracted" Margin="10,10"> |
| 24 | + <Grid HorizontalAlignment="Stretch"> |
| 25 | + <Grid.ColumnDefinitions> |
| 26 | + <ColumnDefinition /> |
| 27 | + <ColumnDefinition Width="85"/> |
| 28 | + </Grid.ColumnDefinitions> |
| 29 | + <TextBox Grid.Column="0" HorizontalAlignment="Stretch" Text="{Binding FolderPath}"/> |
| 30 | + <Button x:Name="BrowseButton" Grid.Column="1" Content="Browse" HorizontalAlignment="Right" Width="80" Height="21" VerticalAlignment="Top" Click="BrowseButton_Click"/> |
| 31 | + </Grid> |
| 32 | + </GroupBox> |
| 33 | + |
| 34 | + </StackPanel> |
| 35 | + <Button x:Name="ModifyButton" Content="Modify INF Files" Click="ModifyButton_Click" VerticalAlignment="Bottom" IsEnabled="{Binding CanModify}" HorizontalAlignment="Right" Margin="0,0,10,10"/> |
| 36 | + </Grid> |
| 37 | +</Window> |
0 commit comments