Windows 8 Windows 8中快照视图的解决方案
如何在Win 8应用程序中使用“快照视图”过程 我尝试了很多次使用不同的博客,但都找不到合适的解决方案。Windows 8 Windows 8中快照视图的解决方案,windows-8,snapping,Windows 8,Snapping,如何在Win 8应用程序中使用“快照视图”过程 我尝试了很多次使用不同的博客,但都找不到合适的解决方案。 有人能帮我解决以下问题吗 快照视图的编码是什么 如何实现这一点 我制作了这个应用程序,但被困在这个“快照视图”中 提前感谢。快照视图是Windows的内置功能 只要用户的屏幕分辨率至少为1366 x 768,他们就可以激活快照视图。SnapView非常容易实现。像后退按钮和页面标题这样的默认内容已经实现,但是您也可以将自定义元素添加到列表中 <Objec
有人能帮我解决以下问题吗
提前感谢。快照视图是Windows的内置功能
只要用户的屏幕分辨率至少为1366 x 768,他们就可以激活快照视图。SnapView非常容易实现。像后退按钮和页面标题这样的默认内容已经实现,但是您也可以将自定义元素添加到列表中
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="backButton"
Storyboard.TargetProperty="Style">
<DiscreteObjectKeyFrame KeyTime="0"
Value="{StaticResource SnappedBackButtonStyle}" />
</ObjectAnimationUsingKeyFrames>
这是我找到的解决快照视图问题的最简单答案
<!-- Visual states reflect the application's view state -->
<VisualStateGroup x:Name="ApplicationViewStates">
<VisualState x:Name="FullScreenLandscape" />
<VisualState x:Name="Filled" />
<!-- The entire page respects the narrower 100-pixel margin convention for portrait -->
<VisualState x:Name="FullScreenPortrait">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="backButton"
Storyboard.TargetProperty="Style">
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PortraitBackButtonStyle}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
<!-- The back button and title have different styles when snapped -->
<VisualState x:Name="Snapped">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="backButton"
Storyboard.TargetProperty="Style">
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SnappedBackButtonStyle}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="pageTitle"
Storyboard.TargetProperty="Style">
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SnappedPageHeaderTextStyle}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>