窗口类型对话框 [英] Window type dialog

查看:90
本文介绍了窗口类型对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在尝试找到最简洁的方法来实现如下所示的GUI:

I'm trying to find the cleanest way to implement a GUI that looks like this:

< span style ="text-decoration:underline"> http://public.bay.livefilestore.com/y1pW4mRogrUAnAZJakEYte75w7qmU81CUeO0tDD62GHY3MvK-my3el2obd_l-hrCfsIl2kBdrcPIE6DUnTYaQj39g/Dialog1.png?psid=1

http://public.bay.livefilestore.com/y1pW4mRogrUAnAvsqJ0gnXC5sY93B_3-h5PoxJeViQ_lkBDQM-4ygycTT4uusyaCp1gYS6uVASRvbCmcFmYJPAsqA/Dialog2.png?psid=1

我在以干净的方式实现这个问题时遇到了问题。

I'm having a problem achieving this in a clean way.

我目前的方法是创建这些形式中的每一个并抵消视觉坐标,使它们无法看到然后根据需要将画布移动到视图中。

My current approach is to create each of these forms and offset the visual co-ordinates do that they can't be seen and then as needed move the canvas into view.

Familly.Show项目的源代码可用,但它有点疯狂,我不相信它是最干净的实现,因为你可以在Blend中可以轻松地使用该项目。

The source to the Familly.Show project is available, but it's a little crazy and I'm not convinced it's the cleanest implementation as you can't really work with the project easily within Blend.

有没有人知道教程或博客写作,这将有助于我以一种我可以单独使用XAML的方式做这样的事情每个对话框的文件\使其易于编辑并在Blend中使用它们?

Does anyone know of a tutorial or a blog writeup that would assist me in doing something like this in a manner where I can have seperate XAML files for each of the dialogs \ making it easy to edit and work with them in Blend?

谢谢

Warrick

推荐答案

您可以将它们作为用户控件创建,这样您就可以按照这种方式进行编辑,然后在主页上,您可以在需要时创建它们,或者他们预先创建并将其可见性设置为折叠或bin d他们的可见性状态为bool属性
并使用转换器。
You could create each of them as a usercontrol, so you can edit them that way, then on your main page, you could create them when you need them, or have them precreated and set their visibility to collapsed, or bind their visibility state to a bool property and use a converter.


这篇关于窗口类型对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