Skip to content

Commit

Permalink
Fix icon of items in LogProfileSelectionContextMenu.
Browse files Browse the repository at this point in the history
  • Loading branch information
hamster620 committed Dec 15, 2023
1 parent 3d5bb5f commit 5f3acaf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ULogViewer/Controls/LogProfileSelectionContextMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ public LogProfile? CurrentLogProfile
menuItem.Icon = new Avalonia.Controls.Image().Also(icon =>
{
icon.Classes.Add("MenuItem_Icon");
icon.Source = this.FindResourceOrDefault<IImage>("Image/Icon.Copy.Outline");
icon.BindToResource(Avalonia.Controls.Image.SourceProperty, "Image/Icon.Copy.Outline");
});
menuItem.Tag = CopyCurrentLogProfileTag;
});
Expand All @@ -364,7 +364,7 @@ public LogProfile? CurrentLogProfile
menuItem.Icon = new Avalonia.Controls.Image().Also(icon =>
{
icon.Classes.Add("MenuItem_Icon");
icon.Source = this.FindResourceOrDefault<IImage>("Image/Icon.Edit.Outline");
icon.BindToResource(Avalonia.Controls.Image.SourceProperty, "Image/Icon.Edit.Outline");
});
menuItem.Tag = EditCurrentLogProfileTag;
});
Expand All @@ -386,7 +386,7 @@ public LogProfile? CurrentLogProfile
menuItem.Icon = new Avalonia.Controls.Image().Also(icon =>
{
icon.Classes.Add("MenuItem_Icon");
icon.Source = this.FindResourceOrDefault<IImage>("Image/Icon.Export");
icon.BindToResource(Avalonia.Controls.Image.SourceProperty, "Image/Icon.Export");
});
menuItem.Tag = ExportCurrentLogProfileTag;
});
Expand Down Expand Up @@ -498,7 +498,7 @@ public LogProfile? CurrentLogProfile
menuItem.Icon = new Avalonia.Controls.Image().Also(icon =>
{
icon.Classes.Add("MenuItem_Icon");
icon.Source = this.FindResourceOrDefault<IImage>("Image/Icon.Delete.Outline");
icon.BindToResource(Avalonia.Controls.Image.SourceProperty, "Image/Icon.Delete.Outline");
});
menuItem.Tag = RemoveCurrentLogProfileTag;
});
Expand Down

0 comments on commit 5f3acaf

Please sign in to comment.