zl程序教程

您现在的位置是:首页 >  后端

当前栏目

wpf 菜单

WPF 菜单
2023-09-14 09:10:46 时间
<Style TargetType="{x:Type DataGrid}">
	<Setter Property="ContextMenu">
            <Setter.Value>
                <ContextMenu  StaysOpen="true">
                    <MenuItem Header="Copy" Command="{x:Static ApplicationCommands.Copy}">
                    </MenuItem>
                </ContextMenu>
            </Setter.Value>
    </Setter>
</Style>