当前位置:网站首页>C# 枚举类型 于xaml 中区别
C# 枚举类型 于xaml 中区别
2022-07-30 11:17:00 【Ares-Wang】

-----------winForm -----wpf--------
在C#中设置一个枚举类型的值,通常是 类型.值 而在xaml中则省略前面的类型C#:
SolidColorBrush scb=new SolidColorBrush();
scb.color=colors.AliceBlue;xmal:
<Button color="AliceBlue"/>
边栏推荐
猜你喜欢
随机推荐
spin lock和mutex使用场景的差异
[ASP.NET Core] Dependency Injection for Option Classes
横向对比5种常用的注册中心,无论是用于面试还是技术选型,都非常有帮助
Explain the problem of change exchange in simple terms - the shell of the backpack problem
mysql与redis 区别
VLAN相关知识点
GBJ2510-ASEMI电机专用25A整流桥GBJ2510
久经沙场的程序员居然也被某鱼的假程序员骗了,程序员之间的信任应该是最高的,他一个人毁了这种信任感
Is it too late to apply for PMP now to take the September exam?Share agile full-true mock questions
《跟唐老师学习云网络》 - 问题定位 - 主机通但容器不通
Neural Network Study Notes 3 - LSTM Long Short-Term Memory Network
京东校招笔试题+知识点总结
基于.NetCore开发博客项目 StarBlog - (16) 一些新功能 (监控/统计/配置/初始化)
[HarmonyOS] [ARK UI] How to double-click the return key to exit in HarmonyOS ets language
Hu-cang integrated e-commerce project (1): project background and structure introduction
Meituan internal push + school recruitment written test + summary of knowledge points
Swift common extension classes and simple encapsulation
Telerik2022 R2,有效的自动化测试
Neural Network Study Notes 4 - Autoencoder (including sparse, stacked) (updated)
The configuration process and related syntax of writing markdown format notes in vscode









