Template10 icon indicating copy to clipboard operation
Template10 copied to clipboard

MasterDetail visualState problem

Open Greywing opened this issue 10 years ago • 4 comments

Hi!

Found bug in MasterDetail example:

  • run App and select item selectitem
  • resize App, select another item and resize again resize
  • try to select another item selectanothermail

Greywing avatar Jan 24 '16 17:01 Greywing

Looks like Narrow needs to un-select the current item, maybe. Hmm. Not really sure. I will have to look at it. I have a Science Fair on Tuesday and I am writing a Kinect app for the school. What I am saying is that I might not be able to look into this until after Tuesday or so. :) Anyone else, @Windows-XAML/contributors?

JerryNixon avatar Jan 25 '16 00:01 JerryNixon

Fixed.

JerryNixon avatar Jan 27 '16 05:01 JerryNixon

This bug is not resolved. The problem is that when you select an item in ListVisualState, you will go to DetailVisualState, but if you then resize your window, you will still be in DetailVisualState.

So if you then resize the window again to go to NarrowVisualState, you're still in DetailVisualState, and nothing will happen if you click items in the list until you press the backbutton to go back to ListVisualState.

I've been trying to find a way to go back to ListVisualState when the adaptivestate triggers, but I've only been coding since Christmas, and my xaml/c# knowledge is limited.

DanTheManSWE avatar Feb 17 '16 06:02 DanTheManSWE

I think I found a solution, I'll issue a Pull Request soon,

DanTheManSWE avatar Feb 17 '16 09:02 DanTheManSWE