File tree Expand file tree Collapse file tree 16 files changed +87
-76
lines changed Expand file tree Collapse file tree 16 files changed +87
-76
lines changed Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
<PropertyGroup >
3
3
<OutputType >WinExe</OutputType >
4
- <TargetFramework >net7 .0-windows10.0.19041.0</TargetFramework >
4
+ <TargetFramework >net8 .0-windows10.0.19041.0</TargetFramework >
5
5
<TargetPlatformMinVersion >10.0.17763.0</TargetPlatformMinVersion >
6
6
<RootNamespace >Animations</RootNamespace >
7
7
<ApplicationManifest >app.manifest</ApplicationManifest >
8
8
<Platforms >x86;x64;arm64</Platforms >
9
- <RuntimeIdentifiers >win10 -x86;win10 -x64;win10 -arm64</RuntimeIdentifiers >
10
- <PublishProfile >win10 -$(Platform).pubxml</PublishProfile >
9
+ <RuntimeIdentifiers >win -x86;win -x64;win -arm64</RuntimeIdentifiers >
10
+ <PublishProfile >win -$(Platform).pubxml</PublishProfile >
11
11
<UseWinUI >true</UseWinUI >
12
- <EnablePreviewMsixTooling >true</EnablePreviewMsixTooling >
12
+ <EnableMsixTooling >true</EnableMsixTooling >
13
13
<Nullable >enable</Nullable >
14
14
<ImplicitUsings >enable</ImplicitUsings >
15
15
</PropertyGroup >
25
25
</ItemGroup >
26
26
27
27
<ItemGroup >
28
- <PackageReference Include =" Microsoft.WindowsAppSDK" Version =" 1.2.221109.1 " />
29
- <PackageReference Include =" Microsoft.Windows.SDK.BuildTools" Version =" 10.0.22621.755 " />
28
+ <PackageReference Include =" Microsoft.WindowsAppSDK" Version =" 1.6.250108002 " />
29
+ <PackageReference Include =" Microsoft.Windows.SDK.BuildTools" Version =" 10.0.26100.1742 " />
30
30
<Manifest Include =" $(ApplicationManifest)" />
31
31
</ItemGroup >
32
32
Original file line number Diff line number Diff line change @@ -16,24 +16,30 @@ public void Draw(EasingFunctionBase easingFunction)
16
16
{
17
17
canvas1 . Children . Clear ( ) ;
18
18
19
- PathSegmentCollection pathSegments = new ( ) ;
19
+ PathSegmentCollection pathSegments = [ ] ;
20
20
21
21
for ( double i = 0 ; i < 1 ; i += SamplingInterval )
22
22
{
23
23
double x = i * canvas1 . Width ;
24
24
double y = easingFunction . Ease ( i ) * canvas1 . Height ;
25
25
26
- LineSegment segment = new ( ) ;
27
- segment . Point = new Point ( x , y ) ;
26
+ LineSegment segment = new ( )
27
+ {
28
+ Point = new Point ( x , y )
29
+ } ;
28
30
29
31
pathSegments . Add ( segment ) ;
30
32
}
31
33
32
- XamlShapes . Path p = new ( ) ;
33
- p . Stroke = new SolidColorBrush ( Colors . Black ) ;
34
- p . StrokeThickness = 3 ;
35
- PathFigureCollection figures = new ( ) ;
36
- figures . Add ( new PathFigure { Segments = pathSegments } ) ;
34
+ XamlShapes . Path p = new ( )
35
+ {
36
+ Stroke = new SolidColorBrush ( Colors . Black ) ,
37
+ StrokeThickness = 3
38
+ } ;
39
+ PathFigureCollection figures =
40
+ [
41
+ new PathFigure { Segments = pathSegments }
42
+ ] ;
37
43
p . Data = new PathGeometry { Figures = figures } ;
38
44
canvas1 . Children . Add ( p ) ;
39
45
}
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
<PropertyGroup >
3
3
<OutputType >WinExe</OutputType >
4
- <TargetFramework >net7 .0-windows10.0.19041.0</TargetFramework >
4
+ <TargetFramework >net8 .0-windows10.0.19041.0</TargetFramework >
5
5
<TargetPlatformMinVersion >10.0.17763.0</TargetPlatformMinVersion >
6
6
<RootNamespace >Brushes</RootNamespace >
7
7
<ApplicationManifest >app.manifest</ApplicationManifest >
8
8
<Platforms >x86;x64;arm64</Platforms >
9
- <RuntimeIdentifiers >win10 -x86;win10 -x64;win10 -arm64</RuntimeIdentifiers >
10
- <PublishProfile >win10 -$(Platform).pubxml</PublishProfile >
9
+ <RuntimeIdentifiers >win -x86;win -x64;win -arm64</RuntimeIdentifiers >
10
+ <PublishProfile >win -$(Platform).pubxml</PublishProfile >
11
11
<UseWinUI >true</UseWinUI >
12
- <EnablePreviewMsixTooling >true</EnablePreviewMsixTooling >
12
+ <EnableMsixTooling >true</EnableMsixTooling >
13
13
<Nullable >enable</Nullable >
14
14
<ImplicitUsings >enable</ImplicitUsings >
15
15
</PropertyGroup >
25
25
</ItemGroup >
26
26
27
27
<ItemGroup >
28
- <PackageReference Include =" Microsoft.WindowsAppSDK" Version =" 1.2.221109.1 " />
29
- <PackageReference Include =" Microsoft.Windows.SDK.BuildTools" Version =" 10.0.22621.755 " />
28
+ <PackageReference Include =" Microsoft.WindowsAppSDK" Version =" 1.6.250108002 " />
29
+ <PackageReference Include =" Microsoft.Windows.SDK.BuildTools" Version =" 10.0.26100.1742 " />
30
30
<Manifest Include =" $(ApplicationManifest)" />
31
31
</ItemGroup >
32
32
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
<PropertyGroup >
3
3
<OutputType >WinExe</OutputType >
4
- <TargetFramework >net7 .0-windows10.0.19041.0</TargetFramework >
4
+ <TargetFramework >net8 .0-windows10.0.19041.0</TargetFramework >
5
5
<TargetPlatformMinVersion >10.0.17763.0</TargetPlatformMinVersion >
6
6
<RootNamespace >Geometries</RootNamespace >
7
7
<ApplicationManifest >app.manifest</ApplicationManifest >
8
8
<Platforms >x86;x64;arm64</Platforms >
9
- <RuntimeIdentifiers >win10 -x86;win10 -x64;win10 -arm64</RuntimeIdentifiers >
10
- <PublishProfile >win10 -$(Platform).pubxml</PublishProfile >
9
+ <RuntimeIdentifiers >win -x86;win -x64;win -arm64</RuntimeIdentifiers >
10
+ <PublishProfile >win -$(Platform).pubxml</PublishProfile >
11
11
<UseWinUI >true</UseWinUI >
12
- <EnablePreviewMsixTooling >true</EnablePreviewMsixTooling >
12
+ <EnableMsixTooling >true</EnableMsixTooling >
13
13
<Nullable >enable</Nullable >
14
14
<ImplicitUsings >enable</ImplicitUsings >
15
15
</PropertyGroup >
25
25
</ItemGroup >
26
26
27
27
<ItemGroup >
28
- <PackageReference Include =" Microsoft.WindowsAppSDK" Version =" 1.2.221109.1 " />
29
- <PackageReference Include =" Microsoft.Windows.SDK.BuildTools" Version =" 10.0.22621.755 " />
28
+ <PackageReference Include =" Microsoft.WindowsAppSDK" Version =" 1.6.250108002 " />
29
+ <PackageReference Include =" Microsoft.Windows.SDK.BuildTools" Version =" 10.0.26100.1742 " />
30
30
<Manifest Include =" $(ApplicationManifest)" />
31
31
</ItemGroup >
32
32
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ public sealed class CountryRepository
4
4
{
5
5
private static IEnumerable < Country > ? s_countries ;
6
6
7
- public IEnumerable < Country > GetCountries ( ) => s_countries ??= new List < Country >
8
- {
7
+ public IEnumerable < Country > GetCountries ( ) => s_countries ??=
8
+ [
9
9
new ( ) { Name = "Austria" , ImagePath = "/Images/Austria.bmp" } ,
10
10
new ( ) { Name = "Germany" , ImagePath = "/Images/Germany.bmp" } ,
11
11
new ( ) { Name = "Norway" , ImagePath = "/Images/Norway.bmp" } ,
12
12
new ( ) { Name = "USA" , ImagePath = "/Images/USA.bmp" }
13
- } ;
13
+ ] ;
14
14
}
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >net7 .0</TargetFramework >
4
+ <TargetFramework >net8 .0</TargetFramework >
5
5
<Nullable >enable</Nullable >
6
6
<ImplicitUsings >enable</ImplicitUsings >
7
7
</PropertyGroup >
Original file line number Diff line number Diff line change @@ -22,17 +22,22 @@ public void SetMouth()
22
22
{
23
23
int index = _laugh ? 0 : 1 ;
24
24
25
- PathFigure figure = new ( ) { StartPoint = _mouthPoints [ index , 0 ] } ;
26
- figure . Segments = new PathSegmentCollection ( ) ;
25
+ PathFigure figure = new ( )
26
+ {
27
+ StartPoint = _mouthPoints [ index , 0 ] ,
28
+ Segments = [ ]
29
+ } ;
27
30
QuadraticBezierSegment segment1 = new ( )
28
31
{
29
32
Point1 = _mouthPoints [ index , 1 ] ,
30
33
Point2 = _mouthPoints [ index , 2 ]
31
34
} ;
32
35
33
36
figure . Segments . Add ( segment1 ) ;
34
- PathGeometry geometry = new ( ) ;
35
- geometry . Figures = new PathFigureCollection ( ) ;
37
+ PathGeometry geometry = new ( )
38
+ {
39
+ Figures = [ ]
40
+ } ;
36
41
geometry . Figures . Add ( figure ) ;
37
42
38
43
mouth . Data = geometry ;
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
<PropertyGroup >
3
3
<OutputType >WinExe</OutputType >
4
- <TargetFramework >net7 .0-windows10.0.19041.0</TargetFramework >
4
+ <TargetFramework >net8 .0-windows10.0.19041.0</TargetFramework >
5
5
<TargetPlatformMinVersion >10.0.17763.0</TargetPlatformMinVersion >
6
6
<RootNamespace >Shapes</RootNamespace >
7
7
<ApplicationManifest >app.manifest</ApplicationManifest >
8
8
<Platforms >x86;x64;arm64</Platforms >
9
- <RuntimeIdentifiers >win10 -x86;win10 -x64;win10 -arm64</RuntimeIdentifiers >
10
- <PublishProfile >win10 -$(Platform).pubxml</PublishProfile >
9
+ <RuntimeIdentifiers >win -x86;win -x64;win -arm64</RuntimeIdentifiers >
10
+ <PublishProfile >win -$(Platform).pubxml</PublishProfile >
11
11
<UseWinUI >true</UseWinUI >
12
- <EnablePreviewMsixTooling >true</EnablePreviewMsixTooling >
12
+ <EnableMsixTooling >true</EnableMsixTooling >
13
13
<Nullable >enable</Nullable >
14
14
<ImplicitUsings >enable</ImplicitUsings >
15
15
</PropertyGroup >
25
25
</ItemGroup >
26
26
27
27
<ItemGroup >
28
- <PackageReference Include =" Microsoft.WindowsAppSDK" Version =" 1.2.221109.1 " />
29
- <PackageReference Include =" Microsoft.Windows.SDK.BuildTools" Version =" 10.0.22621.755 " />
28
+ <PackageReference Include =" Microsoft.WindowsAppSDK" Version =" 1.6.250108002 " />
29
+ <PackageReference Include =" Microsoft.Windows.SDK.BuildTools" Version =" 10.0.26100.1742 " />
30
30
<Manifest Include =" $(ApplicationManifest)" />
31
31
</ItemGroup >
32
32
Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ public partial class App : Application
8
8
9
9
protected override void OnLaunched ( Microsoft . UI . Xaml . LaunchActivatedEventArgs args )
10
10
{
11
- m_window = new MainWindow ( ) ;
12
- m_window . Activate ( ) ;
11
+ _window = new MainWindow ( ) ;
12
+ _window . Activate ( ) ;
13
13
}
14
14
15
- private Window ? m_window ;
15
+ private Window ? _window ;
16
16
}
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
<PropertyGroup >
3
3
<OutputType >WinExe</OutputType >
4
- <TargetFramework >net7 .0-windows10.0.19041.0</TargetFramework >
4
+ <TargetFramework >net8 .0-windows10.0.19041.0</TargetFramework >
5
5
<TargetPlatformMinVersion >10.0.17763.0</TargetPlatformMinVersion >
6
6
<RootNamespace >StylesAndResources</RootNamespace >
7
7
<ApplicationManifest >app.manifest</ApplicationManifest >
8
8
<Platforms >x86;x64;arm64</Platforms >
9
- <RuntimeIdentifiers >win10 -x86;win10 -x64;win10 -arm64</RuntimeIdentifiers >
10
- <PublishProfile >win10 -$(Platform).pubxml</PublishProfile >
9
+ <RuntimeIdentifiers >win -x86;win -x64;win -arm64</RuntimeIdentifiers >
10
+ <PublishProfile >win -$(Platform).pubxml</PublishProfile >
11
11
<UseWinUI >true</UseWinUI >
12
- <EnablePreviewMsixTooling >true</EnablePreviewMsixTooling >
12
+ <EnableMsixTooling >true</EnableMsixTooling >
13
13
<Nullable >enable</Nullable >
14
14
<ImplicitUsings >enable</ImplicitUsings >
15
15
</PropertyGroup >
25
25
</ItemGroup >
26
26
27
27
<ItemGroup >
28
- <PackageReference Include =" Microsoft.WindowsAppSDK" Version =" 1.2.221109.1 " />
29
- <PackageReference Include =" Microsoft.Windows.SDK.BuildTools" Version =" 10.0.22621.755 " />
28
+ <PackageReference Include =" Microsoft.WindowsAppSDK" Version =" 1.6.250108002 " />
29
+ <PackageReference Include =" Microsoft.Windows.SDK.BuildTools" Version =" 10.0.26100.1742 " />
30
30
<Manifest Include =" $(ApplicationManifest)" />
31
31
</ItemGroup >
32
32
You can’t perform that action at this time.
0 commit comments