wpf SplitButton



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>

原文地址:https://www.cnblogs.com/yangykaifa/p/7235287.html