• 揭秘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>

  • 相关阅读:
    List、Map、set的加载因子,默认初始容量和扩容增量
    spring事务处理
    根据url的属性名来取属性值赋值给js
    XStream JavaBean对象转换成XML!
    【转载:java】详解java中的注解(Annotation)
    Myeclipse修改jdk版本流程
    Bootstrap中文参考手册
    CSS3参考手册
    HTML 5 参考手册
    win7win8一键取得超级管理员权限
  • 原文地址:https://www.cnblogs.com/YUEYongpeng/p/WPF.html
Copyright © 2020-2023  润新知