在App.xaml中,我的代码如下:
<Application x:Class="CCE_Reborn.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:CCE_Reborn"
StartupUri="AdminWindow.xaml"
xmlns:Knight="clr-namespace:System;assembly=mscorlib">
<Application.Resources>
<Knight:Double x:Key="ButtonFontSize">18</Knight:Double>
</Application.Resources>
如何动态计算ButtonFontSize值以供用户自定义?例如:<Knight:Double x:Key="ButtonFontSize">someMethod(parameters)</Knight:Double>