wpf SplitButton

来源:互联网 发布:centos是什么 编辑:程序博客网 时间:2024/06/05 22:30


SplitButton该控件除了本身Button 的功能外,还具有下拉菜单的功能,可以在按键右侧添加下拉菜单控件:

            <SplitButton Content="..." Width="80" Height="22"  Grid.Column="2"  Margin="10,0,2,0"                      
                         Command="{Binding SelectFileCommand}"
                         VerticalAlignment="Center" HorizontalAlignment="Center">
                <SplitButton.DropDownContent>
                    <Button Content="DownLoad" Command="{Binding DownLoadCommand}" />
                </SplitButton.DropDownContent>

0 0
原创粉丝点击