Skip to content

Commit baaf749

Browse files
authored
Merge pull request #930 from lepoco/development
Release 3.0.0
2 parents 7fcc2d8 + fef4028 commit baaf749

File tree

235 files changed

+3200
-1447
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

235 files changed

+3200
-1447
lines changed

.github/workflows/wpf-ui-cd-docs.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ jobs:
5656
run: docfx docs/docfx.json
5757

5858
- name: Upload artifact
59-
uses: actions/upload-pages-artifact@v2
59+
uses: actions/upload-pages-artifact@v3
6060
with:
6161
path: docs/_site/
6262

6363
- name: Deploy to GitHub Pages
6464
id: deployment
65-
uses: actions/deploy-pages@v3
65+
uses: actions/deploy-pages@v4

.github/workflows/wpf-ui-cd-extension.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: microsoft/[email protected]
1515
with:
1616
msbuild-architecture: x64
17-
- uses: nuget/setup-nuget@v1
17+
- uses: nuget/setup-nuget@v2
1818
with:
1919
nuget-api-key: ${{ secrets.NUGET_API_KEY }}
2020

@@ -24,7 +24,7 @@ jobs:
2424
- name: Build the solution
2525
run: msbuild src\Wpf.Ui.Extension\Wpf.Ui.Extension.csproj /t:Rebuild -p:Configuration=Release -p:RestorePackages=false -p:Platform="x64" -p:GITHUB_ACTIONS=True
2626

27-
- uses: actions/upload-artifact@v3
27+
- uses: actions/upload-artifact@v4
2828
with:
2929
name: wpf-ui-vs22-extension
3030
path: src\Wpf.Ui.Extension\bin\x64\Release\Wpf.Ui.Extension.vsix

.github/workflows/wpf-ui-cd-nuget.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: microsoft/[email protected]
1515
with:
1616
msbuild-architecture: x64
17-
- uses: nuget/setup-nuget@v1
17+
- uses: nuget/setup-nuget@v2
1818
with:
1919
nuget-api-key: ${{ secrets.NUGET_API_KEY }}
2020
- name: Setup .NET Core SDK 8.x

.github/workflows/wpf-ui-pr-validator.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- uses: microsoft/[email protected]
1717
with:
1818
msbuild-architecture: x64
19-
- uses: nuget/setup-nuget@v1
19+
- uses: nuget/setup-nuget@v2
2020
with:
2121
nuget-api-key: ${{ secrets.NUGET_API_KEY }}
2222
- name: Setup .NET Core SDK 8.x

Directory.Build.props

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project>
33
<PropertyGroup>
4-
<Version>3.0.0-preview.13</Version>
4+
<Version>3.0.0</Version>
55
<LangVersion>12.0</LangVersion>
66
<Deterministic>true</Deterministic>
77
</PropertyGroup>
@@ -16,7 +16,7 @@
1616
<PropertyGroup>
1717
<Authors>lepo.co</Authors>
1818
<Company>lepo.co</Company>
19-
<Copyright>Copyright (C) 2021-2023 Leszek Pomianowski and WPF UI Contributors</Copyright>
19+
<Copyright>Copyright (C) 2021-2024 Leszek Pomianowski and WPF UI Contributors</Copyright>
2020
</PropertyGroup>
2121

2222
<PropertyGroup>

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,19 @@ First, your application needs to load custom styles, add in the **MyApp\App.xaml
111111
</Application>
112112
```
113113

114+
If your application does not have **MyApp\App.xaml** file, use `ApplicationThemeManager.Apply(frameworkElement)` to apply/update the theme resource in the `frameworkElement`.
115+
116+
```C#
117+
public partial class MainWindow
118+
{
119+
public MainWindow()
120+
{
121+
InitializeComponent();
122+
ApplicationThemeManager.Apply(this);
123+
}
124+
}
125+
```
126+
114127
Now you can create fantastic apps, e.g. with one button:
115128

116129
```xml

Wpf.Ui.sln

