<Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}" Width="2000" Height="1000">
<StackPanel>
<TextBox Width="300" Height="100" VerticalAlignment="Top" HorizontalAlignment="Left"></TextBox>
</StackPanel>
</Grid>
前台设计,我用Grid来覆盖整个屏幕,上面放一个TextBox控件
Popup mPopupControl;
public void Create()
{
if (mPopupControl == null)
{
mPopupControl = new Popup();
mPopupControl.Child = this;
}
mPopupControl.IsOpen = true;
}
后台增加一个Create方法
当我在弹出框选中TextBox之后,点击空白处,也就是Grid,无法使TextBox失去焦点。求指教