Closed rudigrobler closed 12 years ago
You need to parent your flyout in the visual tree if you want this effect. See the test app in an example of this.
-th
Sent from mobile - please excuse tone and brevity
On Aug 23, 2012, at 12:28 AM, rudigrobler notifications@github.com wrote:
Flyout do not re-adjust position if SIP is displayed (and overlapping) the flyout
Recreate:
- Create a app bar button
- On click create a flyout with a textbox inside
- Run app in simulator and turn on touch simulation
- Open appbar and click on button
Flyout is now behind the SIP
— Reply to this email directly or view it on GitHub.
It is parented to the button?
Likely no, the button is just triggering it.
I used the following code:
Flyout f = new Flyout(); f.PlacementTarget = sender as UIElement; f.Placement = PlacementMode.Top; f.Content = new TextBox() { Width = 200 }; f.IsOpen = true;
Where sender is the button inside the AppBar?
Once you click inside the TextBox, the SIP overlap the flyout?
That does not parent the flyout. You need to add the HostPopup as a child element of some visual element (that supports children)
PlacementTarget is used for positioning not parenting.
-th
Sent from mobile - please excuse tone and brevity
On Aug 23, 2012, at 11:24 PM, rudigrobler notifications@github.com wrote:
I used the following code:
Flyout f = new Flyout(); f.PlacementTarget = sender as UIElement; f.Placement = PlacementMode.Top; f.Content = new TextBox() { Width = 200 }; f.IsOpen = true;
Where sender is the button inside the AppBar?
Once you click inside the TextBox, the SIP overlap the flyout?
— Reply to this email directly or view it on GitHub.
Flyout do not re-adjust position if SIP is displayed (and overlapping) the flyout
Recreate:
Flyout is now behind the SIP