社区
WPF/Silverlight
帖子详情
xaml 有if吗?
lude8880
2014-05-25 11:32:33
请问能不能不用编程根据一个对象的值来决定一个控件的背景颜色,比如“b”就是蓝色“y”就是黄色
...全文
319
3
打赏
收藏
xaml 有if吗?
请问能不能不用编程根据一个对象的值来决定一个控件的背景颜色,比如“b”就是蓝色“y”就是黄色
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
3 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
xhtmldivcss
2014-05-25
打赏
举报
回复
这个真没试过,不过似乎在Blend里通过Action/Trigger之类的可以实现这样的功能吧。
小恒丶
2014-05-25
打赏
举报
回复
判断这个可以用转换器
Bonjour-你好
2014-05-25
打赏
举报
回复
if语句就没有,“根据一个对象的值来决定一个控件的背景颜色”,用转换器可以实现。
Ka
xaml
推出1.8版本
Ka
xaml
is a lightweight
XAML
editor that gives you a "split view" so you can see both your
XAML
and your rendered content (kind of like
Xaml
Pad but without the gigabyte of SDK). Ka
xaml
is a hobby and was created to be shared, so it's free! Feel free to download and try it out. If you don't like it, it cleans up nicely. Ka
xaml
is designed to be "notepad for
XAML
." It's supposed to be simple and lightweight and make it easy to just try something out. It also has some basic support for intellisense and some fun plugins (including one for snippets, one for cleaning up your
XAML
and for rendering your
XAML
to an image).
hamburger:通用Windows平台最简单的汉堡菜单实现
UWP的汉堡菜单 通用Windows平台的简单汉堡包菜单实现。 假设您有一个用Blank App模板创建的UWP项目,只需将Shell.
xaml
和Shell.
xaml
.cs添加到您的项目中,并按如下所示修改App.
xaml
.cs : protected override void OnLaunched ( LaunchActivatedEventArgs e ) { var shell = Window . Current . Content as Shell ; // Do not repeat app initialization when the Window already has content, // just ensure that the window is active if ( shell == null ) {
Microsoft Blend 2019/C#/.NET/MVVM/WCF/
XAML
/WPF/UWP
如果你正在使用WPF、UWP技术进行开发,你一定需要学习Microsoft Blend,在这里你会发现,只需动动鼠标,你就可以迅速开发出又酷、又炫、又华丽应用程序界面,而系统自动为你生成全部的
XAML
代码。从此告别手工编写...
WPF学习笔记02-
XAML
语法
XAML
基本语法
XAML
- What is
XAML
?
XAML
- What is
XAML
?
XAML
-Microsoft Extensible Application Markup Language
XAML
and WPF
XAML
is based on Extensible Markup Language (XML) and enables developers to specify a hierarchy of objects with a
WPF/Silverlight
8,731
社区成员
12,028
社区内容
发帖
与我相关
我的任务
WPF/Silverlight
WPF/Silverlight相关讨论
复制链接
扫一扫
分享
社区描述
WPF/Silverlight相关讨论
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章