揭秘window 7 计算器界面
揭秘window 7 计算器界面编程
<Grid>
<Grid Background="#FFEFF1F5" AllowDrop="False">
<Grid.RowDefinitions >
<RowDefinition ></RowDefinition>
<RowDefinition ></RowDefinition>
<RowDefinition ></RowDefinition>
<RowDefinition ></RowDefinition>
<RowDefinition ></RowDefinition>
<RowDefinition ></RowDefinition>
<RowDefinition ></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition ></ColumnDefinition>
<ColumnDefinition ></ColumnDefinition>
<ColumnDefinition ></ColumnDefinition>
<ColumnDefinition ></ColumnDefinition>
<ColumnDefinition ></ColumnDefinition>
</Grid.ColumnDefinitions>
<TextBox Grid.ColumnSpan="5" Margin=" 5" Name="result" TextChanged="result_TextChanged" Text="0" FlowDirection="RightToLeft"></TextBox>
<Button Grid.Row=" 1" Margin=" 5" Content="MC "></Button>
<Button Grid.Row="1" Grid.Column="1" Margin="5" Content="MR "></Button>
<Button Grid.Row="1" Grid.Column=" 2" Margin=" 5" Content="MS "></Button>
<Button Grid.Row="1" Grid.Column=" 3" Margin=" 5" Content="M+ "></Button>
<Button Grid.Row="1" Grid.Column=" 4" Margin=" 5" Content="M- "></Button>
<Button Grid.Row="2" Grid.Column=" 0" Margin=" 5" Content="← "></Button>
<Button Grid.Row="2" Grid.Column=" 1" Margin=" 5" Content="CE "></Button>
<Button Grid.Row="2" Grid.Column=" 2" Margin=" 5" Content="C "></Button>
<Button Grid.Row="2" Grid.Column=" 3" Margin=" 5" Content="± "></Button>
<Button Grid.Row="2" Grid.Column=" 4" Margin=" 5" Content="√ "></Button>
<Button Grid.Row="3" Grid.Column=" 0" Margin=" 5"Content="7 " ></Button>
<Button Grid.Row="3" Grid.Column=" 1" Margin=" 5" Content="8"></Button>
<Button Grid.Row="3" Grid.Column=" 2" Margin=" 5" Content="9 "></Button>
<Button Grid.Row="3" Grid.Column=" 3" Margin=" 5" Content="/ "></Button>
<Button Grid.Row="3" Grid.Column=" 4" Margin=" 5" Content="% "></Button>
<Button Grid.Row="4" Grid.Column=" 0" Margin=" 5" Content="4 " ></Button>
<Button Grid.Row="4" Grid.Column=" 1" Margin=" 5" Content="5 "></Button>
<Button Grid.Row="4" Grid.Column=" 2" Margin=" 5" Content="6 "></Button>
<Button Grid.Row="4" Grid.Column=" 3" Margin=" 5" Content="* "></Button>
<Button Grid.Row="4" Grid.Column=" 4" Margin=" 5" Content="1/x"></Button>
<Button Grid.Row="5" Grid.Column=" 0" Margin=" 5" Content="1 "></Button>
<Button Grid.Row="5" Grid.Column=" 1" Margin=" 5" Content="2 "></Button>
<Button Grid.Row="5" Grid.Column=" 2" Margin=" 5" Content="3 "></Button>
<Button Grid.Row="5" Grid.Column=" 3" Margin=" 5" Content="- "></Button>
<Button Grid.Row="6" Grid.ColumnSpan="2" Margin=" 5" Content="0 "></Button>
<Button Grid.Row="6" Grid.Column=" 2" Margin=" 5" Content=". "></Button>
<Button Grid.Row="6" Grid.Column=" 3" Margin=" 5" Content="+ "></Button>
<Button Grid.Row=" 5" Grid.RowSpan="2" Grid.Column=" 4" Margin=" 5" Content="=" Click="Button_Click"></Button>
</Grid>
</Grid>