cost 102 ms
WinUI 3 - 如何像 ContentDialog 一样禁用背景 - WinUI 3 - How to disable the background like ContentDialog do

我正在使用 WinUI 3 构建一个程序,并希望在加载内容时将控件隐藏在透明面板后面,就像 ContentDialog 一样。 我试图找到 ContentDialog 的源代码以获得灵感但找不到。 反汇编只显示抽象,我想,是 WinRT 控件。 我尝试编辑模板,就像我们在普通的旧 WPF 时期所做的 ...

由于显示 ContentDialog,如何阻止/停用 Uwp 应用程序标题栏? - How to blocked/Inactivate Uwp app title bar due to show ContentDialog?

由于显示 ContentDialog,我需要阻止/停用带有标题栏的整个 Uwp 应用程序。 我使用了 Microsoft XAML Controls Gallery App 的代码,而 Control-Gallery 应用程序正确阻止了整个应用程序,但我的测试应用程序没有阻止该应用程序。 这是在 ...

如何将 ContentDialog 包装在自定义控件中? - How do I wrap a ContentDialog in a custom Control?

我正在尝试制作一个可重复使用的 WinUI 对话框来显示进度信息,但我希望我使用ContentDialog作为实现细节,而不是公开其 API。 我想我可以通过从Control派生并在其ControlTemplate中创建一个ContentDialog来做到这一点。 像这样的东西: 使用如下定义的样 ...

如何使 UWP ContentDialog 真正模态化 - How to make UWP ContentDialog truly modal

我在 UWP 应用程序中有一个导航视图模式,其中“导航根”页面托管子页面的框架。 如果我从子页面调用ContentDialog ,如果我使用键盘快捷键,我仍然可以访问母版页中的对象。 如果打开另一个内容对话框,这很容易导致应用程序崩溃。 如何使ContentDialog真正成为模态? 可以在此处找到 ...

我想使用预定义的 ContentDialog(在 MainPage 上)来显示在 AppWindow 内。 这个怎么做? - I want to use the a predefined ContentDialog (on the MainPage) to be displayed inside an AppWindow instead. How to do this?

我有一个具有多个 AppWindows 的 UWP 应用程序。 我想在此 AppWindow 的 MainPage 上显示在 XAML 中定义的通用内容对话框。 我尝试设置 XamlRoot,但收到此错误: System.Exception: 'Catastrophic failure canno ...

如何强制 TextBox 显示正在输入的内容? - How can I force the TextBox to display what is being entered into it?

在我的 UWP 应用程序中,我在单击按钮 (btnCre8NewMap) 时调用 ContentDialog。 这是相关的 XAML: ...这是代码隐藏中的按钮单击事件: 这是我单击按钮时看到的,在 txtbxMapName 中输入“bla”,然后在 txtbxMapNotes 中输入一堆文本 ...

为什么显示我的 ContentDialog 的异步/等待代码在运行时失败? - Why does the async/await code to show my ContentDialog fail at runtime?

我想在我的 UWP 应用程序中实例化一个 ContentDialog,该应用程序在我的 XAML 中定义如下: 试图让一个最小的例子运行,我打算试试这个: ...但是得到了这个设计时错误消息: 所以我把代码改成这个,在方法/事件处理程序中添加“async”,在调用中添加“await”以显示内容 ...

如何在没有收到错误消息的情况下将 ContentDialog 添加到我的 XAML 中? - How can I add a ContentDialog to my XAML without getting an err msg about it?

根据我的问题here的答案,它指向这个例子,我在结尾的“Grid”和“Page”标签之间添加了以下内容: 这是该页面上内容的逐字副本,仅作为一个起点,我将对其进行调整/自定义。 但是,它不编译。 我收到这些错误消息: 我究竟做错了什么? ...


排序:
质量:
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM