【问题标题】:Windows Store Game: DirectX for game and XAML for rich UIWindows 商店游戏:用于游戏的 DirectX 和用于丰富 UI 的 XAML
【发布时间】:2012-12-12 02:02:28
【问题描述】:

是否可以在 DirectX Windows Store 游戏中使用 XAML 构建矢量(可缩放)富 UI(带有包含按钮、列表框等的表单)?

【问题讨论】:

    标签: performance xaml windows-8 directx windows-store-apps


    【解决方案1】:

    是的,您可以在 Windows 应用商店应用中同时使用 XAML 和 DirectX。这是一篇解释DirectX and XAML interopanother article from the Windows 8 app developer blog的文章。

    总之,您的选择是:

    1. 您可以使用 SurfaceImageSource XAML 类型将 DirectX 内容区域添加到 Metro 风格 XAML 应用程序。
    2. 您可以将VirtualSurfaceImageSource 用于大规模 DirectX 内容 + XAML UI。
    3. 您可以将 SwapChainBackgroundPanel 用于带有 XAML 覆盖的 DirectX。

    【讨论】:

    • 感谢詹妮弗的快速回答,但我不确定性能。使用复杂的嵌套 UI 树不会对其产生强烈影响吗?
    • 控件的设计考虑到了性能。我建议阅读该互操作文章以了解这些概念,然后制作原型以了解性能。
    猜你喜欢
    • 1970-01-01
    • 2014-10-22
    • 1970-01-01
    • 1970-01-01
    • 2012-09-20
    • 2012-12-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多