+23-3
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Wpf.Ui.ToastNotifications",
4444
EndProject
4545
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Wpf.Ui.Tray", "src\Wpf.Ui.Tray\Wpf.Ui.Tray.csproj", "{073BF126-377B-49CD-838A-E8B779EB4862}"
4646
EndProject
47-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Wpf.Ui.SyntaxHighlight", "src\Wpf.Ui.SyntaxHighlight\Wpf.Ui.SyntaxHighlight.csproj", "{07F7A65A-6061-4606-ACA2-F8D1A3D0E19A}"
47+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Wpf.Ui.SyntaxHighlight", "src\Wpf.Ui.SyntaxHighlight\Wpf.Ui.SyntaxHighlight.csproj", "{07F7A65A-6061-4606-ACA2-F8D1A3D0E19A}"
48+
EndProject
49+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Wpf.Ui.Demo.Console", "src\Wpf.Ui.Demo.Console\Wpf.Ui.Demo.Console.csproj", "{1FB6D1C2-B2E7-48F5-B5BA-9F0CA4F1B826}"
4850
EndProject
4951
Global
5052
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -72,8 +74,8 @@ Global
7274
{E55BFB14-9DA6-434A-8153-BFE124D71818}.Release|arm64.Build.0 = Release|Any CPU
7375
{E55BFB14-9DA6-434A-8153-BFE124D71818}.Release|x64.ActiveCfg = Release|x64
7476
{E55BFB14-9DA6-434A-8153-BFE124D71818}.Release|x64.Build.0 = Release|x64
75-
{E55BFB14-9DA6-434A-8153-BFE124D71818}.Release|x86.ActiveCfg = Release|Any CPU
76-
{E55BFB14-9DA6-434A-8153-BFE124D71818}.Release|x86.Build.0 = Release|Any CPU
77+
{E55BFB14-9DA6-434A-8153-BFE124D71818}.Release|x86.ActiveCfg = Release|x86
78+
{E55BFB14-9DA6-434A-8153-BFE124D71818}.Release|x86.Build.0 = Release|x86
7779
{1ADC87D1-8963-4100-845A-18477824718E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
7880
{1ADC87D1-8963-4100-845A-18477824718E}.Debug|Any CPU.Build.0 = Debug|Any CPU
7981
{1ADC87D1-8963-4100-845A-18477824718E}.Debug|arm64.ActiveCfg = Debug|Any CPU
@@ -151,6 +153,8 @@ Global
151153
{50C713C3-555E-491F-87EE-C806BEC0579F}.Release|arm64.Build.0 = Release|ARM64
152154
{50C713C3-555E-491F-87EE-C806BEC0579F}.Release|arm64.Deploy.0 = Release|ARM64
153155
{50C713C3-555E-491F-87EE-C806BEC0579F}.Release|x64.ActiveCfg = Release|x64
156+
{50C713C3-555E-491F-87EE-C806BEC0579F}.Release|x64.Build.0 = Release|x64
157+
{50C713C3-555E-491F-87EE-C806BEC0579F}.Release|x64.Deploy.0 = Release|x64
154158
{50C713C3-555E-491F-87EE-C806BEC0579F}.Release|x86.ActiveCfg = Release|x86
155159
{50C713C3-555E-491F-87EE-C806BEC0579F}.Release|x86.Build.0 = Release|x86
156160
{50C713C3-555E-491F-87EE-C806BEC0579F}.Release|x86.Deploy.0 = Release|x86
@@ -298,6 +302,22 @@ Global
298302
{07F7A65A-6061-4606-ACA2-F8D1A3D0E19A}.Release|x64.Build.0 = Release|Any CPU
299303
{07F7A65A-6061-4606-ACA2-F8D1A3D0E19A}.Release|x86.ActiveCfg = Release|Any CPU
300304
{07F7A65A-6061-4606-ACA2-F8D1A3D0E19A}.Release|x86.Build.0 = Release|Any CPU
305+
{1FB6D1C2-B2E7-48F5-B5BA-9F0CA4F1B826}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
306+
{1FB6D1C2-B2E7-48F5-B5BA-9F0CA4F1B826}.Debug|Any CPU.Build.0 = Debug|Any CPU
307+
{1FB6D1C2-B2E7-48F5-B5BA-9F0CA4F1B826}.Debug|arm64.ActiveCfg = Debug|Any CPU
308+
{1FB6D1C2-B2E7-48F5-B5BA-9F0CA4F1B826}.Debug|arm64.Build.0 = Debug|Any CPU
309+
{1FB6D1C2-B2E7-48F5-B5BA-9F0CA4F1B826}.Debug|x64.ActiveCfg = Debug|Any CPU
310+
{1FB6D1C2-B2E7-48F5-B5BA-9F0CA4F1B826}.Debug|x64.Build.0 = Debug|Any CPU
311+
{1FB6D1C2-B2E7-48F5-B5BA-9F0CA4F1B826}.Debug|x86.ActiveCfg = Debug|Any CPU
312+
{1FB6D1C2-B2E7-48F5-B5BA-9F0CA4F1B826}.Debug|x86.Build.0 = Debug|Any CPU
313+
{1FB6D1C2-B2E7-48F5-B5BA-9F0CA4F1B826}.Release|Any CPU.ActiveCfg = Release|Any CPU
314+
{1FB6D1C2-B2E7-48F5-B5BA-9F0CA4F1B826}.Release|Any CPU.Build.0 = Release|Any CPU
315+
{1FB6D1C2-B2E7-48F5-B5BA-9F0CA4F1B826}.Release|arm64.ActiveCfg = Release|Any CPU
316+
{1FB6D1C2-B2E7-48F5-B5BA-9F0CA4F1B826}.Release|arm64.Build.0 = Release|Any CPU
317+
{1FB6D1C2-B2E7-48F5-B5BA-9F0CA4F1B826}.Release|x64.ActiveCfg = Release|Any CPU
318+
{1FB6D1C2-B2E7-48F5-B5BA-9F0CA4F1B826}.Release|x64.Build.0 = Release|Any CPU
319+
{1FB6D1C2-B2E7-48F5-B5BA-9F0CA4F1B826}.Release|x86.ActiveCfg = Release|Any CPU
320+
{1FB6D1C2-B2E7-48F5-B5BA-9F0CA4F1B826}.Release|x86.Build.0 = Release|Any CPU
301321
EndGlobalSection
302322
GlobalSection(SolutionProperties) = preSolution
303323
HideSolutionNode = FALSE

build.cmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
@echo off
2-
powershell -ExecutionPolicy ByPass -NoProfile -command "& """%~dp0scripts\build_demo.ps1""""
2+
powershell -ExecutionPolicy ByPass -NoProfile -command "& """%~dp0build.ps1""""
33
@REM powershell -ExecutionPolicy ByPass -NoProfile -command "& """%~dp0scripts\build_extension.ps1""""
4-
exit /b %ErrorLevel%
4+
exit /b %ErrorLevel%

build.ps1

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
$wingetVersion = & winget --version 2>$null
2+
3+
if ($wingetVersion -eq $null) {
4+
Write-Output "winget is not installed. Starting installation..."
5+
6+
Invoke-WebRequest -Uri "https://github.com/microsoft/winget-cli/releases/download/v1.6.3482/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle" -OutFile "$env:TEMP\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle"
7+
8+
Add-AppxPackage -Path "$env:TEMP\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle"
9+
10+
Write-Output "winget has been installed."
11+
}
12+
13+
$dotnetVersion = & dotnet --version 2>$null
14+
15+
if ($dotnetVersion -eq $null) {
16+
Write-Output ".NET SDK is not installed."
17+
18+
winget install Microsoft.DotNet.SDK.8
19+
} else {
20+
$majorVersion = $dotnetVersion.Split('.')[0]
21+
22+
if ($majorVersion -ge 8) {
23+
Write-Output ".NET SDK version is $dotnetVersion, which is 8.0.0 or newer."
24+
} else {
25+
Write-Output ".NET SDK version is $dotnetVersion, which is older than 8.0.0."
26+
27+
winget install Microsoft.DotNet.SDK.8
28+
}
29+
}
30+
31+
if ($env:PROCESSOR_ARCHITECTURE -eq "AMD64") {
32+
dotnet restore Wpf.Ui.sln /tl
33+
dotnet build src\Wpf.Ui.Gallery\Wpf.Ui.Gallery.csproj --configuration Release --no-restore --verbosity quiet /tl
34+
} else {
35+
Write-Host "Not in the x64 desktop environment."
36+
}

docs/documentation/extension.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ https://marketplace.visualstudio.com/items?itemName=lepo.wpf-ui
3535

3636
After creating a project, you can familiarize yourself with its structure and proceed to further steps.
3737

38-
- [WPF UI - Getting started](/tutorial/getting-started.html)
38+
- [WPF UI - Getting started](/documentation/getting-started)
3939
- [Introduction to the MVVM Toolkit](https://learn.microsoft.com/en-us/windows/communitytoolkit/mvvm/introduction)
4040
- [.NET Generic Host in ASP.NET Core](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/host/generic-host?view=aspnetcore-6.0)

etc/build_demo.ps1

-1
This file was deleted.

etc/build_extension.ps1

-1
This file was deleted.

etc/build_library.ps1

-1
This file was deleted.

etc/dotnet_build.ps1

-127
This file was deleted.

0 commit comments

Comments
 (0)