diff --git a/.run/SC-Single.run.xml b/.run/SC-Single.run.xml
new file mode 100644
index 00000000..1629fa54
--- /dev/null
+++ b/.run/SC-Single.run.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/README.md b/README.md
index 25936c01..21814994 100644
--- a/README.md
+++ b/README.md
@@ -11,7 +11,7 @@ Avalonia Theme inspired by Semi Design
## Installation
```bash
-dotnet add package Semi.Avalonia --version 0.1.0-preview6.1
+dotnet add package Semi.Avalonia --version 0.1.0-preview7
```
Include Semi Design Styles in application:
@@ -25,8 +25,8 @@ That's all.
DataGrid and ColorPicker are distributed in separated packages. Please install if you need.
```bash
-dotnet add package Semi.Avalonia.ColorPicker --version 0.1.0-preview6.1
-dotnet add package Semi.Avalonia.DataGrid --version 0.1.0-preview6.1
+dotnet add package Semi.Avalonia.ColorPicker --version 0.1.0-preview7
+dotnet add package Semi.Avalonia.DataGrid --version 0.1.0-preview7
```
```xaml
@@ -47,6 +47,7 @@ https://github.com/irihitech/Semi.Avalonia/releases
| 0.1.0-preview3 | 11.0-preview4 |
| 0.1.0-preview5.x | 11.0-preview5 |
| 0.1.0-preview6.x | 11.0-preview6 |
+| 0.1.0-preview7.x | 11.0-preview7 |
**NOTE**
diff --git a/demo/Directory.Build.props b/demo/Directory.Build.props
index 6da774b9..0ca13e92 100644
--- a/demo/Directory.Build.props
+++ b/demo/Directory.Build.props
@@ -1,6 +1,6 @@
enable
- 11.0.0-preview4
+ 11.0.0-preview7
diff --git a/demo/Semi.Avalonia.Demo.Android/Semi.Avalonia.Demo.Android.csproj b/demo/Semi.Avalonia.Demo.Android/Semi.Avalonia.Demo.Android.csproj
index bbbd0b64..47a42696 100644
--- a/demo/Semi.Avalonia.Demo.Android/Semi.Avalonia.Demo.Android.csproj
+++ b/demo/Semi.Avalonia.Demo.Android/Semi.Avalonia.Demo.Android.csproj
@@ -12,8 +12,10 @@
Semi.Avalonia.Demo.Android
+
+
-
+
diff --git a/demo/Semi.Avalonia.Demo.Desktop/Semi.Avalonia.Demo.Desktop.csproj b/demo/Semi.Avalonia.Demo.Desktop/Semi.Avalonia.Demo.Desktop.csproj
index f560c733..4e0ff0e2 100644
--- a/demo/Semi.Avalonia.Demo.Desktop/Semi.Avalonia.Demo.Desktop.csproj
+++ b/demo/Semi.Avalonia.Demo.Desktop/Semi.Avalonia.Demo.Desktop.csproj
@@ -16,13 +16,13 @@
-
+
-
+
-
+
diff --git a/demo/Semi.Avalonia.Demo.Web/Semi.Avalonia.Demo.Web.csproj b/demo/Semi.Avalonia.Demo.Web/Semi.Avalonia.Demo.Web.csproj
index 14757acc..9db7e5be 100644
--- a/demo/Semi.Avalonia.Demo.Web/Semi.Avalonia.Demo.Web.csproj
+++ b/demo/Semi.Avalonia.Demo.Web/Semi.Avalonia.Demo.Web.csproj
@@ -19,8 +19,8 @@
-
-
+
+
diff --git a/demo/Semi.Avalonia.Demo/Controls/ColorDetailControl.cs b/demo/Semi.Avalonia.Demo/Controls/ColorDetailControl.cs
index f551b0a1..c9a01762 100644
--- a/demo/Semi.Avalonia.Demo/Controls/ColorDetailControl.cs
+++ b/demo/Semi.Avalonia.Demo/Controls/ColorDetailControl.cs
@@ -1,5 +1,6 @@
using System.Globalization;
using Avalonia;
+using Avalonia.Controls;
using Avalonia.Controls.Primitives;
using Avalonia.Input.Platform;
using Avalonia.Media;
@@ -95,11 +96,12 @@ public async void Copy(object o)
}
}
- if (Application.Current is { Clipboard: { } c })
+ var toplevel = TopLevel.GetTopLevel(this);
+ if (toplevel?.Clipboard is { } c)
{
await c.SetTextAsync(text??string.Empty);
}
-
+
}
}
\ No newline at end of file
diff --git a/demo/Semi.Avalonia.Demo/Controls/FunctionalColorGroupControl.axaml b/demo/Semi.Avalonia.Demo/Controls/FunctionalColorGroupControl.axaml
index 5247b209..8d53394e 100644
--- a/demo/Semi.Avalonia.Demo/Controls/FunctionalColorGroupControl.axaml
+++ b/demo/Semi.Avalonia.Demo/Controls/FunctionalColorGroupControl.axaml
@@ -19,7 +19,7 @@
Theme="{DynamicResource TitleTextBlock}" />
-
+
@@ -77,7 +77,7 @@
-
+
diff --git a/demo/Semi.Avalonia.Demo/Pages/AutoCompleteBoxDemo.axaml b/demo/Semi.Avalonia.Demo/Pages/AutoCompleteBoxDemo.axaml
index e24df128..38f3e876 100644
--- a/demo/Semi.Avalonia.Demo/Pages/AutoCompleteBoxDemo.axaml
+++ b/demo/Semi.Avalonia.Demo/Pages/AutoCompleteBoxDemo.axaml
@@ -20,7 +20,7 @@
@@ -31,7 +31,7 @@
@@ -41,7 +41,7 @@
@@ -51,7 +51,7 @@
@@ -61,7 +61,7 @@
diff --git a/demo/Semi.Avalonia.Demo/Pages/DataGridDemo.axaml b/demo/Semi.Avalonia.Demo/Pages/DataGridDemo.axaml
index ca3b82bc..44729f34 100644
--- a/demo/Semi.Avalonia.Demo/Pages/DataGridDemo.axaml
+++ b/demo/Semi.Avalonia.Demo/Pages/DataGridDemo.axaml
@@ -143,7 +143,7 @@
Name="dataGridEdit"
Grid.Row="1"
Margin="12"
- Items="{Binding DataGrid3Source}">
+ ItemsSource="{Binding DataGrid3Source}">
("dataGridGrouping");
dg2.IsReadOnly = true;
@@ -46,7 +46,7 @@ public DataGridDemo()
var collectionView2 = new DataGridCollectionView(Countries.All);
collectionView2.GroupDescriptions.Add(new DataGridPathGroupDescription("Region"));
- dg2.Items = collectionView2;
+ dg2.ItemsSource = collectionView2;
var dg3 = this.Get("dataGridEdit");
dg3.IsReadOnly = false;
diff --git a/demo/Semi.Avalonia.Demo/Pages/ExpanderDemo.axaml b/demo/Semi.Avalonia.Demo/Pages/ExpanderDemo.axaml
index 4b6f0d0b..2de225a0 100644
--- a/demo/Semi.Avalonia.Demo/Pages/ExpanderDemo.axaml
+++ b/demo/Semi.Avalonia.Demo/Pages/ExpanderDemo.axaml
@@ -19,7 +19,7 @@
-
+
+ ColumnDefinitions="*, *, *, *, *"
+ RowDefinitions="*, *, *, *, *">