Skip to content

Commit bb9dc4b

Browse files
Move DropShadowPanel sample into shared folder and remove backing page for simplification
1 parent 5d1c7bf commit bb9dc4b

File tree

9 files changed

+9
-65
lines changed

9 files changed

+9
-65
lines changed

Microsoft.Toolkit.Uwp.SampleApp/Microsoft.Toolkit.Uwp.SampleApp.csproj

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -315,10 +315,10 @@
315315
<Content Include="SamplePages\FocusTracker\FocusTracker.png" />
316316
<Content Include="SamplePages\BladeView\BladeView.png" />
317317
<Content Include="SamplePages\Carousel\Carousel.png" />
318-
<Content Include="SamplePages\DropShadowPanel\DropShadowPanel.png" />
318+
<Content Include="SamplePages\Shadows\DropShadowPanel.png" />
319319
<Content Include="SamplePages\Expander\Expander.png" />
320-
<Content Include="SamplePages\DropShadowPanel\Trex.png" />
321-
<Content Include="SamplePages\DropShadowPanel\Unicorn.png" />
320+
<Content Include="SamplePages\Shadows\Trex.png" />
321+
<Content Include="SamplePages\Shadows\Unicorn.png" />
322322
<Content Include="SamplePages\GazeInteraction\GazeInteraction.png" />
323323
<Content Include="SamplePages\GazeTracing\GazeTracing.png" />
324324
<Content Include="SamplePages\GridSplitter\GridSplitter.png" />
@@ -397,7 +397,7 @@
397397
<Content Include="SamplePages\ImageCache\ImageCacheXaml.bind" />
398398
<Content Include="SamplePages\Incremental Loading Collection\IncrementalLoadingCollectionCode.bind" />
399399
<Content Include="SamplePages\ImageCache\ImageCacheCode.bind" />
400-
<Content Include="SamplePages\DropShadowPanel\DropShadowPanelXaml.bind" />
400+
<Content Include="SamplePages\Shadows\DropShadowPanelXaml.bind" />
401401
<Content Include="SamplePages\Object Storage\ObjectStorageCode.bind" />
402402
<Content Include="SamplePages\BackgroundTaskHelper\BackgroundTaskHelperCode.bind" />
403403
<Content Include="SamplePages\ListDetailsView\ListDetailsView.bind" />
@@ -809,9 +809,6 @@
809809
<Compile Include="SamplePages\DispatcherQueueHelper\DispatcherQueueHelperPage.xaml.cs">
810810
<DependentUpon>DispatcherQueueHelperPage.xaml</DependentUpon>
811811
</Compile>
812-
<Compile Include="SamplePages\DropShadowPanel\DropShadowPanelPage.xaml.cs">
813-
<DependentUpon>DropShadowPanelPage.xaml</DependentUpon>
814-
</Compile>
815812
<Compile Include="SamplePages\Expander\ExpanderPage.xaml.cs">
816813
<DependentUpon>ExpanderPage.xaml</DependentUpon>
817814
</Compile>
@@ -1269,10 +1266,6 @@
12691266
<Generator>MSBuild:Compile</Generator>
12701267
<SubType>Designer</SubType>
12711268
</Page>
1272-
<Page Include="SamplePages\DropShadowPanel\DropShadowPanelPage.xaml">
1273-
<SubType>Designer</SubType>
1274-
<Generator>MSBuild:Compile</Generator>
1275-
</Page>
12761269
<Page Include="SamplePages\GridSplitter\GridSplitterPage.xaml">
12771270
<SubType>Designer</SubType>
12781271
<Generator>MSBuild:Compile</Generator>

Microsoft.Toolkit.Uwp.SampleApp/SamplePages/DropShadowPanel/DropShadowPanelPage.xaml

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

Microsoft.Toolkit.Uwp.SampleApp/SamplePages/DropShadowPanel/DropShadowPanelPage.xaml.cs

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

Microsoft.Toolkit.Uwp.SampleApp/SamplePages/DropShadowPanel/DropShadowPanelXaml.bind renamed to Microsoft.Toolkit.Uwp.SampleApp/SamplePages/Shadows/DropShadowPanelXaml.bind

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
VerticalAlignment="Center"
8989
HorizontalAlignment="Center"
9090
IsMasked="@[Is Masked]">
91-
<Image Width="200" Source="/SamplePages/DropShadowPanel/Unicorn.png" Stretch="Uniform" />
91+
<Image Width="200" Source="/SamplePages/Shadows/Unicorn.png" Stretch="Uniform" />
9292
</controls:DropShadowPanel>
9393
<controls:DropShadowPanel BlurRadius="@[BlurRadius]"
9494
ShadowOpacity="@[Opacity]"
@@ -98,7 +98,7 @@
9898
VerticalAlignment="Center"
9999
HorizontalAlignment="Center"
100100
IsMasked="@[Is Masked]">
101-
<Image Width="200" Source="/SamplePages/DropShadowPanel/Trex.png" Stretch="Uniform" />
101+
<Image Width="200" Source="/SamplePages/Shadows/Trex.png" Stretch="Uniform" />
102102
</controls:DropShadowPanel>
103103
</StackPanel>
104104
</StackPanel>

Microsoft.Toolkit.Uwp.SampleApp/SamplePages/XamlOnlyPage.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
</controls:CaseCollection>
5050
</controls:SwitchPresenter>
5151
<controls:ConstrainedBox x:Key="ConstrainedBoxControl" />
52+
<controls:DropShadowPanel x:Key="DropShadowPanel" />
5253
</Page.Resources>
5354

5455
<Grid>

Microsoft.Toolkit.Uwp.SampleApp/SamplePages/samples.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,13 +185,11 @@
185185
},
186186
{
187187
"Name": "DropShadowPanel",
188-
"Type": "DropShadowPanelPage",
189188
"Subcategory": "Media",
190189
"About": "DropShadowPanel contol allows the creation of a DropShadow for any Xaml FrameworkElement in markup.",
191190
"CodeUrl": "https://github.com/CommunityToolkit/WindowsCommunityToolkit/tree/main/Microsoft.Toolkit.Uwp.UI.Controls.Core/DropShadowPanel",
192-
"XamlCodeFile": "DropShadowPanelXaml.bind",
193-
"Icon": "/SamplePages/DropShadowPanel/DropShadowPanel.png",
194-
"BadgeUpdateVersionRequired": "Anniversary Update required",
191+
"XamlCodeFile": "/SamplePages/Shadows/DropShadowPanelXaml.bind",
192+
"Icon": "/SamplePages/Shadows/DropShadowPanel.png",
195193
"DocumentationUrl": "https://raw.githubusercontent.com/MicrosoftDocs/WindowsCommunityToolkitDocs/master/docs/controls/DropShadowPanel.md"
196194
},
197195
{

0 commit comments

Comments
 (0)