Skip to content

XAML Behavior vs. EventTriggerBehavior Action #290

Answered by michael-hawker
limeniye asked this question in Q&A
Discussion options

You must be logged in to vote

@limeniye your behavior setup doesn't make sense, I believe that's why you're having an issue. You'd probably get more info if you turned on mixed debugging, maybe?

It looks like you want to trigger an Action in response to the EventTriggerBehavior, so when tapped you open a flyout. For that you don't write a behavior, you use IAction from the XAML Behaviors contracts. That's what allows EventTriggerBehavior to call things in response.

Adding another behavior within there makes no sense. So, what's happening is your behavior is getting initialized right away and trying to open the flyout on load, which I assume is causing some issue within the platform code due to the timing of trying to …

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@michael-hawker
Comment options

Answer selected by limeniye
@limeniye
Comment options

@michael-hawker
Comment options

@limeniye
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants