Skip to content

Commit 3a375d2

Browse files
committed
更新 README.md,新增 PseudoClasses 说明及示例,更新 VariableBox 版本至 0.5.0
1 parent 70f4408 commit 3a375d2

3 files changed

Lines changed: 39 additions & 1 deletion

File tree

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ VariableBox is a Avalonia Control for building cross-platform UIs with Avalonia
3434

3535
## ChangeLog
3636

37+
- 2025/02/21(v0.5.0)
38+
1. remote property `IsEnableEditingIndicator` indicator
39+
2. please use the `PseudoClasses`
40+
1. `:editing` for editing
41+
2. `:invalid` for invalid input
42+
3743
- 2025/02/19(v0.4.0)
3844
1. fix the style of buttonspinner and the disabled style
3945
1. fluent,semi and simple is all supported
@@ -102,6 +108,38 @@ You can now use VariableBox controls in your Avalonia Application.
102108
</Window>
103109
```
104110

111+
### PseudoClasses
112+
113+
- `:editing` for editing
114+
- `:invalid` for invalid input
115+
116+
e.g.:
117+
118+
<div style="display: flex;">
119+
<div style="flex: 50%; padding: 2px;">
120+
121+
122+
```xml
123+
<Style Selector="vbox|NumericUpDown:editing">
124+
<Style Selector="^ /template/ TextBox#PART_TextBox">
125+
<Setter Property="Foreground" Value="Green" />
126+
</Style>
127+
<Style Selector="^:invalid /template/ TextBox#PART_TextBox">
128+
<Setter Property="Foreground" Value="Red" />
129+
</Style>
130+
</Style>
131+
```
132+
133+
</div>
134+
135+
<div style="flex: 20%; padding: 2px;">
136+
137+
![pseudoclass](assets/pseudoclass.png)
138+
139+
</div>
140+
</div>
141+
142+
105143
### VariableBox.Themes
106144

107145
To make VariableBox controls show up in your application, you need to reference to a theme package designed for VariableBox.

assets/pseudoclass.png

3.1 KB
Loading

src/Package.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
33
<AvaloniaVersion>11.2.1</AvaloniaVersion>
4-
<VariableBoxVersion>0.4.1</VariableBoxVersion>
4+
<VariableBoxVersion>0.5.0</VariableBoxVersion>
55
</PropertyGroup>
66
</Project>

0 commit comments

Comments
 (0)