ConorLuo 博客

胆小认生,不易相处

1. 问题描述

xaml 代码块如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
<Button Content="333">
<Button.Style>
<Style TargetType="Button">
<Setter Property="Width" Value="70"/>
<Setter Property="Height" Value="27"/>
<Style.Triggers>
<DataTrigger Binding="{Binding ElementName=listBox, Path=SelectedIndex}" Value="2">
<Setter Property="Content" Value="three" />
</DataTrigger>
</Style.Triggers>
</Style>
</Button.Style>
</Button>

运行后,触发 DataTrigger 发现 Button 的 Content 没有变化

阅读全文 »

Welcome to Hexo!
This is your very first post. Check documentation for more info.
If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment

0%