Skip to content

Commit

Permalink
Merge pull request #2599 from cyanfish/wfdialogicon
Browse files Browse the repository at this point in the history
WinForms: Show icon when set in Dialog
  • Loading branch information
cwensley committed Dec 16, 2023
2 parents 518fdea + b01d2b7 commit 51e1798
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Eto.WinForms/Forms/WindowHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,11 @@ public Icon Icon
{
icon = value;
Control.Icon = ((IWindowsIconSource)icon.Handler).GetIcon();
if (!Control.ShowIcon)
{
// For dialogs we don't show an icon by default and need to enable it here
Control.ShowIcon = true;
}
}
}

Expand Down

0 comments on commit 51e1798

Please sign in to comment.