Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TeachingTip getting stuck closed #6541

Merged
merged 3 commits into from
Feb 24, 2022

Conversation

StephenLPeters
Copy link
Contributor

@StephenLPeters StephenLPeters commented Jan 4, 2022

It was possible to set a teaching tip's IsOpen property to true while the closing animation is playing. This could cause the teaching tip to get in a state where IsOpen is true but it isn't displayed on screen. To work around this you would need to programmatically close and then reopen the tip. To fix this we can ignore IsOpen property changes while there are active animations.

…void getting into a state where the tip isn't being displaced despite IsOpen being true.
@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Jan 4, 2022
@StephenLPeters StephenLPeters changed the title Fix TeachingTip getting stuck closedIgnore IsOpen property changes while there are active animations to a… Fix TeachingTip getting stuck closed Jan 4, 2022
@StephenLPeters StephenLPeters added area-TeachingTip team-Controls Issue for the Controls team and removed needs-triage Issue needs to be triaged by the area owners labels Jan 4, 2022
@StephenLPeters
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenLPeters
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenLPeters
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenLPeters
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenLPeters
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenLPeters
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenLPeters StephenLPeters merged commit 327128b into main Feb 24, 2022
@StephenLPeters StephenLPeters deleted the user/stpete/TeachinTipRemainsClosed branch February 24, 2022 18:26
@harvinders
Copy link

harvinders commented Apr 1, 2022

@StephenLPeters Can we expect this to land in WinAppSDK 1.1 ?

To work around this you would need to programmatically close and then reopen the tip. To fix this we can ignore IsOpen property changes while there are active animations.

What do you mean by programmatically close? I don't see any other API to close a teaching tip. Or is it a note to self? Also, I don't think as an end user of the API we can figure out that the animation is still active.

@StephenLPeters
Copy link
Contributor Author

@ranjeshj can you weigh in on timeline

@harvinders detecting when you are in this state would be challenging, but if you could you can fix the state by setting is open to false programmatically. With this change that is no longer necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-TeachingTip team-Controls Issue for the Controls team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants