fixed an issue where resources could not be found in growl & messagebox
This commit is contained in:
1 parent
2aff85c4e2
commit
7c0a551d69
6 files changed
+24
-11
No files matched your search
@@ -375,13 +375,13 @@ namespace HandyControl.Controls
|
||||
if (!string.IsNullOrEmpty(info.IconKey))
|
||||
{
|
||||
messageBox.ShowImage = true;
|
||||
messageBox.Image = ResourceHelper.GetResourceInternal<Geometry>(info.IconKey);
|
||||
messageBox.ImageBrush = ResourceHelper.GetResourceInternal<Brush>(info.IconBrushKey);
|
||||
messageBox.Image = ResourceHelper.GetResource<Geometry>(info.IconKey) ?? info.Icon;
|
||||
messageBox.ImageBrush = ResourceHelper.GetResource<Brush>(info.IconBrushKey) ?? info.IconBrush;
|
||||
}
|
||||
|
||||
if (info.StyleKey != null)
|
||||
{
|
||||
messageBox.Style = ResourceHelper.GetResourceInternal<Style>(info.StyleKey);
|
||||
messageBox.Style = ResourceHelper.GetResource<Style>(info.StyleKey) ?? info.Style;
|
||||
}
|
||||
SystemSounds.Asterisk.Play();
|
||||
messageBox.ShowDialog();
|
||||
|
||||
Reference in new issue
Block a user