简体   繁体   English

WPF应用窗口显示在按钮上的屏幕截图

[英]WPF applacation window screen shot displayed on button

i have create a few WPF applications in visual studio, and now i would like to create a final application to run all of the created apps in the final application. 我已经在Visual Studio中创建了一些WPF应用程序,现在我想创建一个最终应用程序以运行最终应用程序中的所有已创建应用程序。 i would like to know how i can create a layout that displays the apps that are running inside the final app as buttons that can be clicked and cause the app to expand and allow the user to work on that app and then when finished return back to the final app and see the other apps to choose from. 我想知道如何创建一个布局,以将可以显示在最终应用程序内部运行的应用程序显示为按钮,从而可以单击该按钮并导致应用程序扩展,并允许用户在该应用程序上工作,然后在完成后返回最终应用程序,然后查看其他应用程序以供选择。 I imagine it would look like a Google chrome blank page that allows you see your familiar webpages and click on them to load them up. 我想这看起来像是Google chrome空白页,可以让您看到自己熟悉的网页并单击它们进行加载。 Any help or advice on what i should focus on to implement this would be much appreciated. 对于我应该重点实现的任何帮助或建议,我们将不胜感激。

Thank you for taking the time to read over this. 感谢您抽出宝贵的时间阅读此内容。

Consider using a VisualBrush this takes other WPF UI (your "apps") and uses their UI as a brush for another UI element. 考虑使用VisualBrush,它会使用其他WPF UI(您的“应用程序”),并将其UI用作另一个UI元素的画笔。

Raj Kumar has a simple article called Visual Brush in WPF for details. Raj Kumar 在WPF中有一篇简单的文章叫做Visual Brush,以了解详细信息。

The bit you probably want is at the bottom where he shows you rendering a controls content in another control. 您可能想要的位在底部,他向您展示了如何在另一个控件中呈现控件内容。 The magic being binding the controls visual to the element name whos UI it should render. 将控件视觉绑定到应该呈现的元素名称whos UI的魔力。

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

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