locked
How to implement a customized dialog

    Question

  • Hi all,

    Currently I am implementing an app which may need fetch a document password from user. To do that, the app needs to popup a input dialog for user to input password when opening the document. Does any one know how should I do that? Note: the user only need to input a password for certain document, does not  need to "sign in", so a Credential picker is not suitable for this case.

    Thank you for any help.

    Tuesday, December 25, 2012 4:16 AM

Answers

  •  Add this code in your xaml
    <Popup  x:Name="Popupsample" IsLightDismissEnabled="True">
                <Border BorderBrush="#FFBD00" BorderThickness="3">
                    <StackPanel x:Name="DeleteStackpanel" Height="120" Width="270" Background="White" Orientation="Vertical">
                        <TextBlock x:Name="DeleteTextblock" TextWrapping="Wrap" Width="220" FontSize="17" Padding="5 20 5 0"></TextBlock>
                        <Button x:Name="DeleteButton" Click="DeleteButton_Click_1" Margin="0,15,20,0" x:Uid="DeleteContentBtn" Background="#FFBD00"  HorizontalAlignment="Right"></Button>
                    </StackPanel>
                </Border>
            </Popup>

    and call Popupsample->IsOpen = true.
    • Marked as answer by goldkyo Thursday, February 21, 2013 12:37 PM
    Wednesday, January 09, 2013 5:48 PM