PopUp为弹出框控件,可以自定义成提示框、等待框。

<PopupVerticalAlignment="Bottom"HorizontalAlignment="Center"Height="158"Width="261"IsOpen="True"Margin="86,0,133,334"><CanvasMargin="30,40"Background="Gray"Height="80"Width="200"><TextBlockCanvas.Left="20"Canvas.Top="20"Text="您有新的短消息!"></TextBlock></Canvas></Popup>

此控件为容器控件,里面能够包含、显示其他控件。

通过设置IsOpen属性,可以控制PopUp框的隐藏或者显示。通过设置定时器可以令其自动关闭。

效果图为: