-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
MasterDetailsView stays in the Master ViewState after resizing #906
Comments
Can you provide a repo? This is not reproducible with the sample app |
Hi just created a repo to reproduce the issue. Make sure not to be attached with a debugger when launching the app. Thanks. |
Thanks @JulienTheron. I'll look into it |
I found this problem too. I have writed a statetrigger to resolve it. I'll pull a request about this. |
@JulienTheron or @yanxiaodi can you confirm that the changes above fix this issue for you? |
Hi, Still not fixed with the 1.4.0-dev00138 package. I think the issue may come from the fact that there is a mismatch between the content of the VisualStateChangedEventArgs and stateGroup.CurrentState. Did you try passing VisualStateChangedEventArgs.NewState to the UpdateViewState method? Thanks. |
@skendrot I didn't use this control to implement my purpose. Because I need to control the state by the content of the detail panel, not only depends on the width of the window. When the content of the detail area is empty or not empty, the control's performance should be different. So I write a new state trigger to finish it. |
@yanxiaodi Can you give more details? What do you mean by "the controls performance should be different"? Does the ViewState property not meet your needs for controlling which state the control is in? |
@yanxiaodi How about this? https://github.com/h82258652/UwpMasterDetailViewSample |
@JulienTheron I still cannot reproduce the issue. I am doing the following:
|
I mean that: In different width modes, whether to display the Master view or the Detail view depends not only on the window width, but also on whether the Detail view is Blank. |
@h82258652 Good job. Thanks. |
@skendrot I just rerun the app provided in the MasterDetailsView_Issue906 repo with the latest toolkit package (preview) and the issue is still there. Did you run it without being attached to the debugger? Thanks. |
@yanxiaodi I'm very confused. The MasterDetailsPanel works exactly like the Mail app. When there is a narrow width and an item is selected, it should show only the details section. When there is a narrow width and no item is selected, it should show the master section. When there is a wide width it should show both sections if something is selected or not. This is dependent on selection of the master section, not about the detail being "Blank" |
@h82258652 while the control is "simpler" the overall implementation is much more complex. |
@skendrot Yes, I agree with you. But I don't think the MasterView contains a ListView is a good implement. Maybe I want a PullToRefreshListView? 😁 |
@h82258652 Please log a new issue and let's keep this thread to the issue that @JulienTheron submitted |
@JulienTheron Yes, without debugging I cannot reproduce. I cannot reproduce with the UWP Toolkit sample app or in a new standalone app. |
@skendrot I cannot reproduce it either with the sample app, must have to do with the way the UI is organized. Did you try with the repo I provided? My teammate is able to reproduce it as well. |
@JulienTheron I did not download your repo, just copied the xaml and code behind to a new project I created |
@skendrot Sorry! I made a mistake. I must apologize to you. |
Thanks. And that issue was addressed in #891, correct? |
@skendrot Yes. Thanks a lot! |
So we can close this issue? |
Please don't close it. |
Unless someone else can reproduce the issue, I do not see a need to keep this open |
Hi,
I've discovered an issue with the MasterDetailsView control.
When the control is displayed on a window whose width is less than 720px, and then I expand the width of the window, the ViewState of the MasterDetailsView doesn't change. The ViewStateChanged event isn't raised, and the BackButton isn't shown (the MasterDetailsView is on the MainPage). If an item is selected in this state, the event is raised, and the BackButton is shown.
Note: This does not happen when a debugger is attached.
Thanks.
The text was updated successfully, but these errors were encountered: