简体   繁体   English

如何在 UWP 应用程序中创建 window 以输入详细/属性信息

[英]How to create a window within a UWP app to enter in detail/properties information

So I'm sure there's an easy way to do this but I don't know the exact terminology for what I'm wanting.所以我确信有一种简单的方法可以做到这一点,但我不知道我想要的确切术语。

Essentially in my C# xaml uwp app I have a couple objects that need to have details added to them, kind of like file properties.基本上在我的 C# xaml uwp 应用程序中,我有几个对象需要添加细节,有点像文件属性。 I have a button that I would like to open up another window (still part of the app), just to enter in the properties.我有一个按钮,我想打开另一个 window(仍然是应用程序的一部分),只是为了输入属性。 I just don't know the terminology to look up what this window would be called or find documentation for it.我只是不知道术语来查找这个 window 将被称为什么或找到它的文档。 So the exact same as when you're in a file browser and you open the properties of a file;因此,与您在文件浏览器中打开文件属性时完全相同; it opens in a little extra window that you can drag around.它打开了一点额外的 window ,您可以拖动它。

I don't want to be able to use the main window while the properties window is open, and of course they need to be able to transfer data between one another.我不想在 window 属性打开时使用主 window,当然它们需要能够在彼此之间传输数据。

In my previous apps I've simply made a grid that appears over everything else in the middle of the app and shaded the outer area.在我以前的应用程序中,我只是简单地制作了一个网格,它出现在应用程序中间的所有其他内容上,并对外部区域进行了阴影处理。 A workaround as I didn't know how to do this.一种解决方法,因为我不知道该怎么做。

Can anyone help me out?谁能帮我吗?

Maybe you can use Dialog refer to https://docs.microsoft.com/en-us/windows/uwp/design/controls-and-patterns/dialogs-and-flyouts/dialogs .也许您可以使用Dialog参考https://docs.microsoft.com/en-us/windows/uwp/design/controls-and-patterns/dialogs-and-flyouts/dialogs

Dialog controls are modal UI overlays that provide contextual app information.对话框控件是提供上下文应用信息的模式 UI 覆盖。 They block interactions with the app window until being explicitly dismissed.它们阻止与应用程序 window 的交互,直到被明确解除。 They often request some kind of action from the user.他们经常要求用户采取某种行动。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM