Skip to content

Commit

Permalink
Sorry, forgot this file :-(
Browse files Browse the repository at this point in the history
  • Loading branch information
petvetbr committed Feb 29, 2016
1 parent e054fd5 commit 38dba49
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions MahApps.Metro/Controls/Dialogs/BaseMetroDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,18 @@ private void Initialize()
this.Resources.MergedDictionaries.Add(DialogSettings.CustomResourceDictionary);
}

var titleFontSizeResource = TryFindResource("DialogTitleFontSize") as double?;
if(titleFontSizeResource.HasValue)
{
this.DialogTitleFontSize = titleFontSizeResource.Value;
}
var messageFontSizeResource = TryFindResource("DialogMessageFontSize") as double?;
if (messageFontSizeResource.HasValue)
{
this.DialogMessageFontSize = messageFontSizeResource.Value;
}


this.Loaded += (sender, args) =>
{
OnLoaded();
Expand Down

0 comments on commit 38dba49

Please # to comment.