window1.xaml
来自「学习WPF的好东西」· XAML 代码 · 共 19 行
XAML
19 行
<Window x:Class="DTSample.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="DTSample" Height="500" Width="500"
xmlns:er="clr-namespace:DTSample"
Loaded="OnLoaded"
xmlns:d="http://schemas.microsoft.com/expression/interactivedesigner/2006"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
>
<StackPanel><!--, Mode = TwoWay-->
<Button x:Name="Button1" Content="I'm button1" MouseEnter="BT1_MouseEnter" MouseLeave="BT1_MouseLeave" Height="100" Width="200"></Button>
<Button x:Name="Button2" Margin="0,30,0,0" Content="I'm button2" MouseEnter="BT2_MouseEnter" MouseLeave="BT2_MouseLeave" Height="100" Width="200"></Button>
<!--<Button x:Name="Button1" Content="{Binding Path=Content}" MouseEnter="BT1_MouseEnter" MouseLeave="BT1_MouseLeave" Click="Onclick" Height="{Binding Path=Height}" Width="200"></Button>
<Button x:Name="Button2" Margin="0,30,0,0" Content="I'm button2" MouseEnter="BT2_MouseEnter" MouseLeave="BT2_MouseLeave" Height="100" Width="200"></Button>-->
</StackPanel>
</Window>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?