Skip to content

Commit

Permalink
#6 - added tool tip for missing content (disabled button)
Browse files Browse the repository at this point in the history
  • Loading branch information
stojy committed Jun 6, 2021
1 parent 5f1e0ec commit a4a5476
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ClrVpin/Scanner/ScannerExplorer.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
<Setter Property="IsEnabled" Value="{Binding IsPresent}" />

<!-- add tooltip to list box item instead of within pack icon so that it's not restricted to the mouse over the actual icon image -->
<Setter Property="ToolTip" Value="{Binding Description}" />
<Setter Property="ToolTipService.ToolTip" Value="{Binding Description}" />
<Setter Property="ToolTipService.ShowOnDisabled" Value="true" />
</Style>
</ListBox.ItemContainerStyle>
</ListBox>
Expand Down Expand Up @@ -85,6 +86,7 @@
materialDesign:DataGridAssist.ColumnHeaderPadding="15 5 5 8">
<DataGrid.Columns>
<DataGridTextColumn Header="#" Binding="{Binding Number}" IsReadOnly="True" ElementStyle="{StaticResource TextCellStyle}" />
<DataGridTemplateColumn Header="Valid" CellTemplate="{StaticResource SmellyTemplate}" SortMemberPath="Content.IsSmelly" CanUserSort="True" />
<DataGridTemplateColumn Header="IPDB" CellTemplate="{StaticResource IpdbTemplate}" />
<DataGridTextColumn Header="Table" Binding="{Binding TableFileWithExtension}" Width="280" IsReadOnly="True" ElementStyle="{StaticResource TextCellStyle}" />
<DataGridTextColumn Header="Description" Binding="{Binding Description}" Width="280" IsReadOnly="True" ElementStyle="{StaticResource TextCellStyle}" />
Expand All @@ -93,7 +95,6 @@
<DataGridTextColumn Header="Rating" Binding="{Binding Rating}" IsReadOnly="True" ElementStyle="{StaticResource TextCellStyle}" />
<!--<DataGridTextColumn Header="Modified" Binding="{Binding DateModified}" />-->
<DataGridTextColumn Header="Author(s)" Binding="{Binding Author}" Width="200" IsReadOnly="True" ElementStyle="{StaticResource TextCellStyle}" />
<DataGridTemplateColumn Header="Valid" CellTemplate="{StaticResource SmellyTemplate}" SortMemberPath="Content.IsSmelly" CanUserSort="True" />

<DataGridTemplateColumn Header="Content" CellTemplate="{StaticResource ContentTemplate}" />
</DataGrid.Columns>
Expand Down

0 comments on commit a4a5476

Please sign in to comment.