Skip to content

Commit

Permalink
Add Weights.CreationDate
Browse files Browse the repository at this point in the history
  • Loading branch information
Neakita committed Sep 28, 2023
1 parent 415c5fe commit a0f7608
Show file tree
Hide file tree
Showing 5 changed files with 681 additions and 1 deletion.
11 changes: 11 additions & 0 deletions SightKeeper.Avalonia/Views/Dialogs/WeightsEditor.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@
SelectedItem="{Binding SelectedWeights}"
IsReadOnly="True">
<DataGrid.Columns>
<DataGridTemplateColumn Header="Date">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<Panel ToolTip.Tip="{Binding CreationDate, StringFormat=F}"
Background="Transparent"> <!--Transparent background allows to point over non text area and see tooltip, it is impossible with null background which is default-->
<TextBlock Text="{Binding CreationDate, StringFormat=d}"
VerticalAlignment="Center"/>
</Panel>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<DataGridTextColumn Header="Size"
Binding="{Binding Size}"/>
<DataGridTextColumn Header="Epoch"
Expand Down
Loading

0 comments on commit a0f7608

Please sign in to comment.