Skip to content

Commit 376cf30

Browse files
authored
test: Create new integraiton tests with FlaUI UIA3 and XUnit v3; format XAML (lepoco#1559)
1 parent d92eed3 commit 376cf30

File tree

249 files changed

+29482
-25458
lines changed

Some content is hidden

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

249 files changed

+29482
-25458
lines changed

.editorconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,8 @@ dotnet_diagnostic.CA2242.severity = warning
348348
# Require file header OR A source file contains a header that does not match the required text
349349
dotnet_diagnostic.IDE0073.severity = error
350350

351+
dotnet_diagnostic.IDE0058.severity = silent
352+
351353
# StyleCop Code Analysis
352354

353355
# Closing parenthesis should be spaced correctly: "foo()!"

Directory.Packages.props

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
<Project>
22
<ItemGroup>
3+
<PackageVersion Include="AwesomeAssertions" Version="9.3.0" />
34
<PackageVersion Include="CommunityToolkit.Mvvm" Version="8.4.0" />
45
<PackageVersion Include="coverlet.collector" Version="6.0.4" />
6+
<PackageVersion Include="FlaUI.UIA3" Version="5.0.0" />
57
<PackageVersion Include="Lepo.i18n" Version="2.0.0" />
68
<PackageVersion Include="Lepo.i18n.DependencyInjection" Version="2.0.0" />
79
<PackageVersion Include="Lepo.i18n.Wpf" Version="2.0.0" />
810
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="4.12.0" />
911
<PackageVersion Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.1" />
1012
<PackageVersion Include="Microsoft.Extensions.Hosting" Version="9.0.1" />
11-
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
13+
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.0.0" />
1214
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />
1315
<PackageVersion Include="Microsoft.VisualStudio.CoreUtility" Version="17.2.3194" />
1416
<PackageVersion Include="Microsoft.VisualStudio.SDK" Version="17.12.4039" ExcludeAssets="runtime" />
@@ -24,7 +26,8 @@
2426
<PackageVersion Include="System.Drawing.Common" Version="9.0.1" />
2527
<PackageVersion Include="System.ValueTuple" Version="4.5.0" />
2628
<PackageVersion Include="WpfAnalyzers" Version="4.1.1" />
27-
<PackageVersion Include="xunit.runner.visualstudio" Version="3.0.1" />
29+
<PackageVersion Include="xunit.runner.visualstudio" Version="3.1.5" />
2830
<PackageVersion Include="xunit" Version="2.9.3" />
31+
<PackageVersion Include="xunit.v3" Version="3.2.0" />
2932
</ItemGroup>
3033
</Project>

README.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# WPF UI
55

6-
[Created with ❤ in Poland by lepo.co](https://lepo.co/) and [wonderful open-source community](https://github.com/lepoco/wpfui/graphs/contributors)
6+
[Created with ❤ in Poland by Leszek Pomianowski](https://lepo.co/) and [wonderful open-source community](https://github.com/lepoco/wpfui/graphs/contributors).
77
WPF UI provides the Fluent experience in your known and loved WPF framework. Intuitive design, themes, navigation and new immersive controls. All natively and effortlessly. Library changes the base elements like `Page`, `ToggleButton` or `List`, and also includes additional controls like `Navigation`, `NumberBox`, `Dialog` or `Snackbar`.
88

99
[![Discord](https://img.shields.io/discord/1071051348348514375?label=discord)](https://discord.gg/AR9ywDUwGq) [![GitHub license](https://img.shields.io/github/license/lepoco/wpfui)](https://github.com/lepoco/wpfui/blob/master/LICENSE) [![Nuget](https://img.shields.io/nuget/v/WPF-UI)](https://www.nuget.org/packages/WPF-UI/) [![Nuget](https://img.shields.io/nuget/dt/WPF-UI?label=nuget)](https://www.nuget.org/packages/WPF-UI/)
@@ -85,7 +85,7 @@ First, your application needs to load custom styles, add in the **MyApp\App.xaml
8585
<Application.Resources>
8686
<ResourceDictionary>
8787
<ResourceDictionary.MergedDictionaries>
88-
<ui:ThemesDictionary Theme="Dark" />
88+
<ui:ThemesDictionary Theme="Light" />
8989
<ui:ControlsDictionary />
9090
</ResourceDictionary.MergedDictionaries>
9191
</ResourceDictionary>
@@ -121,18 +121,6 @@ Now you can create fantastic apps, e.g. with one button:
121121
</ui:FluentWindow>
122122
```
123123

124-
## Special thanks
125-
126-
Crafting apps for .NET without the creators of tools like ReSharper or XAML Styler would never be such a fantastic adventure.
127-
128-
- [🔗 JetBrains ReSharper](https://www.jetbrains.com/resharper/)
129-
- [🔗 XAML Styler](https://github.com/Xavalon/XamlStyler)
130-
131-
JetBrains was kind enough to lend a license for the open-source **dotUltimate** for WPF UI development. Learn more here:
132-
133-
- https://www.jetbrains.com/dotnet/
134-
- https://www.jetbrains.com/opensource/
135-
136124
## Microsoft Property
137125

138126
Design of the interface, choice of colors and the appearance of the controls were inspired by projects made by Microsoft for Windows 11.

Wpf.Ui.sln

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{35AC6218
3131
EndProject
3232
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Wpf.Ui.Extension", "src\Wpf.Ui.Extension\Wpf.Ui.Extension.csproj", "{1298D974-9D81-4A93-9374-EA6A0E723DEB}"
3333
EndProject
34-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Wpf.Ui.Gallery.UnitTests", "tests\Wpf.Ui.Gallery.UnitTests\Wpf.Ui.Gallery.UnitTests.csproj", "{4059EB00-22B3-4EF9-A509-469CE8B0096D}"
35-
EndProject
3634
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Wpf.Ui.Extension.Template.Compact", "src\Wpf.Ui.Extension.Template.Compact\Wpf.Ui.Extension.Template.Compact.csproj", "{14D7431C-6CFF-4191-BB88-2B8D5F323A30}"
3735
EndProject
3836
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Wpf.Ui.Extension.Template.Blank", "src\Wpf.Ui.Extension.Template.Blank\Wpf.Ui.Extension.Template.Blank.csproj", "{AB3D44B5-9491-487E-A134-9AC5BED2B981}"
@@ -61,6 +59,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Wpf.Ui.DependencyInjection"
6159
EndProject
6260
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Wpf.Ui.Demo.SetResources.Simple", "samples\Wpf.Ui.Demo.SetResources.Simple\Wpf.Ui.Demo.SetResources.Simple.csproj", "{3B424CF4-09F8-47D3-8420-53D7A1165B9C}"
6361
EndProject
62+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Wpf.Ui.Gallery.IntegrationTests", "tests\Wpf.Ui.Gallery.IntegrationTests\Wpf.Ui.Gallery.IntegrationTests.csproj", "{A396F1D6-55CF-493E-B541-A50B8F29395A}"
63+
EndProject
6464
Global
6565
GlobalSection(SolutionConfigurationPlatforms) = preSolution
6666
Debug|Any CPU = Debug|Any CPU
@@ -162,22 +162,6 @@ Global
162162
{1298D974-9D81-4A93-9374-EA6A0E723DEB}.Release|x64.ActiveCfg = Release|x64
163163
{1298D974-9D81-4A93-9374-EA6A0E723DEB}.Release|x64.Build.0 = Release|x64
164164
{1298D974-9D81-4A93-9374-EA6A0E723DEB}.Release|x86.ActiveCfg = Release|x86
165-
{4059EB00-22B3-4EF9-A509-469CE8B0096D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
166-
{4059EB00-22B3-4EF9-A509-469CE8B0096D}.Debug|Any CPU.Build.0 = Debug|Any CPU
167-
{4059EB00-22B3-4EF9-A509-469CE8B0096D}.Debug|arm64.ActiveCfg = Debug|Any CPU
168-
{4059EB00-22B3-4EF9-A509-469CE8B0096D}.Debug|arm64.Build.0 = Debug|Any CPU
169-
{4059EB00-22B3-4EF9-A509-469CE8B0096D}.Debug|x64.ActiveCfg = Debug|Any CPU
170-
{4059EB00-22B3-4EF9-A509-469CE8B0096D}.Debug|x64.Build.0 = Debug|Any CPU
171-
{4059EB00-22B3-4EF9-A509-469CE8B0096D}.Debug|x86.ActiveCfg = Debug|Any CPU
172-
{4059EB00-22B3-4EF9-A509-469CE8B0096D}.Debug|x86.Build.0 = Debug|Any CPU
173-
{4059EB00-22B3-4EF9-A509-469CE8B0096D}.Release|Any CPU.ActiveCfg = Release|Any CPU
174-
{4059EB00-22B3-4EF9-A509-469CE8B0096D}.Release|Any CPU.Build.0 = Release|Any CPU
175-
{4059EB00-22B3-4EF9-A509-469CE8B0096D}.Release|arm64.ActiveCfg = Release|Any CPU
176-
{4059EB00-22B3-4EF9-A509-469CE8B0096D}.Release|arm64.Build.0 = Release|Any CPU
177-
{4059EB00-22B3-4EF9-A509-469CE8B0096D}.Release|x64.ActiveCfg = Release|Any CPU
178-
{4059EB00-22B3-4EF9-A509-469CE8B0096D}.Release|x64.Build.0 = Release|Any CPU
179-
{4059EB00-22B3-4EF9-A509-469CE8B0096D}.Release|x86.ActiveCfg = Release|Any CPU
180-
{4059EB00-22B3-4EF9-A509-469CE8B0096D}.Release|x86.Build.0 = Release|Any CPU
181165
{14D7431C-6CFF-4191-BB88-2B8D5F323A30}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
182166
{14D7431C-6CFF-4191-BB88-2B8D5F323A30}.Debug|arm64.ActiveCfg = Debug|arm64
183167
{14D7431C-6CFF-4191-BB88-2B8D5F323A30}.Debug|x64.ActiveCfg = Debug|x64
@@ -371,18 +355,34 @@ Global
371355
{3B424CF4-09F8-47D3-8420-53D7A1165B9C}.Release|x64.Build.0 = Release|Any CPU
372356
{3B424CF4-09F8-47D3-8420-53D7A1165B9C}.Release|x86.ActiveCfg = Release|Any CPU
373357
{3B424CF4-09F8-47D3-8420-53D7A1165B9C}.Release|x86.Build.0 = Release|Any CPU
358+
{A396F1D6-55CF-493E-B541-A50B8F29395A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
359+
{A396F1D6-55CF-493E-B541-A50B8F29395A}.Debug|Any CPU.Build.0 = Debug|Any CPU
360+
{A396F1D6-55CF-493E-B541-A50B8F29395A}.Debug|arm64.ActiveCfg = Debug|Any CPU
361+
{A396F1D6-55CF-493E-B541-A50B8F29395A}.Debug|arm64.Build.0 = Debug|Any CPU
362+
{A396F1D6-55CF-493E-B541-A50B8F29395A}.Debug|x64.ActiveCfg = Debug|Any CPU
363+
{A396F1D6-55CF-493E-B541-A50B8F29395A}.Debug|x64.Build.0 = Debug|Any CPU
364+
{A396F1D6-55CF-493E-B541-A50B8F29395A}.Debug|x86.ActiveCfg = Debug|Any CPU
365+
{A396F1D6-55CF-493E-B541-A50B8F29395A}.Debug|x86.Build.0 = Debug|Any CPU
366+
{A396F1D6-55CF-493E-B541-A50B8F29395A}.Release|Any CPU.ActiveCfg = Release|Any CPU
367+
{A396F1D6-55CF-493E-B541-A50B8F29395A}.Release|Any CPU.Build.0 = Release|Any CPU
368+
{A396F1D6-55CF-493E-B541-A50B8F29395A}.Release|arm64.ActiveCfg = Release|Any CPU
369+
{A396F1D6-55CF-493E-B541-A50B8F29395A}.Release|arm64.Build.0 = Release|Any CPU
370+
{A396F1D6-55CF-493E-B541-A50B8F29395A}.Release|x64.ActiveCfg = Release|Any CPU
371+
{A396F1D6-55CF-493E-B541-A50B8F29395A}.Release|x64.Build.0 = Release|Any CPU
372+
{A396F1D6-55CF-493E-B541-A50B8F29395A}.Release|x86.ActiveCfg = Release|Any CPU
373+
{A396F1D6-55CF-493E-B541-A50B8F29395A}.Release|x86.Build.0 = Release|Any CPU
374374
EndGlobalSection
375375
GlobalSection(SolutionProperties) = preSolution
376376
HideSolutionNode = FALSE
377377
EndGlobalSection
378378
GlobalSection(NestedProjects) = preSolution
379379
{AE87BE68-DFDC-46D8-BC55-DC9D1DD47F4C} = {35AC6218-CBEA-4FDA-8CE1-D1EBD6FD8D4A}
380-
{4059EB00-22B3-4EF9-A509-469CE8B0096D} = {35AC6218-CBEA-4FDA-8CE1-D1EBD6FD8D4A}
381380
{6F1F6A8D-A530-4C4F-9360-219AC3B43FAA} = {D7EA6A65-3CB5-4A59-934A-B8402C849107}
382381
{5138077E-670E-413D-94D1-0825B6D1201B} = {D7EA6A65-3CB5-4A59-934A-B8402C849107}
383382
{E37CD05A-EBFC-429D-A550-BEE44119FA9E} = {D7EA6A65-3CB5-4A59-934A-B8402C849107}
384383
{7F6C7E7A-A4B5-4D12-88EB-217CA59284F4} = {D7EA6A65-3CB5-4A59-934A-B8402C849107}
385384
{3B424CF4-09F8-47D3-8420-53D7A1165B9C} = {D7EA6A65-3CB5-4A59-934A-B8402C849107}
385+
{A396F1D6-55CF-493E-B541-A50B8F29395A} = {35AC6218-CBEA-4FDA-8CE1-D1EBD6FD8D4A}
386386
EndGlobalSection
387387
GlobalSection(ExtensibilityGlobals) = postSolution
388388
SolutionGuid = {234CB3F9-5ADC-433F-BDBD-CB8EA59EB518}
Lines changed: 76 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,78 @@
11
<ui:FluentWindow
2-
x:Class="Wpf.Ui.Demo.Console.Views.MainView"
3-
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4-
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5-
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
6-
xmlns:local="clr-namespace:Wpf.Ui.Demo.Console.Views"
7-
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
8-
xmlns:pages="clr-namespace:Wpf.Ui.Demo.Console.Views.Pages"
9-
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
10-
Title="WPF UI - Console Demo"
11-
Width="1200"
12-
Height="654"
13-
d:DesignHeight="650"
14-
d:DesignWidth="900"
15-
ExtendsContentIntoTitleBar="True"
16-
WindowStartupLocation="CenterScreen"
17-
mc:Ignorable="d">
18-
19-
<ui:FluentWindow.InputBindings>
20-
<KeyBinding
21-
Key="F"
22-
Command="{Binding ElementName=AutoSuggestBox, Path=FocusCommand}"
23-
Modifiers="Control" />
24-
</ui:FluentWindow.InputBindings>
25-
26-
<Grid>
27-
<Grid.RowDefinitions>
28-
<RowDefinition Height="Auto" />
29-
<RowDefinition Height="*" />
30-
</Grid.RowDefinitions>
31-
<ui:NavigationView x:Name="RootNavigation" Grid.Row="1">
32-
<ui:NavigationView.AutoSuggestBox>
33-
<ui:AutoSuggestBox x:Name="AutoSuggestBox" PlaceholderText="Search">
34-
<ui:AutoSuggestBox.Icon>
35-
<ui:IconSourceElement>
36-
<ui:SymbolIconSource Symbol="Search24" />
37-
</ui:IconSourceElement>
38-
</ui:AutoSuggestBox.Icon>
39-
</ui:AutoSuggestBox>
40-
</ui:NavigationView.AutoSuggestBox>
41-
<ui:NavigationView.Header>
42-
<ui:BreadcrumbBar
43-
Margin="42,32,0,0"
44-
FontSize="28"
45-
FontWeight="DemiBold" />
46-
</ui:NavigationView.Header>
47-
<ui:NavigationView.MenuItems>
48-
<ui:NavigationViewItem
49-
Content="Dashboard"
50-
NavigationCacheMode="Enabled"
51-
TargetPageType="{x:Type pages:DashboardPage}">
52-
<ui:NavigationViewItem.Icon>
53-
<ui:SymbolIcon Symbol="Home24" />
54-
</ui:NavigationViewItem.Icon>
55-
</ui:NavigationViewItem>
56-
<ui:NavigationViewItem
57-
Content="Data"
58-
NavigationCacheMode="Enabled"
59-
TargetPageType="{x:Type pages:DataPage}">
60-
<ui:NavigationViewItem.Icon>
61-
<ui:SymbolIcon Symbol="DataHistogram24" />
62-
</ui:NavigationViewItem.Icon>
63-
</ui:NavigationViewItem>
64-
</ui:NavigationView.MenuItems>
65-
<ui:NavigationView.FooterMenuItems>
66-
<ui:NavigationViewItem
67-
Content="Settings"
68-
NavigationCacheMode="Enabled"
69-
TargetPageType="{x:Type pages:SettingsPage}">
70-
<ui:NavigationViewItem.Icon>
71-
<ui:SymbolIcon Symbol="Settings24" />
72-
</ui:NavigationViewItem.Icon>
73-
</ui:NavigationViewItem>
74-
</ui:NavigationView.FooterMenuItems>
75-
</ui:NavigationView>
76-
77-
<ui:TitleBar Title="WPF UI - Console Demo" Grid.Row="0" />
78-
</Grid>
2+
x:Class="Wpf.Ui.Demo.Console.Views.MainView"
3+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5+
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
6+
xmlns:local="clr-namespace:Wpf.Ui.Demo.Console.Views"
7+
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
8+
xmlns:pages="clr-namespace:Wpf.Ui.Demo.Console.Views.Pages"
9+
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
10+
Title="WPF UI - Console Demo"
11+
Width="1200"
12+
Height="654"
13+
d:DesignHeight="650"
14+
d:DesignWidth="900"
15+
ExtendsContentIntoTitleBar="True"
16+
WindowStartupLocation="CenterScreen"
17+
mc:Ignorable="d"
18+
>
19+
<ui:FluentWindow.InputBindings>
20+
<KeyBinding
21+
Key="F"
22+
Command="{Binding ElementName=AutoSuggestBox, Path=FocusCommand}"
23+
Modifiers="Control"
24+
/>
25+
</ui:FluentWindow.InputBindings>
26+
<Grid>
27+
<Grid.RowDefinitions>
28+
<RowDefinition Height="Auto" />
29+
<RowDefinition Height="*" />
30+
</Grid.RowDefinitions>
31+
<ui:NavigationView x:Name="RootNavigation" Grid.Row="1">
32+
<ui:NavigationView.AutoSuggestBox>
33+
<ui:AutoSuggestBox x:Name="AutoSuggestBox" PlaceholderText="Search">
34+
<ui:AutoSuggestBox.Icon>
35+
<ui:IconSourceElement>
36+
<ui:SymbolIconSource Symbol="Search24" />
37+
</ui:IconSourceElement>
38+
</ui:AutoSuggestBox.Icon>
39+
</ui:AutoSuggestBox>
40+
</ui:NavigationView.AutoSuggestBox>
41+
<ui:NavigationView.Header>
42+
<ui:BreadcrumbBar Margin="42,32,0,0" FontSize="28" FontWeight="DemiBold" />
43+
</ui:NavigationView.Header>
44+
<ui:NavigationView.MenuItems>
45+
<ui:NavigationViewItem
46+
Content="Dashboard"
47+
NavigationCacheMode="Enabled"
48+
TargetPageType="{x:Type pages:DashboardPage}"
49+
>
50+
<ui:NavigationViewItem.Icon>
51+
<ui:SymbolIcon Symbol="Home24" />
52+
</ui:NavigationViewItem.Icon>
53+
</ui:NavigationViewItem>
54+
<ui:NavigationViewItem
55+
Content="Data"
56+
NavigationCacheMode="Enabled"
57+
TargetPageType="{x:Type pages:DataPage}"
58+
>
59+
<ui:NavigationViewItem.Icon>
60+
<ui:SymbolIcon Symbol="DataHistogram24" />
61+
</ui:NavigationViewItem.Icon>
62+
</ui:NavigationViewItem>
63+
</ui:NavigationView.MenuItems>
64+
<ui:NavigationView.FooterMenuItems>
65+
<ui:NavigationViewItem
66+
Content="Settings"
67+
NavigationCacheMode="Enabled"
68+
TargetPageType="{x:Type pages:SettingsPage}"
69+
>
70+
<ui:NavigationViewItem.Icon>
71+
<ui:SymbolIcon Symbol="Settings24" />
72+
</ui:NavigationViewItem.Icon>
73+
</ui:NavigationViewItem>
74+
</ui:NavigationView.FooterMenuItems>
75+
</ui:NavigationView>
76+
<ui:TitleBar Title="WPF UI - Console Demo" Grid.Row="0" />
77+
</Grid>
7978
</ui:FluentWindow>
Lines changed: 29 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,31 @@
11
<Page
2-
x:Class="Wpf.Ui.Demo.Console.Views.Pages.DashboardPage"
3-
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4-
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5-
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
6-
xmlns:local="clr-namespace:Wpf.Ui.Demo.Console.Views.Pages"
7-
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
8-
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
9-
Title="DashboardPage"
10-
d:DesignHeight="450"
11-
d:DesignWidth="800"
12-
ui:Design.Background="{DynamicResource ApplicationBackgroundBrush}"
13-
ui:Design.Foreground="{DynamicResource TextFillColorPrimaryBrush}"
14-
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
15-
ScrollViewer.CanContentScroll="False"
16-
mc:Ignorable="d">
17-
18-
<Grid Margin="42" VerticalAlignment="Top">
19-
<Grid.ColumnDefinitions>
20-
<ColumnDefinition Width="Auto" />
21-
<ColumnDefinition Width="Auto" />
22-
</Grid.ColumnDefinitions>
23-
24-
<ui:Button
25-
Grid.Column="0"
26-
Click="OnBaseButtonClick"
27-
Content="Click me!"
28-
Icon="{ui:SymbolIcon Fluent24}" />
29-
<TextBlock
30-
x:Name="CounterTextBlock"
31-
Grid.Column="1"
32-
Margin="12,0,0,0"
33-
VerticalAlignment="Center" />
34-
</Grid>
2+
x:Class="Wpf.Ui.Demo.Console.Views.Pages.DashboardPage"
3+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5+
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
6+
xmlns:local="clr-namespace:Wpf.Ui.Demo.Console.Views.Pages"
7+
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
8+
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
9+
Title="DashboardPage"
10+
d:DesignHeight="450"
11+
d:DesignWidth="800"
12+
ui:Design.Background="{DynamicResource ApplicationBackgroundBrush}"
13+
ui:Design.Foreground="{DynamicResource TextFillColorPrimaryBrush}"
14+
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
15+
ScrollViewer.CanContentScroll="False"
16+
mc:Ignorable="d"
17+
>
18+
<Grid Margin="42" VerticalAlignment="Top">
19+
<Grid.ColumnDefinitions>
20+
<ColumnDefinition Width="Auto" />
21+
<ColumnDefinition Width="Auto" />
22+
</Grid.ColumnDefinitions>
23+
<ui:Button
24+
Grid.Column="0"
25+
Click="OnBaseButtonClick"
26+
Content="Click me!"
27+
Icon="{ui:SymbolIcon Fluent24}"
28+
/>
29+
<TextBlock x:Name="CounterTextBlock" Grid.Column="1" Margin="12,0,0,0" VerticalAlignment="Center" />
30+
</Grid>
3531
</Page>

0 commit comments

Comments
 (0)