Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/276.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/wpf/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 如何确定窗口标题的字体大小?_C#_Wpf_Fonts_Caption - Fatal编程技术网

C# 如何确定窗口标题的字体大小?

C# 如何确定窗口标题的字体大小?,c#,wpf,fonts,caption,C#,Wpf,Fonts,Caption,我正在WPF中创建一个自定义窗口。为此,我想获得窗口标题的当前字体大小(用户在窗口颜色和外观设置中选择的任何字体)。有一个简单的方法吗?System.Drawing.SystemFonts.CaptionFont也许?System.Drawing.SystemFonts.CaptionFont也许?一个方法是使用SystemFonts.CaptionFontSizeKey一个方法是使用SystemFonts.CaptionFontSizeKey我找到了答案看看周围的混合,但谢谢你。如果我没有找到

我正在WPF中创建一个自定义窗口。为此,我想获得窗口标题的当前字体大小(用户在窗口颜色和外观设置中选择的任何字体)。有一个简单的方法吗?

System.Drawing.SystemFonts.CaptionFont
也许?

System.Drawing.SystemFonts.CaptionFont
也许?

一个方法是使用
SystemFonts.CaptionFontSizeKey

一个方法是使用
SystemFonts.CaptionFontSizeKey
我找到了答案看看周围的混合,但谢谢你。如果我没有找到,你的答案肯定是正确的。我在Blend中环顾四周时找到了答案,但谢谢你。如果我没有找到,你的答案肯定是正确的。