Files
06-Note/WPF/Wpf-Ui.cs
sherlockforrest bf2ed2e31f 更新
2023-06-20 09:22:53 +08:00

17 lines
638 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
private Collection<ResourceDictionary> GetAllDictionaries()
{
//TODO:修改此处以在中调用,因为Revit application会为空字体文件的生成方式应为资源
var application = Application.Current;
if (application != null)
{
return Application.Current.Resources.MergedDictionaries;
}
return new Collection<ResourceDictionary>();
}
static TextBlock()
{
//TODO 字体太大会修改界面字体Revit
TextElement.FontSizeProperty.OverrideMetadata(typeof(System.Windows.Controls.TextBlock), new FrameworkPropertyMetadata(14.0));
}