boyliupan

ModernWindow的标题栏包含了一块区域用来显示自定义的窗体Logo:

clipboard

这个窗体logo通过ModernWindow.LogoData属性来设置。这个属性是几何类型数据支持Path.Data mini-language,图标大小为24*24像素,设置其他像素大小都会被拉伸到这个大小。

下面的代码设置了一个笑脸标志,path data是从Modern UI Icons中拿出来的一个,具体请看代码:

clipboard[1]

显示效果如下:

clipboard[2]

分类:

技术点:

相关文章:

  • 2021-05-20
  • 2021-11-18
  • 2021-09-12
  • 2021-09-12
  • 2021-09-12
  • 2021-12-07
  • 2021-08-28
  • 2022-12-23
猜你喜欢
  • 2021-09-06
  • 2021-08-20
  • 2022-01-03
  • 2022-01-05
  • 2021-12-29
  • 2021-07-16
  • 2022-01-28
相关资源
相似解决方案