Merged PR 248033: Merge pfelts/VeniceEventFixes to future
Added new samples for the Creators Update.
This commit is contained in:
Родитель
8facb799e3
Коммит
ba688a6517
|
@ -18,6 +18,7 @@ using System.Numerics;
|
|||
using Windows.Foundation;
|
||||
using Windows.UI;
|
||||
using Windows.UI.Composition;
|
||||
using Windows.UI.Popups;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
using Windows.UI.Xaml.Hosting;
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<FileAlignment>512</FileAlignment>
|
||||
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<PackageCertificateKeyFile>CompositionSampleGallery_TemporaryKey.pfx</PackageCertificateKeyFile>
|
||||
<TargetPlatformVersion>10.0.14393.0</TargetPlatformVersion>
|
||||
<TargetPlatformVersion>10.0.15021.0</TargetPlatformVersion>
|
||||
<TargetPlatformMinVersion>10.0.10586.0</TargetPlatformMinVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildThisFileDirectory)\..\SamplesCommon\SamplesCommon\CommonBuild.props" />
|
||||
|
@ -142,11 +142,11 @@
|
|||
<Compile Include="Samples\SDK 14393\NineGridResizing\NineGridResizing.xaml.cs" Condition="$(TargetPlatformBuild) >10586">
|
||||
<DependentUpon>NineGridResizing.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Samples\SDK 14393\NineGridResizing\NineGridScenarios\BorderNineGridScenario.cs" />
|
||||
<Compile Include="Samples\SDK 14393\NineGridResizing\NineGridScenarios\ColorNineGridScenario.cs" />
|
||||
<Compile Include="Samples\SDK 14393\NineGridResizing\NineGridScenarios\EffectNineGridScenario.cs" />
|
||||
<Compile Include="Samples\SDK 14393\NineGridResizing\NineGridScenarios\MaskNineGridScenario.cs" />
|
||||
<Compile Include="Samples\SDK 14393\NineGridResizing\NineGridScenarios\SurfaceNineGridScenario.cs" />
|
||||
<Compile Include="Samples\SDK 14393\NineGridResizing\NineGridScenarios\BorderNineGridScenario.cs" Condition="$(TargetPlatformBuild) >10586" />
|
||||
<Compile Include="Samples\SDK 14393\NineGridResizing\NineGridScenarios\ColorNineGridScenario.cs" Condition="$(TargetPlatformBuild) >10586" />
|
||||
<Compile Include="Samples\SDK 14393\NineGridResizing\NineGridScenarios\EffectNineGridScenario.cs" Condition="$(TargetPlatformBuild) >10586" />
|
||||
<Compile Include="Samples\SDK 14393\NineGridResizing\NineGridScenarios\MaskNineGridScenario.cs" Condition="$(TargetPlatformBuild) >10586" />
|
||||
<Compile Include="Samples\SDK 14393\NineGridResizing\NineGridScenarios\SurfaceNineGridScenario.cs" Condition="$(TargetPlatformBuild) >10586" />
|
||||
<Compile Include="Samples\SDK 14393\PullToAnimate\PullToAnimate.cs" Condition="$(TargetPlatformBuild) >10586" />
|
||||
<Compile Include="Samples\SDK 14393\ShadowsAdvanced\ShadowsAdvanced.cs" Condition="$(TargetPlatformBuild) >10586" />
|
||||
<Compile Include="Samples\SDK 14393\ShadowInterop\ShadowInterop.cs" Condition="$(TargetPlatformBuild) >10586" />
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
//
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
// This code is licensed under the MIT License (MIT).
|
||||
// THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
||||
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
//
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
// This code is licensed under the MIT License (MIT).
|
||||
// THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
||||
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
||||
|
|
|
@ -1,4 +1,18 @@
|
|||
using System;
|
||||
//*********************************************************
|
||||
//
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
// This code is licensed under the MIT License (MIT).
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
||||
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
||||
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
|
||||
// THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
//*********************************************************
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
|
|
|
@ -1,4 +1,18 @@
|
|||
using System;
|
||||
//*********************************************************
|
||||
//
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
// This code is licensed under the MIT License (MIT).
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
||||
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
||||
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
|
||||
// THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
//*********************************************************
|
||||
|
||||
using System;
|
||||
using Windows.UI.Composition;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
using Windows.UI.Xaml.Hosting;
|
||||
|
@ -27,6 +41,8 @@ namespace CompositionSampleGallery
|
|||
topBorderOffsetAnimation.InsertKeyFrame(1, 0);
|
||||
|
||||
ElementCompositionPreview.SetIsTranslationEnabled(TopBorder, true);
|
||||
// Call GetElementVisual() to work around a bug in Insider Build 15025
|
||||
ElementCompositionPreview.GetElementVisual(TopBorder);
|
||||
ElementCompositionPreview.SetImplicitShowAnimation(TopBorder, topBorderOffsetAnimation);
|
||||
|
||||
// Add an opacity and translation animation that will play when this element is shown
|
||||
|
@ -50,6 +66,7 @@ namespace CompositionSampleGallery
|
|||
mainContentShowAnimations.Add(mainContentOpacityAnimation);
|
||||
|
||||
ElementCompositionPreview.SetIsTranslationEnabled(MainContent, true);
|
||||
ElementCompositionPreview.GetElementVisual(MainContent);
|
||||
ElementCompositionPreview.SetImplicitShowAnimation(MainContent, mainContentShowAnimations);
|
||||
|
||||
// Add a translation animation that will play when this element exits the scene
|
||||
|
@ -68,6 +85,7 @@ namespace CompositionSampleGallery
|
|||
topBorderExitAnimation.Duration = TimeSpan.FromSeconds(0.4);
|
||||
|
||||
ElementCompositionPreview.SetIsTranslationEnabled(TopBorder, true);
|
||||
ElementCompositionPreview.GetElementVisual(TopBorder);
|
||||
ElementCompositionPreview.SetImplicitHideAnimation(TopBorder, topBorderExitAnimation);
|
||||
|
||||
// Add an opacity animation that will play when the page exits the scene
|
||||
|
@ -78,6 +96,7 @@ namespace CompositionSampleGallery
|
|||
|
||||
// Set Z index to force this page to the top during the hide animation
|
||||
Canvas.SetZIndex(this, 1);
|
||||
ElementCompositionPreview.GetElementVisual(this);
|
||||
ElementCompositionPreview.SetImplicitHideAnimation(this, fadeOut);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,18 @@
|
|||
using System;
|
||||
//*********************************************************
|
||||
//
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
// This code is licensed under the MIT License (MIT).
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
||||
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
||||
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
|
||||
// THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
//*********************************************************
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Windows.UI.Composition;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
|
@ -34,6 +48,8 @@ namespace CompositionSampleGallery
|
|||
fadeInAnimation.InsertKeyFrame(0, 0);
|
||||
fadeInAnimation.InsertKeyFrame(1, 1);
|
||||
|
||||
// Call GetElementVisual() to work around a bug in Insider Build 15025
|
||||
ElementCompositionPreview.GetElementVisual(this);
|
||||
ElementCompositionPreview.SetImplicitShowAnimation(this, fadeInAnimation);
|
||||
|
||||
// Set a fade out animation when this page exits the scene
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
//
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
// This code is licensed under the MIT License (MIT).
|
||||
// THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
||||
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
//
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
// This code is licensed under the MIT License (MIT).
|
||||
// THE SOFTWARE IS PROVIDED <EFBFBD>AS IS<49>, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
||||
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
||||
|
@ -80,10 +80,10 @@ namespace CompositionSampleGallery
|
|||
static SampleDefinition[] definitions =
|
||||
{
|
||||
#if SDKVERSION_INSIDER
|
||||
new SampleDefinition(BorderPlayground.StaticSampleName, typeof(BorderPlayground), SampleType.Reference, SampleCategory.Effects),
|
||||
new SampleDefinition(CompCapabilities.StaticSampleName, typeof(CompCapabilities), SampleType.Reference, SampleCategory.Effects),
|
||||
new SampleDefinition(TransparentWindow.StaticSampleName, typeof(TransparentWindow), SampleType.EndToEnd, SampleCategory.Effects),
|
||||
new SampleDefinition(NavigationFlow.StaticSampleName, typeof(NavigationFlow), SampleType.EndToEnd, SampleCategory.Transitions),
|
||||
new SampleDefinition(BorderPlayground.StaticSampleName, typeof(BorderPlayground), SampleType.Reference, SampleCategory.Effects, false, true),
|
||||
new SampleDefinition(CompCapabilities.StaticSampleName, typeof(CompCapabilities), SampleType.Reference, SampleCategory.Effects, false, false),
|
||||
new SampleDefinition(TransparentWindow.StaticSampleName, typeof(TransparentWindow), SampleType.EndToEnd, SampleCategory.Effects, true, true),
|
||||
new SampleDefinition(NavigationFlow.StaticSampleName, typeof(NavigationFlow), SampleType.EndToEnd, SampleCategory.Transitions, false, false),
|
||||
#endif
|
||||
|
||||
#if SDKVERSION_14393
|
||||
|
|
Загрузка…
Ссылка в новой задаче