导航到屏幕并激活用户组件的状态? [英] navigate to screen and activate state of a user component?

查看:74
本文介绍了导航到屏幕并激活用户组件的状态?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好我有2个屏幕。在screen1上,我有一个用户控件,其中包含一个数据网格。我在我的用户控件中配置了两个状态,显示空白网格或带有一些数据的网格。

因此,从屏幕2,我想单击一个按钮并导航到屏幕1,但显示用户控制处于特定状态。这是可能的还是我在错误的树上咆哮?

我是否需要在screen1中创建两个状态,并且我的用户控件有两个不同的副本,每个都设置了特定的属性?

是的,我是一个有几天经验的素描流新手,所以不要以为我知道的太多了:))  谢谢你能给我的任何帮助。

欢呼

郎安德鲁

Hi There

I have 2 screens. On screen1 I have a user control that contains a datagrid. I configured two states in my user control that shows either a blank grid or a grid with some data.

So from screen 2, I want to click a button and have it navigate to screen 1, but show the user control in a particular state. Is this possible or am I barking up the wrong tree?

Do I need to create a two states in my screen1, and have two different copies of my user control with the specific attributes set in each?

and yes, I'm a sketchflow newbie of several days experience so don't assume I know too much :)   thanks for any help you can give me.

cheers

Andrew

推荐答案

嗨安德鲁,
我一直试图在进入屏幕时突出显示导航项目的状态做类似的事情。我还没有获得很多运气,但我找到的一个解决方案是在您加载要应用状态更改的屏幕时触发的屏幕上添加ActivateState行为。
抱歉道歉,但我现在无法获取我的Skecthflow文件,以了解具体细节。我稍后会把它们附在这篇文章上。

那就说,这只适用于我。在所有情况下我无法让它工作,并且完全不知道为什么。我会尽力让你发布我学到的内容,或者论坛里的其他人也会有一些想法。

最好的问候,

格雷格。
Hi Andrew,

I've been trying to do a similar thing with a state that highlights a navigation item when entering a screen. I haven't had a whole lot of luck as yet but one solution I did find was to add an ActivateState behaviour to that screen that is triggered when you load the screen that you want your state change applied to.

Apologies but I can't get to my Skecthflow files at the moment for the exact specifics of this. I'll append them to this post later.

That said, this works for me only sometimes. I can't get it to work in all cases and am completely baffled as to why. I will try and keep you posted on what I learn or perhaps some other people in the forum will have some ideas.

Best regards,

Greg.


这篇关于导航到屏幕并激活用户组件的状态?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