WinCalc.xaml 1.7 KB

12345678910111213141516171819202122232425262728293031323334
  1. <Window x:Class="Test.CalcTrans.WinCalc"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:Test.CalcTrans"
  7. mc:Ignorable="d"
  8. Title="WinCalc" Height="450" Width="800">
  9. <Grid>
  10. <Grid.RowDefinitions>
  11. <RowDefinition></RowDefinition>
  12. <RowDefinition></RowDefinition>
  13. <RowDefinition></RowDefinition>
  14. <RowDefinition></RowDefinition>
  15. <RowDefinition></RowDefinition>
  16. </Grid.RowDefinitions>
  17. <Grid.ColumnDefinitions>
  18. <ColumnDefinition></ColumnDefinition>
  19. <ColumnDefinition></ColumnDefinition>
  20. </Grid.ColumnDefinitions>
  21. <Label Content="原始支付" Grid.Row="0" Grid.Column="0"></Label>
  22. <TextBox x:Name="OriginPayValue" Grid.Row="0" Grid.Column="1"></TextBox>
  23. <Label Content="支付次数" Grid.Row="1" Grid.Column="0"></Label>
  24. <TextBox x:Name="PayTime" Grid.Row="1" Grid.Column="1"></TextBox>
  25. <Label Content="应支付金额" Grid.Row="2" Grid.Column="0"></Label>
  26. <TextBlock x:Name="OriginValue" Grid.Row="2" Grid.Column="1"></TextBlock>
  27. <Label Content="实际支付金额" Grid.Row="3" Grid.Column="0"></Label>
  28. <TextBlock x:Name="RealValue" Grid.Row="3" Grid.Column="1"></TextBlock>
  29. <Button Content="测试绑定" Name="TestBinding" Grid.Row="4" Grid.Column="0"></Button>
  30. <Button Content="计算" Click="Button_Click" Grid.Row="4" Grid.Column="1"></Button>
  31. </Grid>
  32. </Window>