X3

RedSky

导航

06 2021 档案

WPF窗体透明Win7,Win10不同处理方法
摘要:直接上代码: public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); WindowStyle = WindowStyle.None; if (IsWindows8x()) { Re 阅读全文

posted @ 2021-06-24 18:01 HotSky 阅读(271) 评论(0) 推荐(0)

WPF颜色选择控件
摘要:效果图: cs: 1 /// <summary> 2 /// ColorPick.xaml 的交互逻辑 3 /// </summary> 4 public partial class ColorPick : UserControl 5 { 6 ChangeSource _changeSource; 阅读全文

posted @ 2021-06-21 10:16 HotSky 阅读(524) 评论(0) 推荐(0)

WPF ContextMenu绑定
摘要:<Window DataContext="{Binding MyViewModelInstance}"> <ListBox ItemsSource="{Binding MyDataItems}"> <ListBox.ContextMenu> <ContextMenu DataContext="{Bi 阅读全文

posted @ 2021-06-09 15:46 HotSky 阅读(509) 评论(0) 推荐(0)