Skip to content

Commit

Permalink
added tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
ArkadySK committed Feb 1, 2022
1 parent dad1d0e commit 9254e79
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions GbxMapBrowser/GbxGamesWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,32 @@
<RowDefinition Height="Auto" MinHeight="50" />
</Grid.RowDefinitions>

<ListView Margin="5" x:Name="listView" ItemsSource="{Binding GbxGames}" MouseDoubleClick="listView_MouseDoubleClick" SelectedIndex="0">
<ListView Margin="5" x:Name="listView" ItemsSource="{Binding GbxGames}" MouseDoubleClick="listView_MouseDoubleClick" SelectedIndex="0" ScrollViewer.HorizontalScrollBarVisibility="Disabled">
<!--GbxGame Item Template-->
<ListView.ItemTemplate>
<DataTemplate >
<Grid Height="80" ToolTip="{Binding InstalationFolder}">
<Grid Height="80">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="80"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<StackPanel Orientation="Horizontal" Grid.Column="1">
<Label Style="{StaticResource DefaultUIStyle}" FontSize="20" FontWeight="Bold" Content="{Binding Name}"/>
<Label Style="{StaticResource DefaultUIStyle}" FontSize="20" FontWeight="Bold" Content="{Binding Name}" ToolTip="{Binding Content, RelativeSource={RelativeSource Self}}"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Grid.Column="1" Grid.Row="1">
<Label Margin="2" Style="{StaticResource DefaultUIStyle}">Maps: </Label>
<Label Style="{StaticResource DefaultUIStyle}" FontSize="12" FontWeight="Light" Content="{Binding MapsFolder}" ToolTip="{Binding Content, RelativeSource={RelativeSource Self}}"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Grid.Column="1" Grid.Row="2">
<Label Margin="2" Style="{StaticResource DefaultUIStyle}">Exe: </Label>
<Label Style="{StaticResource DefaultUIStyle}" FontSize="12" FontWeight="Light" Content="{Binding ExeLocation}" ToolTip="{Binding Content, RelativeSource={RelativeSource Self}}"/>
</StackPanel>
<Label Grid.Column="1" Grid.Row="1" Style="{StaticResource DefaultUIStyle}" FontWeight="Light" Content="{Binding InstalationFolder}"/>
<Image Grid.RowSpan="2" Source="{Binding Icon}"/>
<Image Grid.RowSpan="3" Source="{Binding Icon}"/>
</Grid>
</DataTemplate>
</ListView.ItemTemplate>
Expand Down

0 comments on commit 9254e79

Please sign in to comment.