Skip to content

Commit 4387af8

Browse files
author
reunion-maestro-bot
committed
Syncing content from committish 89f35c2b250921b5002e24ec09bac01f3d9f190f
1 parent bfc240e commit 4387af8

File tree

91 files changed

+9899
-436
lines changed

Some content is hidden

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

91 files changed

+9899
-436
lines changed

src/PackageStore/readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Local source for packages. Places nupkg files in this directory to test them out before uploading.

src/Packages.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
<PackageReference Update="Microsoft.NET.Test.Sdk" Version="$(MicrosoftTestNetSdkVersion)" />
1919
<PackageReference Update="Microsoft.TestPlatform.TestHost" Version="$(MicrosoftTestNetSdkVersion)" />
2020
<PackageReference Update="Microsoft.Windows.SDK.BuildTools" Version="$(MicrosoftWindowsSDKBuildToolsNugetPackageVersion)" />
21+
<PackageReference Update="Microsoft.FrameworkUdk" Version="$(FrameworkUdkPackageVersion)" />
2122
<PackageReference Update="Microsoft.Internal.WinUIDetails" Version="$(WinUIDetailsNugetVersion)" GeneratePathProperty="true"/>
2223
<PackageReference Update="Microsoft.Internal.InteractiveExperiences" Version="$(IxpInternalPackageVersion)"/>
2324
<PackageReference Update="Microsoft.ProjectReunion.InteractiveExperiences.TransportPackage" Version="$(IxpTransportPackageVersion)"/>

src/XamlCompilerPublic.csproj

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Project Sdk="Microsoft.Build.NoTargets" DefaultTargets="CopyFiles">
3+
<PropertyGroup>
4+
<TargetFramework>net6.0</TargetFramework>
5+
</PropertyGroup>
6+
7+
<PropertyGroup>
8+
<!-- This is the version of Microsoft.WindowsAppSDK.WinUI on nuget.org which should be downloaded and files copied from -->
9+
<PublicWinUIPackageVersion>1.8.250906003</PublicWinUIPackageVersion>
10+
</PropertyGroup>
11+
12+
<ItemGroup>
13+
<PackageDownload Include="Microsoft.WindowsAppSDK.WinUI" Version="[$(PublicWinUIPackageVersion)]"/>
14+
</ItemGroup>
15+
16+
<PropertyGroup>
17+
<OutDir>$(PackageOutputLocation)</OutDir>
18+
19+
<!-- GeneratePathProperty doesn't exist for <PackageDownload>, so construct the path manually -->
20+
<PublicWinUIPackagePath>$(NugetPackageDirectory)\microsoft.windowsappsdk.winui\$(PublicWinUIPackageVersion)</PublicWinUIPackagePath>
21+
</PropertyGroup>
22+
23+
<ItemGroup>
24+
<Files Include="$(PublicWinUIPackagePath)\**\Microsoft.UI.Xaml.Markup.Compiler*.props" />
25+
<Files Include="$(PublicWinUIPackagePath)\**\Microsoft.UI.Xaml.Markup.Compiler*.targets" />
26+
<Files Include="$(PublicWinUIPackagePath)\**\Microsoft.WinUI.NET.Markup.Compiler.targets" />
27+
<Files Include="$(PublicWinUIPackagePath)\**\net472\*" />
28+
<Files Include="$(PublicWinUIPackagePath)\**\net6.0\*" />
29+
</ItemGroup>
30+
31+
<Target Name="CopyFiles">
32+
<Copy SourceFiles="@(Files)" DestinationFolder="$(OutDir)\%(RecursiveDir)" />
33+
</Target>
34+
35+
</Project>

src/controls/FeatureAreas.props

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
<FeatureMaterialsEnabled>productOnly</FeatureMaterialsEnabled>
2121
<FeatureResourceHelperEnabled>productOnly</FeatureResourceHelperEnabled>
2222
<FeatureSplitButtonEnabled>productOnly</FeatureSplitButtonEnabled>
23+
<FeatureWrapPanelEnabled>productOnly</FeatureWrapPanelEnabled>
2324
</PropertyGroup>
2425
<!-- Import this after inner loop features are declared so that it overrides those properties -->
2526
<Import Project="InnerLoopAreas.props" Condition="Exists('InnerLoopAreas.props') And $(SolutionName) == 'MUXControlsInnerLoop'" />
@@ -79,6 +80,9 @@
7980
<PropertyGroup Condition="Exists('InnerLoopAreas.props') And $(SolutionName) == 'MUXControlsInnerLoop' And $(FeatureLayoutPanelEnabled) == 'true'">
8081
<FeatureRepeaterEnabled>productOnly</FeatureRepeaterEnabled>
8182
</PropertyGroup>
83+
<!-- Dependencies for WrapPanel -->
84+
<PropertyGroup Condition="Exists('InnerLoopAreas.props') And $(SolutionName) == 'MUXControlsInnerLoop' And $(FeatureWrapPanelEnabled) == 'true'">
85+
</PropertyGroup>
8286
<!-- Dependencies for Lights -->
8387
<PropertyGroup Condition="Exists('InnerLoopAreas.props') And $(SolutionName) == 'MUXControlsInnerLoop' And $(FeatureLightsEnabled) == 'true'">
8488
</PropertyGroup>
@@ -234,6 +238,7 @@
234238
<FeatureFlipViewEnabled>true</FeatureFlipViewEnabled>
235239
<FeatureInteractionsEnabled>true</FeatureInteractionsEnabled>
236240
<FeatureLayoutPanelEnabled>true</FeatureLayoutPanelEnabled>
241+
<FeatureWrapPanelEnabled>true</FeatureWrapPanelEnabled>
237242
<FeatureLightsEnabled>true</FeatureLightsEnabled>
238243
<FeatureMaterialsEnabled>true</FeatureMaterialsEnabled>
239244
<FeatureMenuBarEnabled>true</FeatureMenuBarEnabled>
@@ -282,6 +287,7 @@
282287
<FeatureSelectorBarEnabled>true</FeatureSelectorBarEnabled>
283288
<FeatureInkCanvasEnabled>true</FeatureInkCanvasEnabled>
284289
<FeatureInkToolBarEnabled>false</FeatureInkToolBarEnabled>
290+
<FeatureSystemBackdropHostEnabled>true</FeatureSystemBackdropHostEnabled>
285291
</PropertyGroup>
286292
<PropertyGroup>
287293
<DefineConstants Condition="$(FeatureScrollPresenterEnabled) =='true'">$(DefineConstants);FEATURE_SCROLLPRESENTER_ENABLED</DefineConstants>

