0
我试图在页面上显示一个弹出窗口。期望的行为是让页面在后台显示弹出窗口。当显示弹出窗口时,我仍然可以与后台页面进行交互。但我需要禁用背景页面。如何在显示弹出窗口时禁用页面
<Grid>
<Grid>
<Pivot IsEnabled="{Binding IsPopUpOpen , Converter={StaticResource BooleanInversionConverter}}">
</Pivot>
</Grid>
<Popup Name="Popup" IsOpen="{Binding IsPopUpOpen}" VerticalAlignment="Center">
<TextBox Foreground="Black" FontSize="28" FontWeight="Normal" BorderBrush="Black" BorderThickness="2" HorizontalAlignment="Left" Width="440"/>
</Popup>
</Grid>
当我运行这段代码,我得到一个异常:
System.InvalidOperationException了未处理的消息:未处理的异常 'System.InvalidOperationException' 类型发生在 System.Windows的。 ni.dll其他信息:无法解析 TargetName Img。
让我知道如何使用MVVM方法禁用数据透视表。
弹出窗口的背景将会创建一个覆盖图。我希望页面可见。弹出窗口通常不会隐藏整个屏幕。 – 2014-09-29 12:05:47
哦,你想显示弹出窗口,不要在后台显示应用程序?真的很奇怪,但为什么不创建一个通用页面来显示你的消息?页面w – MatDev8 2014-09-29 13:42:32