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

网站建设服务的风险WordPress 如何去域名授权

网站建设服务的风险,WordPress 如何去域名授权,广州冼村保利天御,wordpress sql 查询WPF 并没有内置FontDialog和ColorDialog#xff0c;但可以通过引用 Windows Forms 的控件来实现字体和颜色选择对话框功能。FontDialog 允许用户选择字体、样式、大小等设置。 添加 Windows Forms的引用 项目工程#xff1a;右键“引用”》“添加引用”》勾选System.Window…WPF 并没有内置FontDialog和ColorDialog但可以通过引用 Windows Forms 的控件来实现字体和颜色选择对话框功能。FontDialog 允许用户选择字体、样式、大小等设置。 添加 Windows Forms的引用 项目工程右键“引用”》“添加引用”》勾选System.Windows.Forms 浏览选择System.Windows.Forms.dll动态库文件 默认路径C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework 3.添加成功 在C# WPF应用程序中不能直接使用System.Drawing.Font因为System.Drawing.Font是Windows Forms的一部分而不是WPF。WPF使用System.Windows.Media.FontFamily来表示字体。需要做相应的转换才可以使用WinForm中的Color( System.Drawing.Color)与Wpf中Color(System.Windows.Media.Color)也需要要相互转换才能使用 代码示例 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; using System.Windows.Forms;namespace WpfColorFontDialog {/// summary/// MainWindow.xaml 的交互逻辑/// /summarypublic partial class MainWindow : Window{public MainWindow(){InitializeComponent();}private void btnSetFont_Click(object sender, RoutedEventArgs e){System.Windows.Forms.FontDialog fontDialog new System.Windows.Forms.FontDialog();if (fontDialog.ShowDialog() System.Windows.Forms.DialogResult.OK){// System.Drawing.Font DFont new System.Drawing.Font(宋体, 10, System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic);System.Drawing.Font drawingFont fontDialog.Font;FontFamily fontFamily new FontFamily(drawingFont.Name);double fontSize drawingFont.Size;FontWeight fontWeight FontWeights.Bold;if (drawingFont.Bold){fontWeight FontWeights.Bold;}else {fontWeight FontWeights.Normal;}FontStyle fontStyle (drawingFont.Style System.Drawing.FontStyle.Italic) ! 0 ? FontStyles.Italic : FontStyles.Normal;txtBlock.FontFamily fontFamily;txtBlock.FontSize fontSize;txtBlock.FontStyle fontStyle;txtBlock.FontWeight fontWeight;}}private void btnSetColor_Click(object sender, RoutedEventArgs e){System.Windows.Forms.ColorDialog colorDialog new System.Windows.Forms.ColorDialog();if (colorDialog.ShowDialog() System.Windows.Forms.DialogResult.OK){System.Windows.Media.Color MColor new System.Windows.Media.Color();MColor System.Windows.Media.Color.FromArgb(colorDialog.Color.A, colorDialog.Color.R, colorDialog.Color.G, colorDialog.Color.B);System.Windows.Media.Brush BColor new SolidColorBrush(MColor);txtBlock.Background BColor;}}} }
http://www.w-s-a.com/news/17420/

相关文章:

  • 做百度外链哪些网站权重高点做网站具备的条件
  • 怎么样用ppt做网站红番茄 网站点评
  • 建设银行河北分行招聘网站哪里能找到网站
  • 兰州营销型网站网站建设收费标准
  • 网站首页动图怎么做自己做网站很难
  • 自建网站如何盈利推广引流最快的方法
  • 网页设计网站结构图怎么弄网站用户 分析
  • 企业手机网站建设策划天津网页设计工作
  • 苏州vr全景网站建设公司怎么讲解网页的制作技术
  • 徐州智能建站怎么做苏州建设网站首页
  • 网站支付功能报价wordpress主页透明
  • asia域名的网站宁波模板建站源码
  • 官网网站怎么做个人网站盈利
  • 青龙桥网站建设网站同时做竞价和优化可以
  • 沭阳建设网站婴儿辅食中企动力提供网站建设
  • 常州做网站的公司济宁网站建设seo
  • 用wordpress做企业网站视频教程韶关建设网站
  • 怎么做一个免费的网站云南网站设计选哪家
  • dw做六个页面的网站做网站运营有前途吗
  • 中级网站开发工程师 试题战地之王网站做任务
  • 广东东莞保安公司湖南 seo
  • 无锡网站策划公司如何零基础学编程
  • 金融网站如何做设计网站开发流程 文档
  • 用jsp做网站国内知名设计工作室
  • 一键搭建网站北京公司网站设计
  • 山东省城乡建设部网站网站营销单页怎么做
  • 中国移动视频网站建设百度统计官网
  • 网站实施过程网站上传视频怎么做
  • 网上书店网站建设实训总结嘉兴seo
  • 网站运行需求cos wordpress