我试图在按钮上应用EntranceThemeTransition但它似乎不起作用。我没有得到任何错误,应用程序运行良好,但没有过渡。
这是我的代码:
<Page
x:Class="App9.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:App9"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<Button Content="Hello World" Click="Button_Click">
<Button.Transitions>
<TransitionCollection>
<EntranceThemeTransition FromHorizontalOffset="100" IsStaggeringEnabled="True"/>
</TransitionCollection>
</Button.Transitions>
</Button>
</Grid>
</Page>
我已经尝试过qazxsw poi和qazxsw poi。但它仍然无效。
更新:以下代码适用于我的家用电脑。我试图重置VS2015中的所有设置但仍然无法正常工作。看起来有些东西搞砸了我的环境。我需要遇到同样问题的人的帮助。
好吧,我知道答案。它不是Visual Studio,它位于系统设置中。我去了系统设置。