Move DropShadowPanel sample into shared folder and remove backing page for simplification

This commit is contained in:
michael-hawker 2021-08-11 15:26:54 -07:00
Родитель 5d1c7bf56c
Коммит bb9dc4bd18
9 изменённых файлов: 9 добавлений и 65 удалений

Просмотреть файл

@ -315,10 +315,10 @@
<Content Include="SamplePages\FocusTracker\FocusTracker.png" />
<Content Include="SamplePages\BladeView\BladeView.png" />
<Content Include="SamplePages\Carousel\Carousel.png" />
<Content Include="SamplePages\DropShadowPanel\DropShadowPanel.png" />
<Content Include="SamplePages\Shadows\DropShadowPanel.png" />
<Content Include="SamplePages\Expander\Expander.png" />
<Content Include="SamplePages\DropShadowPanel\Trex.png" />
<Content Include="SamplePages\DropShadowPanel\Unicorn.png" />
<Content Include="SamplePages\Shadows\Trex.png" />
<Content Include="SamplePages\Shadows\Unicorn.png" />
<Content Include="SamplePages\GazeInteraction\GazeInteraction.png" />
<Content Include="SamplePages\GazeTracing\GazeTracing.png" />
<Content Include="SamplePages\GridSplitter\GridSplitter.png" />
@ -397,7 +397,7 @@
<Content Include="SamplePages\ImageCache\ImageCacheXaml.bind" />
<Content Include="SamplePages\Incremental Loading Collection\IncrementalLoadingCollectionCode.bind" />
<Content Include="SamplePages\ImageCache\ImageCacheCode.bind" />
<Content Include="SamplePages\DropShadowPanel\DropShadowPanelXaml.bind" />
<Content Include="SamplePages\Shadows\DropShadowPanelXaml.bind" />
<Content Include="SamplePages\Object Storage\ObjectStorageCode.bind" />
<Content Include="SamplePages\BackgroundTaskHelper\BackgroundTaskHelperCode.bind" />
<Content Include="SamplePages\ListDetailsView\ListDetailsView.bind" />
@ -809,9 +809,6 @@
<Compile Include="SamplePages\DispatcherQueueHelper\DispatcherQueueHelperPage.xaml.cs">
<DependentUpon>DispatcherQueueHelperPage.xaml</DependentUpon>
</Compile>
<Compile Include="SamplePages\DropShadowPanel\DropShadowPanelPage.xaml.cs">
<DependentUpon>DropShadowPanelPage.xaml</DependentUpon>
</Compile>
<Compile Include="SamplePages\Expander\ExpanderPage.xaml.cs">
<DependentUpon>ExpanderPage.xaml</DependentUpon>
</Compile>
@ -1269,10 +1266,6 @@
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="SamplePages\DropShadowPanel\DropShadowPanelPage.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="SamplePages\GridSplitter\GridSplitterPage.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>

Просмотреть файл

@ -1,26 +0,0 @@
<Page x:Class="Microsoft.Toolkit.Uwp.SampleApp.SamplePages.DropShadowPanelPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="using:Microsoft.Toolkit.Uwp.UI.Controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Page.Resources>
<Style x:Key="TitleText"
TargetType="TextBlock">
<Setter Property="Margin" Value="5,20,0,5" />
<Setter Property="FontSize" Value="16" />
<Setter Property="Foreground" Value="{ThemeResource Brush-Grey-03}" />
<Setter Property="HorizontalAlignment" Value="Left" />
</Style>
<Style x:Key="DividingBorder"
TargetType="Border">
<Setter Property="BorderThickness" Value="0,0,0,1" />
<Setter Property="BorderBrush" Value="Black" />
<Setter Property="Margin" Value="0,0,0,20" />
</Style>
</Page.Resources>
<Grid x:Name="XamlRoot"/>
</Page>

Просмотреть файл

@ -1,22 +0,0 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using Windows.UI.Xaml.Controls;
namespace Microsoft.Toolkit.Uwp.SampleApp.SamplePages
{
/// <summary>
/// A page that shows how to use the DropShadowPanel control.
/// </summary>
public sealed partial class DropShadowPanelPage : Page
{
/// <summary>
/// Initializes a new instance of the <see cref="DropShadowPanelPage"/> class.
/// </summary>
public DropShadowPanelPage()
{
InitializeComponent();
}
}
}

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 2.1 KiB

После

Ширина:  |  Высота:  |  Размер: 2.1 KiB

Просмотреть файл

@ -88,7 +88,7 @@
VerticalAlignment="Center"
HorizontalAlignment="Center"
IsMasked="@[Is Masked]">
<Image Width="200" Source="/SamplePages/DropShadowPanel/Unicorn.png" Stretch="Uniform" />
<Image Width="200" Source="/SamplePages/Shadows/Unicorn.png" Stretch="Uniform" />
</controls:DropShadowPanel>
<controls:DropShadowPanel BlurRadius="@[BlurRadius]"
ShadowOpacity="@[Opacity]"
@ -98,7 +98,7 @@
VerticalAlignment="Center"
HorizontalAlignment="Center"
IsMasked="@[Is Masked]">
<Image Width="200" Source="/SamplePages/DropShadowPanel/Trex.png" Stretch="Uniform" />
<Image Width="200" Source="/SamplePages/Shadows/Trex.png" Stretch="Uniform" />
</controls:DropShadowPanel>
</StackPanel>
</StackPanel>

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 5.6 KiB

После

Ширина:  |  Высота:  |  Размер: 5.6 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 6.1 KiB

После

Ширина:  |  Высота:  |  Размер: 6.1 KiB

Просмотреть файл

@ -49,6 +49,7 @@
</controls:CaseCollection>
</controls:SwitchPresenter>
<controls:ConstrainedBox x:Key="ConstrainedBoxControl" />
<controls:DropShadowPanel x:Key="DropShadowPanel" />
</Page.Resources>
<Grid>

Просмотреть файл

@ -185,13 +185,11 @@
},
{
"Name": "DropShadowPanel",
"Type": "DropShadowPanelPage",
"Subcategory": "Media",
"About": "DropShadowPanel contol allows the creation of a DropShadow for any Xaml FrameworkElement in markup.",
"CodeUrl": "https://github.com/CommunityToolkit/WindowsCommunityToolkit/tree/main/Microsoft.Toolkit.Uwp.UI.Controls.Core/DropShadowPanel",
"XamlCodeFile": "DropShadowPanelXaml.bind",
"Icon": "/SamplePages/DropShadowPanel/DropShadowPanel.png",
"BadgeUpdateVersionRequired": "Anniversary Update required",
"XamlCodeFile": "/SamplePages/Shadows/DropShadowPanelXaml.bind",
"Icon": "/SamplePages/Shadows/DropShadowPanel.png",
"DocumentationUrl": "https://raw.githubusercontent.com/MicrosoftDocs/WindowsCommunityToolkitDocs/master/docs/controls/DropShadowPanel.md"
},
{