Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I have a similar functionality in my app. When the button is tapped/clicked (in a FlyOut, not in the Charms directly), a publicly accessible Sub (in a Module e.g.) is executed:</p> <pre class="lang-vb prettyprint-override"><code>Public Sub OpenModalBackground(Optional ByVal strProgressText As String = "") pupModalBackground = New Popup pupModalBackground.IsLightDismissEnabled = False pupModalBackground.Width = Window.Current.Bounds.Width pupModalBackground.Height = Window.Current.Bounds.Height Dim foModalBackground As New FlyOuts.ModalBackground foModalBackground.Width = Window.Current.Bounds.Width foModalBackground.Height = Window.Current.Bounds.Height foModalBackground.ProgressText = strProgressText pupModalBackground.Child = foModalBackground pupModalBackground.SetValue(Canvas.LeftProperty, 0) pupModalBackground.SetValue(Canvas.TopProperty, 0) pupModalBackground.IsOpen = True End Sub </code></pre> <p>As you can see a new PopUp is generated, and a "FlyOut" (UserControl) ModalBackground is loaded, which looks like this:</p> <pre class="lang-xml prettyprint-override"><code>&lt;Grid Background="#BF000000"&gt; &lt;StackPanel Orientation="Vertical" VerticalAlignment="Center" HorizontalAlignment="Center"&gt; &lt;ProgressRing IsActive="True" Foreground="White" Width="50" Height="50" HorizontalAlignment="Center"/&gt; &lt;TextBlock FontSize="15" FontWeight="SemiLight" Margin="0,20,0,0" HorizontalAlignment="Center" Text="{Binding ProgressText}"/&gt; &lt;/StackPanel&gt; &lt;/Grid&gt; </code></pre> <p>it's working well for me. As far as I've seen there is a new Control FlyOut for Win8.1, so you might use that one instead of a UserControl.</p> <p>By the way: according to these <a href="http://msdn.microsoft.com/en-us/library/windows/apps/hh770544.aspx" rel="nofollow">Guidelines</a> you should not execute a direct action from an entry point.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload