Skip to content

Commit 8bc1a25

Browse files
author
Rashmi Thakur
committed
Rename SystemBackdropHost to SystemBackdropElement
1 parent df7d8c9 commit 8bc1a25

10 files changed

+47
-59
lines changed

WinUIGallery/ContentIncludes.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,9 @@
239239
<Content Include="Samples\SampleCode\SystemBackdrops\SystemBackdropsSampleBackdropTypes_xaml.txt" />
240240
<Content Include="Samples\SampleCode\SystemBackdrops\SystemBackdropsSampleMicaController.txt" />
241241
<Content Include="Samples\SampleCode\SystemBackdrops\SystemBackdropsSampleDesktopAcrylicController.txt" />
242-
<Content Include="Samples\SampleCode\SystemBackdropHost\SystemBackdropHostAcrylic_xaml.txt" />
243-
<Content Include="Samples\SampleCode\SystemBackdropHost\SystemBackdropHostMica_xaml.txt" />
244-
<Content Include="Samples\SampleCode\SystemBackdropHost\SystemBackdropHostMicaAlt_xaml.txt" />
242+
<Content Include="Samples\SampleCode\SystemBackdropElement\SystemBackdropElementAcrylic_xaml.txt" />
243+
<Content Include="Samples\SampleCode\SystemBackdropElement\SystemBackdropElementMica_xaml.txt" />
244+
<Content Include="Samples\SampleCode\SystemBackdropElement\SystemBackdropElementMicaAlt_xaml.txt" />
245245
<Content Include="Samples\SampleCode\TabView\TabViewBasicSample_cs.txt" />
246246
<Content Include="Samples\SampleCode\TabView\TabViewKeyboardAcceleratorSample_cs.txt" />
247247
<Content Include="Samples\SampleCode\TeachingTip\TeachingTipSample2_xaml.txt" />

WinUIGallery/Samples/ControlPages/SystemBackdropHostPage.xaml renamed to WinUIGallery/Samples/ControlPages/SystemBackdropElementPage.xaml

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,20 @@
1-
<!--
2-
//*********************************************************
3-
//
4-
// Copyright (c) Microsoft. All rights reserved.
5-
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
6-
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
7-
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
8-
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
9-
//
10-
//*********************************************************
11-
-->
12-
<Page x:Class="WinUIGallery.ControlPages.SystemBackdropHostPage"
1+
<!-- Copyright (c) Microsoft Corporation. -->
2+
<Page x:Class="WinUIGallery.ControlPages.SystemBackdropElementPage"
133
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
144
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
155
xmlns:controls="using:WinUIGallery.Controls"
166
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
177
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
188
mc:Ignorable="d">
199
<StackPanel>
20-
<controls:ControlExample x:Name="Example1" HeaderText="SystemBackdropHost Sample">
10+
<controls:ControlExample x:Name="Example1" HeaderText="SystemBackdropElement Sample">
2111
<controls:ControlExample.Example>
2212
<Grid Width="300" Height="200" HorizontalAlignment="Center">
23-
<SystemBackdropHost x:Name="DynamicBackdropHost" CornerRadius="8">
24-
<SystemBackdropHost.SystemBackdrop>
13+
<SystemBackdropElement x:Name="DynamicBackdropHost" CornerRadius="8">
14+
<SystemBackdropElement.SystemBackdrop>
2515
<DesktopAcrylicBackdrop />
26-
</SystemBackdropHost.SystemBackdrop>
27-
</SystemBackdropHost>
16+
</SystemBackdropElement.SystemBackdrop>
17+
</SystemBackdropElement>
2818
<Button HorizontalAlignment="Center" VerticalAlignment="Center" Content="Click Me" />
2919
</Grid>
3020
</controls:ControlExample.Example>
@@ -39,7 +29,7 @@
3929
</StackPanel>
4030
</controls:ControlExample.Options>
4131
<controls:ControlExample.XamlSource>
42-
SystemBackdropHost/SystemBackdropHostAcrylic_xaml.txt
32+
SystemBackdropElement/SystemBackdropElementAcrylic_xaml.txt
4333
</controls:ControlExample.XamlSource>
4434
<controls:ControlExample.Substitutions>
4535
<controls:ControlExampleSubstitution Key="CornerRadius" Value="{x:Bind CornerRadiusSlider.Value, Mode=OneWay}" />

WinUIGallery/Samples/ControlPages/SystemBackdropHostPage.xaml.cs renamed to WinUIGallery/Samples/ControlPages/SystemBackdropElementPage.xaml.cs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@
66
using Microsoft.UI.Xaml.Media;
77
using Microsoft.UI.Xaml.Controls.Primitives;
88
using Microsoft.UI.Composition.SystemBackdrops;
9+
910
namespace WinUIGallery.ControlPages;
1011

