VisualStateManager和TabControl [英] VisualStateManager and the TabControl
本文介绍了VisualStateManager和TabControl的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Sketchflow应用程序中遇到了一些状态问题。我希望能够打开或关闭标签(在标签控件中),取决于第一个标签项上组合框的选定值。
我尝试创建两个不同的状态(一个对于组合中的每个项目)但是如何切换到这些状态取决于何时选择ComboBoxItem?
Hi,
I'm having some trouble with States in my sketchflow app. I want to be able to turn tabs (in a tab control) on or off bepending on the selected value of a combo box on the first tab item.
I've tried creating two different states (one for each item in the combo) but how do I switch to these states depending on when ComboBoxItem is selected?
推荐答案
您可以使用以ComboBoxItem为目标的GoToStateAction和要听的事件将是GotFocus。
You could use the GoToStateAction that targets the ComboBoxItem and the event to listen for would be GotFocus.
这篇关于VisualStateManager和TabControl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文