当前位置: 首页 > news >正文

网站维护的主要工作网络营销方式方法有哪些

网站维护的主要工作,网络营销方式方法有哪些,菏泽网站开发,WordPress文章入库规则概述上期我们概述了CMFodyHC#xff0c;如果之前没有阅读#xff0c;可以先了解下#xff1a;C# 为什么说CMFodyHC是WPF开发的最强组合#xff1f;今天基于最新的VS版本、最新的CM框架版本#xff0c;.NET基于6.0#xff0c;搭建了一个WPF入门学习项目实例#xff0c;关…概述上期我们概述了CMFodyHC如果之前没有阅读可以先了解下C# 为什么说CMFodyHC是WPF开发的最强组合今天基于最新的VS版本、最新的CM框架版本.NET基于6.0搭建了一个WPF入门学习项目实例关于库的nuget引用部分上节已经讲过了不懂的看上期.开发环境VS2022 WPF框架Caliburn.Micro 版本4.0.212HandyControl3.3.0.NET版本.NET6.0HC相关的用法网上资料很少我们直接下载源项目看示例是最快捷的方式地址https://github.com/AFei19911012/HandyControl项目创建步骤详述① 在NUGET上引用相关的库②接下来是搭建CM框架这里可以参考文章C# WPF MVVM开发框架Caliburn.Micro快速搭建③C# WPF框架Caliburn.Micro快速搭建以上文章对框架大家有详细描述这里不再详细介绍③接下里需要在App.xaml中添加HandyControl的资源最终代码如下Application x:ClassWpfApp5.Appxmlnshttp://schemas.microsoft.com/winfx/2006/xaml/presentationxmlns:xhttp://schemas.microsoft.com/winfx/2006/xamlxmlns:localclr-namespace:WpfApp5Application.ResourcesResourceDictionaryResourceDictionary.MergedDictionariesResourceDictionarylocal:MyBootstrapper x:Keybootstrapper//ResourceDictionaryResourceDictionary Sourcepack://application:,,,/HandyControl;component/Themes/SkinDefault.xaml/ResourceDictionary Sourcepack://application:,,,/HandyControl;component/Themes/Theme.xaml//ResourceDictionary.MergedDictionaries/ResourceDictionary/Application.Resources /Application然后在对应的XAML页面引用xmlns:hchttps://handyorg.github.io/handycontrol④ 在需要属性变更的类名称前标注[AddINotifyPropertyChangedInterface]然后就可以愉快的玩转CMFodyHC.项目实例代码前台XAML:Window x:ClassWpfApp5.StartViewxmlnshttp://schemas.microsoft.com/winfx/2006/xaml/presentationxmlns:xhttp://schemas.microsoft.com/winfx/2006/xamlxmlns:mchttp://schemas.openxmlformats.org/markup-compatibility/2006 xmlns:dhttp://schemas.microsoft.com/expression/blend/2008 xmlns:calhttp://www.caliburnproject.org xmlns:hchttps://handyorg.github.io/handycontrolxmlns:localclr-namespace:WpfApp5mc:IgnorabledTitleStartView Height500 Width600 WindowStartupLocationCenterScreenhc:TransitioningContentControlStackPanelTextBox Margin0,0,0,32 hc:InfoElement.TitleWidth70 hc:InfoElement.PlaceholderNecessary hc:InfoElement.TitlePlacementLeft hc:InfoElement.TitleLeft title hc:InfoElement.NecessaryTrue Style{StaticResource TextBoxExtend} NameTextContent/Button Height48 Width160 Margin3 NametestBtnBackground{DynamicResource PrimaryBrush}hc:BackgroundSwitchElement.MouseHoverBackground{DynamicResource MouseHoverBrush} hc:BackgroundSwitchElement.MouseDownBackground{DynamicResource MouseDownBrush}Button.ContentGridGrid.ColumnDefinitionsColumnDefinition Widthauto/ColumnDefinition//Grid.ColumnDefinitionsImage Sourcepack://application:,,,/Images/icon.ico/Label Grid.Column1 ContentCustom Button BorderThickness0 BackgroundTransparent Foreground{DynamicResource TextIconBrush}//Grid/Button.Content/ButtonListBox NameListBoxItems MinHeight230 BackgroundLightGraycal:Message.Attach[Event SelectionChanged] [Action ListBoxItems_SelectionChanged($source,$eventArgs)];[Event MouseUp][ListBoxItems_MouseUp($source,$eventArgs)] /RepeatButton Height48 Width160 ContentRepeat Button Margin3 Delay500 Style{StaticResource RepeatButtonPrimary} Background{DynamicResource PrimaryBrush} Foreground{DynamicResource TextIconBrush} hc:BorderElement.CornerRadius0 NameRepeatButton_Click//StackPanel/hc:TransitioningContentControl /Window后台ViewModel:using Caliburn.Micro; using PropertyChanged; using System.Collections.ObjectModel; using System.Windows; using System.Windows.Controls; using System.Windows.Input;namespace WpfApp5 {[AddINotifyPropertyChangedInterface]class StartViewModel : Screen{public StartViewModel(){ListBoxItems new ObservableCollectionstring() { };ListBoxItems.Add(dotNet编程大全);ListBoxItems.Add(Csharp编程大全);ListBoxItems.Add(dotnet工控上位机编程);}public ObservableCollectionstring ListBoxItems { get; set; }public string TextContent { get; set; }public void testBtn(){TextContent hello world!;NotifyOfPropertyChange(() TextContent);}public void ListBoxItems_MouseUp(object sender, MouseButtonEventArgs e){ListBox listbox sender as ListBox;MessageBox.Show(当前操作的控件名称是: listbox.Name);}public void ListBoxItems_SelectionChanged(object sender, SelectionChangedEventArgs e){TextContent (sender as ListBox).SelectedItem.ToString();NotifyOfPropertyChange(TextContent);}public void RepeatButton_Click(object sender, RoutedEventArgs e){MessageBox.Show(你点击了按钮RepeatButton);}} }CM框架引导程序using Caliburn.Micro; using System.Windows;namespace WpfApp5 {class MyBootstrapper : BootstrapperBase{public MyBootstrapper(){Initialize();//初始化框架}protected override void OnStartup(object sender, StartupEventArgs e){DisplayRootViewForAsyncStartViewModel();//显示界面}} }运行演示源代码链接https://pan.baidu.com/s/1zuFpe-gv6h2L0pCJ_u8JoA提取码6666
http://wiki.neutronadmin.com/news/269582/