11-
public sealed partial class SystemBackdropHostPage : Page
12+
public sealed partial class SystemBackdropElementPage : Page
1213
{
13-
public SystemBackdropHostPage()
14+
public SystemBackdropElementPage()
1415
{
1516
this.InitializeComponent();
1617
}
@@ -30,28 +31,25 @@ private void BackdropTypeComboBox_SelectionChanged(object sender, SelectionChang
3031
if (backdropType == "Acrylic")
3132
{
3233
DynamicBackdropHost.SystemBackdrop = new DesktopAcrylicBackdrop();
33-
// Update the sample code source
3434
if (Example1 != null)
3535
{
36-
Example1.XamlSource = "SystemBackdropHost/SystemBackdropHostAcrylic_xaml.txt";
36+
Example1.XamlSource = "SystemBackdropElement/SystemBackdropElementAcrylic_xaml.txt";
3737
}
3838
}
3939
else if (backdropType == "Mica")
4040
{
4141
DynamicBackdropHost.SystemBackdrop = new MicaBackdrop { Kind = MicaKind.Base };
42-
// Update the sample code source
4342
if (Example1 != null)
4443
{
45-
Example1.XamlSource = "SystemBackdropHost/SystemBackdropHostMica_xaml.txt";
44+
Example1.XamlSource = "SystemBackdropElement/SystemBackdropElementMica_xaml.txt";
4645
}
4746
}
4847
else if (backdropType == "MicaAlt")
4948
{
5049
DynamicBackdropHost.SystemBackdrop = new MicaBackdrop { Kind = MicaKind.BaseAlt };
51-
// Update the sample code source
5250
if (Example1 != null)
5351
{
54-
Example1.XamlSource = "SystemBackdropHost/SystemBackdropHostMicaAlt_xaml.txt";
52+
Example1.XamlSource = "SystemBackdropElement/SystemBackdropElementMicaAlt_xaml.txt";
5553
}
5654
}
5755
}

WinUIGallery/Samples/Data/ControlInfoData.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2660,8 +2660,8 @@
26602660
]
26612661
},
26622662
{
2663-
"UniqueId": "SystemBackdropHost",
2664-
"Title": "SystemBackdropHost",
2663+
"UniqueId": "SystemBackdropElement",
2664+
"Title": "SystemBackdropElement",
26652665
"BaseClasses": [
26662666
"Object",
26672667
"DependencyObject",
@@ -2671,14 +2671,14 @@
26712671
"ContentControl"
26722672
],
26732673
"ApiNamespace": "Microsoft.UI.Xaml.Controls",
2674-
"Subtitle": "A control to host system backdrop materials.",
2674+
"Subtitle": "An element to host system backdrop materials.",
26752675
"ImagePath": "ms-appx:///Assets/ControlImages/Acrylic.png",
2676-
"Description": "SystemBackdropHost lets you apply system backdrop materials (Mica and Acrylic) to a specific area inside the UI tree, extending these materials beyond the window background for more flexible and immersive designs.",
2676+
"Description": "SystemBackdropElement lets you apply system backdrop materials (Mica and Acrylic) to a specific area inside the UI tree, extending these materials beyond the window background for more flexible and immersive designs",
26772677
"IsNew": true,
26782678
"Docs": [
26792679
{
2680-
"Title": "SystemBackdropHost - API",
2681-
"Uri": "https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.systembackdrophost"
2680+
"Title": "SystemBackdropElement - API",
2681+
"Uri": "https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.systembackdropelement"
26822682
}
26832683
]
26842684
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<Grid Width="300" Height="200">
2+
<SystemBackdropElement CornerRadius="$(CornerRadius)">
3+
<SystemBackdropElement.SystemBackdrop>
4+
<DesktopAcrylicBackdrop />
5+
</SystemBackdropElement.SystemBackdrop>
6+
</SystemBackdropElement>
7+
<Button Content="Button" HorizontalAlignment="Center" VerticalAlignment="Center"/>
8+
</Grid>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<Grid Width="300" Height="200">
2+
<SystemBackdropElement CornerRadius="$(CornerRadius)">
3+
<SystemBackdropElement.SystemBackdrop>
4+
<MicaBackdrop Kind="BaseAlt" />
5+
</SystemBackdropElement.SystemBackdrop>
6+
</SystemBackdropElement>
7+
<Button Content="Button" HorizontalAlignment="Center" VerticalAlignment="Center"/>
8+
</Grid>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<Grid Width="300" Height="200">
2+
<SystemBackdropElement CornerRadius="$(CornerRadius)">
3+
<SystemBackdropElement.SystemBackdrop>
4+
<MicaBackdrop Kind="Base" />
5+
</SystemBackdropElement.SystemBackdrop>
6+
</SystemBackdropElement>
7+
<Button Content="Button" HorizontalAlignment="Center" VerticalAlignment="Center"/>
8+
</Grid>

WinUIGallery/Samples/SampleCode/SystemBackdropHost/SystemBackdropHostAcrylic_xaml.txt

Lines changed: 0 additions & 8 deletions
This file was deleted.

WinUIGallery/Samples/SampleCode/SystemBackdropHost/SystemBackdropHostMicaAlt_xaml.txt

Lines changed: 0 additions & 8 deletions
This file was deleted.

WinUIGallery/Samples/SampleCode/SystemBackdropHost/SystemBackdropHostMica_xaml.txt

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)