Make a flyout permanently visible till "x"-button is clicked - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Windows 8.1, 10, WindowsPhone, Windows UWP
  • Page:
  • 1

TOPIC: Make a flyout permanently visible till "x"-button is clicked

Make a flyout permanently visible till "x"-button is clicked 4 months 2 weeks ago #14023

  • leoX
  • leoX's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
Hello.
So I created a new button in PDFReaderPage.xaml:
<Button x:Name="flyout" Style="{StaticResource AppBarButtonStyle}" Tapped="OnOptionItemTapped">
                    <Image Source="Assets/images/icon_menu.png"/>
                </Button>

And I gave the button a function in PDFReaderPage.xaml.cs:
else if (name.Equals("flyout"))
            {
                Flyout flyout = new Flyout();

                flyout.ShowAt(searchBtn);
            }


I was wondering if it is possible to put another button small "x" in the flyout box. When "x" is clicked the flyout-box should disappear.

Also the flyout-box disappears when I scroll in a PDF-Document. Is it possible to Change it so the flyout-box does not disappear? The only time it should disappear is when the small "x" button is pressed.

Please Log in or Create an account to join the conversation.

Last edit: by leoX.

Make a flyout permanently visible till "x"-button is clicked 4 months 2 weeks ago #14025

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 865
  • Karma: 23
  • Thank you received: 70
Hello,

This is not a library related question, it's related to a Windows UI control.

Flyouts can be closed with a quick light dismiss action, including:
  • Tap outside the flyout
  • Press the Escape keyboard key
  • Press the hardware or software system Back button
  • Press the gamepad B button

So that's why when you scroll it disappears, maybe you need to use a dialog instead.
For the "x" button question check docs.microsoft.com/en-us/windows/uwp/des...-and-flyouts/flyouts
The following user(s) said Thank You: leoX

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum