2021-01-09 16:11:49 -05:00
|
|
|
<views:MvxWindow x:Class="GoldbergGUI.WPF.Views.SearchResultView"
|
|
|
|
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:views="clr-namespace:MvvmCross.Platforms.Wpf.Views;assembly=MvvmCross.Platforms.Wpf"
|
|
|
|
xmlns:viewModels="clr-namespace:GoldbergGUI.Core.ViewModels;assembly=GoldbergGUI.Core"
|
|
|
|
d:DataContext="{d:DesignInstance Type=viewModels:SearchResultViewModel}"
|
|
|
|
mc:Ignorable="d"
|
|
|
|
Title="Auto-CreamAPI 2: Search Results" Width="420" Height="540" MinWidth="420" MinHeight="540">
|
|
|
|
<Grid Margin="10,10,10,10">
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Label Content="Select a game..." HorizontalAlignment="Left" Margin="0,0,0,10" VerticalAlignment="Top" />
|
|
|
|
<DataGrid Grid.Row="1" AutoGenerateColumns="False" IsReadOnly="True" SelectionMode="Single"
|
|
|
|
ItemsSource="{Binding Apps}" SelectedItem="{Binding Selected}">
|
|
|
|
<DataGrid.InputBindings>
|
|
|
|
<MouseBinding Gesture="LeftDoubleClick" Command="{Binding SaveCommand}" />
|
|
|
|
</DataGrid.InputBindings>
|
|
|
|
<DataGrid.Columns>
|
|
|
|
<DataGridTextColumn Header="AppID" Binding="{Binding AppId}" />
|
|
|
|
<DataGridTextColumn Header="Game Name" Binding="{Binding Name}" />
|
|
|
|
</DataGrid.Columns>
|
|
|
|
</DataGrid>
|
2021-01-14 13:38:31 -05:00
|
|
|
<Button Content="_OK" Command="{Binding SaveCommand}" HorizontalAlignment="Right" Margin="0,10,70,0"
|
2021-01-09 16:11:49 -05:00
|
|
|
Grid.Row="2" VerticalAlignment="Top" Width="60" />
|
2021-01-14 13:38:31 -05:00
|
|
|
<Button Content="_Cancel" Command="{Binding CloseCommand}" HorizontalAlignment="Right" Margin="0,10,0,0"
|
2021-01-09 16:11:49 -05:00
|
|
|
Grid.Row="2" VerticalAlignment="Top" Width="60" />
|
|
|
|
</Grid>
|
|
|
|
</views:MvxWindow>
|