相关文章:

  • 岐山县住房和城市建设局网站百度空间登录
  • 网站开发项目总结范文制作伪装网站
  • 大型o2o网站开发时间网站建设流程与步骤
  • 大同网站建设开发安平谁做网站好
  • 商务网站是什么oa办公平台
  • 深圳罗湖住房和建设局网站官网网站建设策划怎么谈
  • 毕业设计购物网站怎么做佛山网红打卡景点大全排名榜
  • dz论坛做视频网站教程wordpress浮动广告
  • 北京企业网站推广哪家公司好王店镇建设中学网站
  • 佛山微网站建设报价鞍山58
  • 哪里有网站开发培训wordpress+上传权限设置
  • 怎么在记事本上做网站为什么简洁网站会受到用户欢迎
  • 做外贸网站卖什么货好呢棋牌网站搭建公司
  • 秦皇岛网站建设兼职wordpress 标签搜索引擎
  • wordpress 显示excelseo自然优化排名
  • 信宜网站建设建网站的几个公司
  • 如何用自己电脑做网站浙江省网站备案注销申请表
  • 崇安区网站建设价格重庆市建设工程信息网官网安全监督管理平台
  • 网站怎么做appwordpress set option
  • 网站开发 flex南京市建设工程档案馆网站
  • 温州做网站seo服装外贸行业发展趋势
  • 一般做网站的宽度怎么处理的阿里云域名注册入口官网
  • 网站留言板样式校园网站建设标书
  • 郑州网站app开发WordPress苏醒模板免费
  • 想开个网站做外贸怎么做浏览器网页游戏
  • 公司网站经典案例深圳公司官网设计
  • 微信小网站是怎么做的帮助做职业规划的网站
  • 济南市住建局官方网站南京做网站南京乐识专注
  • 微信代理网站模板网站建设的六个步骤
  • tornado做网站国人wordpress企业主题