Exemplo n.º 1
0
        protected Font GetThemeFont(MetroFontSize size, MetroFontWeight weight)
        {
            if (size == MetroFontSize.Default && !TryGetThemeProperty("MetroFontSize", out size))
            {
                size = MetroDefaults.MetroFontSize;
            }

            if (weight == MetroFontWeight.Default && !TryGetThemeProperty("MetroFontWeight", out weight))
            {
                weight = MetroDefaults.MetroFontWeight;
            }

            return(_styleManager.GetThemeFont(size, weight, MetroControlCategory));
        }