【发布时间】:2013-06-04 18:44:13
【问题描述】:
我正在使用 Blend(我对它非常陌生)来创建 XAML。我有一行代码调用下面的函数writeC:
<Button x:Name="key_c" Content="c" HorizontalAlignment="Left" Height="60"
Margin="243,188.667,0,0" VerticalAlignment="Top" Width="60" FontWeight="Bold"
FontFamily="Century Gothic" FontSize="21.333" Foreground="Black"
Click="writeC">
这很好用。但是,我想将其更改为调用带有参数"a" 和"A" 的函数WriteChar,以便它调用以下C# 函数:
private void writeChar(string myCharCaps, string myCharLower)
如何在 XAML 中编写此代码?
【问题讨论】: