-
Notifications
You must be signed in to change notification settings - Fork 675
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
fixed the closed button displaying bug #1580
Conversation
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
I think that the Refers to: dev/TabView/TabViewItem.cpp:113 in c003f69. [](commit_id = c003f69, deletion_comment = False) |
Adding a new test to ensure this functionality would be great |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
protected async override void OnNavigatedTo(Windows.UI.Xaml.Navigation.NavigationEventArgs args) | ||
{ | ||
NotCloseableTab.Visibility = Visibility.Collapsed; | ||
await Task.Delay(1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use an override that takes a TimeSpan to make this more readable (so I don't have to go to the docs to see what this does 🙂).
await Task.Delay(1); | |
await Task.Delay(TimeSpan.FromMilliseconds(1)); |
@CipherPol9 do you think you'll be able to incorporate these changes? |
Any change of this PR to be changed and reviewed? There's only a minor change needed in the test code (and not in the fix itself). |
I asked for a product code change, and a new test would be great. @CipherPol9 Do you think you'll be able to address the feedback? If not we should take over this change. @teaP have you taken a look? |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@jevansaks @teaP maybe take another look with my amendment? |
🎉 Handy links: |
Description
Added
UpdateCloseButton()
underTabViewItem::OnApplyTemplate()
Motivation and Context
fixes the issue of the close button showing up on the video tab because the TabViewItem was depending on the onloaded event handler to set the close button visibility but this would fail if the template hasn't been applied yet. Fixes #1416
How Has This Been Tested?
Manually
Screenshots (if appropriate):