Microsoft Blend,如果按下按钮,则展开导航栏,如果再次单击则减少它 [英] Microsoft Blend, if button is pressed expand nav bar, if clicked again reduce it
本文介绍了Microsoft Blend,如果按下按钮,则展开导航栏,如果再次单击则减少它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
所以我在wpf中创建一个程序使用混合,需要像Windows 10 xbox应用程序中的侧边栏。我有状态,当我按下汉堡包图标时,它会使用GoToStateAction行为进行一个漂亮的幻灯片转换,但是如何在汉堡包图标处于展开状态时按下它会将菜单缩减回到边态。任何人?
So I am making a program in wpf using blend that required a sidebar like in the windows 10 xbox app. I have the states and when i press the hamburger icon it expands with a nice slide transition using the GoToStateAction behaviour but how do I make it that when the hamburger icon is pressed while it is in the state of expand it reduces the menu back to the side state. Anyone?
推荐答案
您需要通过以下方式替换GoToStateAction
:
you need to replace yourGoToStateAction
by something like:
if ExpandedState = True then
GoToStateAction "Reduce"
ExpandedState = False
else
GoToStateAction "Expand"
ExpandedState = True
end if
我让你处理细节
ExpandedState
必须是全局变量
这篇关于Microsoft Blend,如果按下按钮,则展开导航栏,如果再次单击则减少它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文