src/controls/MUXControls.sln

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,12 @@ Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "SelectorBar_APITests", "dev
696696
EndProject
697697
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TabViewTearOutApp", "test\TabViewTearOutApp\TabViewTearOutApp.vcxproj", "{86317243-45A8-4770-A4B2-768F721E5F9B}"
698698
EndProject
699+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "WrapPanel", "WrapPanel", "{02EA681E-C7D8-13C7-8484-4AC65E1B71E8}"
700+
EndProject
701+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "WrapPanel", "dev\WrapPanel\WrapPanel.vcxitems", "{EDAEAAD5-A295-49C0-8F51-C183B7CAE26B}"
702+
EndProject
703+
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "WrapPanel_APITests", "dev\WrapPanel\APITests\WrapPanel_APITests.shproj", "{1277DFD3-5C9E-4E19-AC50-38E89F2529C5}"
704+
EndProject
699705
Global
700706
GlobalSection(SolutionConfigurationPlatforms) = preSolution
701707
Debug_test|ARM64 = Debug_test|ARM64
@@ -1600,6 +1606,9 @@ Global
16001606
{1C950F53-542E-4CC4-9281-D9E36072A743} = {BC59C0F9-07AC-44B2-BDF1-6533A1371BB2}
16011607
{F778ACAE-150F-4D7D-83C1-5BF2E1ACB399} = {BC59C0F9-07AC-44B2-BDF1-6533A1371BB2}
16021608
{86317243-45A8-4770-A4B2-768F721E5F9B} = {D3327F36-E161-4FED-A0F4-56F2B735827E}
1609+
{02EA681E-C7D8-13C7-8484-4AC65E1B71E8} = {67599AD5-51EC-44CB-85CE-B60CD8CBA270}
1610+
{EDAEAAD5-A295-49C0-8F51-C183B7CAE26B} = {02EA681E-C7D8-13C7-8484-4AC65E1B71E8}
1611+
{1277DFD3-5C9E-4E19-AC50-38E89F2529C5} = {02EA681E-C7D8-13C7-8484-4AC65E1B71E8}
16031612
EndGlobalSection
16041613
GlobalSection(ExtensibilityGlobals) = postSolution
16051614
SolutionGuid = {D93836AB-52D3-4DE2-AE25-23F26F55ECED}
@@ -1618,6 +1627,7 @@ Global
16181627
dev\RatingControl\TestUI\RatingControl_TestUI.projitems*{10c52fd4-52fc-43b3-94af-895c9b5a014c}*SharedItemsImports = 13
16191628
dev\Interactions\ButtonInteraction\TestUI\ButtonInteraction_TestUI.projitems*{11b35f24-72b2-4228-9960-0d1ea283e1af}*SharedItemsImports = 13
16201629
dev\CommandBarFlyout\CommandBarFlyout.vcxitems*{11c085ff-8f68-48ee-9949-6eecbd0cbe6c}*SharedItemsImports = 9
1630+
dev\WrapPanel\APITests\WrapPanel_APITests.projitems*{1277dfd3-5c9e-4e19-ac50-38e89f2529c5}*SharedItemsImports = 13
16211631
dev\TwoPaneView\InteractionTests\TwoPaneView_InteractionTests.projitems*{1294409d-9bad-40cc-a74d-9ab29b343071}*SharedItemsImports = 13
16221632
dev\NumberBox\TestUI\NumberBox_TestUI.projitems*{13da8235-d04f-46d4-b5b4-f5ae774eeede}*SharedItemsImports = 13
16231633
dev\MenuBar\MenuBar_InteractionTests\MenuBar_InteractionTests.projitems*{1440a7b7-d3ca-4390-8c85-e1e9a7df8542}*SharedItemsImports = 13
@@ -1812,6 +1822,7 @@ Global
18121822
dev\TwoPaneView\APITests\TwoPaneView_APITests.projitems*{4e6f8103-9e20-40dd-8fe0-1e73964bb800}*SharedItemsImports = 5
18131823
dev\TwoPaneView\TestUI\TwoPaneView_TestUI.projitems*{4e6f8103-9e20-40dd-8fe0-1e73964bb800}*SharedItemsImports = 5
18141824
dev\WebView2\TestUI\WebView2_TestUI.projitems*{4e6f8103-9e20-40dd-8fe0-1e73964bb800}*SharedItemsImports = 5
1825+
dev\WrapPanel\APITests\WrapPanel_APITests.projitems*{4e6f8103-9e20-40dd-8fe0-1e73964bb800}*SharedItemsImports = 5
18151826
test\TestAppUtils\TestAppUtils.projitems*{4e6f8103-9e20-40dd-8fe0-1e73964bb800}*SharedItemsImports = 5
18161827
dev\PagerControl\InteractionTests\PagerControl_InteractionTests.projitems*{4f64c819-664f-436a-bcdb-8ab3019b9dd5}*SharedItemsImports = 13
18171828
dev\Materials\Reveal\APITests\Reveal_APITests.projitems*{5049ea6c-88ce-4ed5-8692-947eec9e52bc}*SharedItemsImports = 13
@@ -1935,6 +1946,7 @@ Global
19351946
dev\Expander\Expander.vcxitems*{ec3b6f65-32c6-4bc8-8902-ee0b397e2787}*SharedItemsImports = 9
19361947
dev\AutoSuggestBox\InteractionTests\AutoSuggestBox_InteractionTests.projitems*{ed3e2182-d259-4dc0-b7bb-9b4219762f4c}*SharedItemsImports = 13
19371948
dev\PullToRefresh\RefreshVisualizer\RefreshVisualizer.vcxitems*{ed7dba65-8f09-44f3-8d25-7bb5a7a89609}*SharedItemsImports = 9
1949+
dev\WrapPanel\WrapPanel.vcxitems*{edaeaad5-a295-49c0-8f51-c183b7cae26b}*SharedItemsImports = 9
19381950
dev\TreeView\TreeView.vcxitems*{eeb38379-3a5c-439f-bb5e-535d75f2b6c1}*SharedItemsImports = 9
19391951
dev\ImageIcon\InteractionTests\ImageIcon_InteractionTests.projitems*{f14fb632-e705-44bc-9415-75b539f483e1}*SharedItemsImports = 13
19401952
dev\AnimatedIcon\AnimatedIcon.vcxitems*{f1c8a5a1-b1b0-4095-8849-e550fcf2ebf6}*SharedItemsImports = 9

src/controls/MUXControlsInnerLoop.sln

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,12 @@ Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "MapControl_TestUI", "dev\Ma
529529
EndProject
530530
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "MapControl_InteractionTests", "dev\MapControl\InteractionTests\MapControl_InteractionTests.shproj", "{189F0B87-4CA1-4F77-8195-FC6DC714157A}"
531531
EndProject
532+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "WrapPanel", "WrapPanel", "{02EA681E-C7D8-13C7-8484-4AC65E1B71E8}"
533+
EndProject
534+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "WrapPanel", "dev\WrapPanel\WrapPanel.vcxitems", "{EDAEAAD5-A295-49C0-8F51-C183B7CAE26B}"
535+
EndProject
536+
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "WrapPanel_APITests", "dev\WrapPanel\APITests\WrapPanel_APITests.shproj", "{1277DFD3-5C9E-4E19-AC50-38E89F2529C5}"
537+
EndProject
532538
Global
533539
GlobalSection(SolutionConfigurationPlatforms) = preSolution
534540
Debug_test|ARM64 = Debug_test|ARM64
@@ -941,6 +947,9 @@ Global
941947
{F350D71A-A980-4D63-A38A-8A2035DC4EF2} = {1CEADA92-1E59-4265-B3A3-0A0490F1360A}
942948
{8C2F2FA6-5639-4C01-84D0-06E037824689} = {1CEADA92-1E59-4265-B3A3-0A0490F1360A}
943949
{189F0B87-4CA1-4F77-8195-FC6DC714157A} = {1CEADA92-1E59-4265-B3A3-0A0490F1360A}
950+
{02EA681E-C7D8-13C7-8484-4AC65E1B71E8} = {67599AD5-51EC-44CB-85CE-B60CD8CBA270}
951+
{EDAEAAD5-A295-49C0-8F51-C183B7CAE26B} = {02EA681E-C7D8-13C7-8484-4AC65E1B71E8}
952+
{1277DFD3-5C9E-4E19-AC50-38E89F2529C5} = {02EA681E-C7D8-13C7-8484-4AC65E1B71E8}
944953
EndGlobalSection
945954
GlobalSection(ExtensibilityGlobals) = postSolution
946955
SolutionGuid = {D93836AB-52D3-4DE2-AE25-23F26F55ECED}
@@ -958,6 +967,7 @@ Global
958967
dev\RatingControl\TestUI\RatingControl_TestUI.projitems*{10c52fd4-52fc-43b3-94af-895c9b5a014c}*SharedItemsImports = 13
959968
dev\Interactions\ButtonInteraction\TestUI\ButtonInteraction_TestUI.projitems*{11b35f24-72b2-4228-9960-0d1ea283e1af}*SharedItemsImports = 13
960969
dev\CommandBarFlyout\CommandBarFlyout.vcxitems*{11c085ff-8f68-48ee-9949-6eecbd0cbe6c}*SharedItemsImports = 9
970+
dev\WrapPanel\APITests\WrapPanel_APITests.projitems*{1277dfd3-5c9e-4e19-ac50-38e89f2529c5}*SharedItemsImports = 13
961971
dev\TwoPaneView\InteractionTests\TwoPaneView_InteractionTests.projitems*{1294409d-9bad-40cc-a74d-9ab29b343071}*SharedItemsImports = 13
962972
dev\NumberBox\TestUI\NumberBox_TestUI.projitems*{13da8235-d04f-46d4-b5b4-f5ae774eeede}*SharedItemsImports = 13
963973
dev\MenuBar\MenuBar_InteractionTests\MenuBar_InteractionTests.projitems*{1440a7b7-d3ca-4390-8c85-e1e9a7df8542}*SharedItemsImports = 13
@@ -1140,6 +1150,7 @@ Global
11401150
test\MUXControls.Test\MUXControls.Test.Shared.projitems*{e9fc52cd-519a-41bb-8092-523ffa9d5617}*SharedItemsImports = 13
11411151
dev\Expander\Expander.vcxitems*{ec3b6f65-32c6-4bc8-8902-ee0b397e2787}*SharedItemsImports = 9
11421152
dev\PullToRefresh\RefreshVisualizer\RefreshVisualizer.vcxitems*{ed7dba65-8f09-44f3-8d25-7bb5a7a89609}*SharedItemsImports = 9
1153+
dev\WrapPanel\WrapPanel.vcxitems*{edaeaad5-a295-49c0-8f51-c183b7cae26b}*SharedItemsImports = 9
11431154
dev\TreeView\TreeView.vcxitems*{eeb38379-3a5c-439f-bb5e-535d75f2b6c1}*SharedItemsImports = 9
11441155
dev\ImageIcon\InteractionTests\ImageIcon_InteractionTests.projitems*{f14fb632-e705-44bc-9415-75b539f483e1}*SharedItemsImports = 13
11451156
dev\AnimatedIcon\AnimatedIcon.vcxitems*{f1c8a5a1-b1b0-4095-8849-e550fcf2ebf6}*SharedItemsImports = 9

src/controls/ProjectImports.targets

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<ImportGroup>
55
<Import Project="$(MSBuildThisFileDirectory)dev\TestHooks\TestHooks.vcxitems" Label="Shared" />
66
<Import Project="$(MSBuildThisFileDirectory)dev\Common\Common.vcxitems" Label="Shared" />
7+
<Import Project="$(MSBuildThisFileDirectory)dev\SystemBackdropHost\SystemBackdropHost.vcxitems" Label="Shared" Condition="$(FeatureSystemBackdropHostEnabled) == 'true' Or $(FeatureSystemBackdropHostEnabled) == 'productOnly'" />
78
<Import Project="$(MSBuildThisFileDirectory)dev\CommonStyles\CommonStyles.vcxitems" Label="Shared" Condition="$(FeatureCommonStylesEnabled) == 'true' Or $(FeatureCommonStylesEnabled) == 'productOnly'" />
89
<Import Project="$(MSBuildThisFileDirectory)dev\RatingControl\RatingControl.vcxitems" Label="Shared" Condition="$(FeatureRatingControlEnabled) == 'true' Or $(FeatureRatingControlEnabled) == 'productOnly'" />
910
<Import Project="$(MSBuildThisFileDirectory)dev\InfoBadge\InfoBadge.vcxitems" Label="Shared" Condition="$(FeatureInfoBadgeEnabled) == 'true' Or $(FeatureInfoBadgeEnabled) == 'productOnly'" />
@@ -35,6 +36,7 @@
3536
<Import Project="$(MSBuildThisFileDirectory)dev\PullToRefresh\PTRTracing\PTRTracing.vcxitems" Label="Shared" Condition="$(FeaturePullToRefreshEnabled) == 'true' Or $(FeaturePullToRefreshEnabled) == 'productOnly'" />
3637
<Import Project="$(MSBuildThisFileDirectory)dev\SplitButton\SplitButton.vcxitems" Label="Shared" Condition="$(FeatureSplitButtonEnabled) == 'true' Or $(FeatureSplitButtonEnabled) == 'productOnly'" />
3738
<Import Project="$(MSBuildThisFileDirectory)dev\LayoutPanel\LayoutPanel.vcxitems" Label="Shared" Condition="$(FeatureLayoutPanelEnabled) == 'true' Or $(FeatureLayoutPanelEnabled) == 'productOnly'" />
39+
<Import Project="$(MSBuildThisFileDirectory)dev\WrapPanel\WrapPanel.vcxitems" Label="Shared" Condition="$(FeatureWrapPanelEnabled) == 'true' Or $(FeatureWrapPanelEnabled) == 'productOnly'" />
3840
<Import Project="$(MSBuildThisFileDirectory)dev\DropDownButton\DropDownButton.vcxitems" Label="Shared" Condition="$(FeatureDropDownButtonEnabled) == 'true' Or $(FeatureDropDownButtonEnabled) == 'productOnly'" />
3941
<Import Project="$(MSBuildThisFileDirectory)dev\RadioButtons\RadioButtons.vcxitems" Label="Shared" Condition="$(FeatureRadioButtonsEnabled) == 'true' Or $(FeatureRadioButtonsEnabled) == 'productOnly'" />
4042
<Import Project="$(MSBuildThisFileDirectory)dev\IconSource\IconSource.vcxitems" Label="Shared" Condition="$(FeatureIconSourceEnabled) == 'true' Or $(FeatureIconSourceEnabled) == 'productOnly'" />
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License. See LICENSE in the project root for license information.
3+
4+
// DO NOT EDIT! This file was generated by CustomTasks.DependencyPropertyCodeGen
5+
#include "pch.h"
6+
#include "common.h"
7+
#include "SystemBackdropHost.h"
8+
9+
namespace winrt::Microsoft::UI::Xaml::Controls
10+
{
11+
CppWinRTActivatableClassWithDPFactory(SystemBackdropHost)
12+
}
13+
14+
#include "SystemBackdropHost.g.cpp"
15+
16+
GlobalDependencyProperty SystemBackdropHostProperties::s_CornerRadiusProperty{ nullptr };
17+
GlobalDependencyProperty SystemBackdropHostProperties::s_SystemBackdropProperty{ nullptr };
18+
19+
SystemBackdropHostProperties::SystemBackdropHostProperties()
20+
{
21+
EnsureProperties();
22+
}
23+
24+
void SystemBackdropHostProperties::EnsureProperties()
25+
{
26+
if (!s_CornerRadiusProperty)
27+
{
28+
s_CornerRadiusProperty =
29+
InitializeDependencyProperty(
30+
L"CornerRadius",
31+
winrt::name_of<winrt::CornerRadius>(),
32+
winrt::name_of<winrt::SystemBackdropHost>(),
33+
false /* isAttached */,
34+
ValueHelper<winrt::CornerRadius>::BoxedDefaultValue(),
35+
winrt::PropertyChangedCallback(&OnCornerRadiusPropertyChanged));
36+
}
37+
if (!s_SystemBackdropProperty)
38+
{
39+
s_SystemBackdropProperty =
40+
InitializeDependencyProperty(
41+
L"SystemBackdrop",
42+
winrt::name_of<winrt::SystemBackdrop>(),
43+
winrt::name_of<winrt::SystemBackdropHost>(),
44+
false /* isAttached */,
45+
ValueHelper<winrt::SystemBackdrop>::BoxedDefaultValue(),
46+
winrt::PropertyChangedCallback(&OnSystemBackdropPropertyChanged));
47+
}
48+
}
49+
50+
void SystemBackdropHostProperties::ClearProperties()
51+
{
52+
s_CornerRadiusProperty = nullptr;
53+
s_SystemBackdropProperty = nullptr;
54+
}
55+
56+
void SystemBackdropHostProperties::OnCornerRadiusPropertyChanged(
57+
winrt::DependencyObject const& sender,
58+
winrt::DependencyPropertyChangedEventArgs const& args)
59+
{
60+
auto owner = sender.as<winrt::SystemBackdropHost>();
61+
winrt::get_self<SystemBackdropHost>(owner)->OnPropertyChanged(args);
62+
}
63+
64+
void SystemBackdropHostProperties::OnSystemBackdropPropertyChanged(
65+
winrt::DependencyObject const& sender,
66+
winrt::DependencyPropertyChangedEventArgs const& args)
67+
{
68+
auto owner = sender.as<winrt::SystemBackdropHost>();
69+
winrt::get_self<SystemBackdropHost>(owner)->OnPropertyChanged(args);
70+
}
71+
72+
void SystemBackdropHostProperties::CornerRadius(winrt::CornerRadius const& value)
73+
{
74+
[[gsl::suppress(con)]]
75+
{
76+
static_cast<SystemBackdropHost*>(this)->SetValue(s_CornerRadiusProperty, ValueHelper<winrt::CornerRadius>::BoxValueIfNecessary(value));
77+
}
78+
}
79+
80+
winrt::CornerRadius SystemBackdropHostProperties::CornerRadius()
81+
{
82+
return ValueHelper<winrt::CornerRadius>::CastOrUnbox(static_cast<SystemBackdropHost*>(this)->GetValue(s_CornerRadiusProperty));
83+
}
84+
85+
void SystemBackdropHostProperties::SystemBackdrop(winrt::SystemBackdrop const& value)
86+
{
87+
[[gsl::suppress(con)]]
88+
{
89+
static_cast<SystemBackdropHost*>(this)->SetValue(s_SystemBackdropProperty, ValueHelper<winrt::SystemBackdrop>::BoxValueIfNecessary(value));
90+
}
91+
}
92+
93+
winrt::SystemBackdrop SystemBackdropHostProperties::SystemBackdrop()
94+
{
95+
return ValueHelper<winrt::SystemBackdrop>::CastOrUnbox(static_cast<SystemBackdropHost*>(this)->GetValue(s_SystemBackdropProperty));
96+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License. See LICENSE in the project root for license information.
3+
4+
// DO NOT EDIT! This file was generated by CustomTasks.DependencyPropertyCodeGen
5+
#pragma once
6+
7+
class SystemBackdropHostProperties
8+
{
9+
public:
10+
SystemBackdropHostProperties();
11+
12+
void CornerRadius(winrt::CornerRadius const& value);
13+
winrt::CornerRadius CornerRadius();
14+
15+
void SystemBackdrop(winrt::SystemBackdrop const& value);
16+
winrt::SystemBackdrop SystemBackdrop();
17+
18+
static winrt::DependencyProperty CornerRadiusProperty() { return s_CornerRadiusProperty; }
19+
static winrt::DependencyProperty SystemBackdropProperty() { return s_SystemBackdropProperty; }
20+
21+
static GlobalDependencyProperty s_CornerRadiusProperty;
22+
static GlobalDependencyProperty s_SystemBackdropProperty;
23+
24+
static void EnsureProperties();
25+
static void ClearProperties();
26+
27+
static void OnCornerRadiusPropertyChanged(
28+
winrt::DependencyObject const& sender,
29+
winrt::DependencyPropertyChangedEventArgs const& args);
30+
31+
static void OnSystemBackdropPropertyChanged(
32+
winrt::DependencyObject const& sender,
33+
winrt::DependencyPropertyChangedEventArgs const& args);
34+
};

0 commit comments

Comments
 (0)