在Metro之上的桌面应用-扩展 [英] Desktop apps on top of Metro - Extended

查看:63
本文介绍了在Metro之上的桌面应用-扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Rob,你好

Hi Rob,

  我在上关注您 http://social.msdn.microsoft.com/Forums/zh-CN/toolsforwinapps/thread/8529357f-3ff8-4c83-baaf-5215ca9cc14a  成功编写了一个桌面应用程序(WPF)地铁.但是我遇到了一个问题:如果我设置"this.ShowInTaskbar = false",则我的桌面窗口无法 显示在地铁顶部.为什么以及如何解决这个问题?请帮忙!

    I follow you at http://social.msdn.microsoft.com/Forums/en-US/toolsforwinapps/thread/8529357f-3ff8-4c83-baaf-5215ca9cc14a and success to write a desktop app(WPF) on top of metro. But I met a problem: if I set "this.ShowInTaskbar = false", my desktop window can not show on top of metro. Why and How to solve this issue? Please help!!

推荐答案

嗨琼斯,

根据您的描述,我了解您创建了WPF应用程序,并且您想在Metro顶部设置此应用程序的窗口,对吗?

According to your description, I understand you create a WPF apps, and you want to set the Window of this apps on the top of Metro, right?

在WPF中,您只需要将TopMost属性设置为Window的true,我们将看到该窗口位于任何其他窗口或页面的顶部.而且我将ShowInTaskbar设置为false,但结果是正确的,窗口显示在最顶部,但同时未在 任务栏.

In WPF, you just need set TopMost property as true of a Window, we will see the window on top of any other window or page. And also I set ShowInTaskbar as false, but the result is correct, window show on the most top, at the same time didn't shown in Taskbar.

查看以下WPF代码:

<Window x:Class="test.Window1"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Window1" Height="300" Width="300" Topmost="True" ShowInTaskbar="False">
    <Grid>
    </Grid>
</Window>

希望有帮助.

如果还有其他问题,请随时告诉我.

If you have any additional questions, please feel free to let me know.

今天愉快.


这篇关于在Metro之上的桌面应用-扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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