透明的UWP Windows 10 [英] Transparent UWP windows 10

查看:106
本文介绍了透明的UWP Windows 10的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图弄清楚如何在应用程序上具有透明背景,以使用户可以在其后面看到。我试图更改 xaml background opacity 参数>文件,但没有任何更改。



我也在后台设置了透明图像

 < Page.Background> 
< ImageBrush Stretch = Fill ImageSource = Assets / fond.png />
< /Page.Background>

但这不起作用



有人知道如何执行此操作吗?

解决方案

tl; dr



也许不是直接的透视,但我



编辑:
我认为它在SDK预览版中可用,但我不确定,因为我没有



有关周年庆SDK预览的信息
https://developer.microsoft.com/zh-CN/windows/downloads/windows-10-developer-preview



SDK在这里
https://insider.windows.com/



更新:



我刚刚注意到Compositor类中的CreateHostBackdropBrush()函数的prelease。
https://docs.microsoft。 com / en-us / uwp / api / windows.ui.composition.compositor



更新:



在Fall Creators Update中,它甚至可以作为XAML代码使用,非常快速且易于编写。



链接:
> https://docs.microsoft.com/zh-CN/windows/uwp/design/style/压克力


I am trying to figure out how to have a transparent background on the app, that lets the user see behind it. I've tried to change background and opacity parameters in xaml file, but nothing changed.

I have set a transparent image in background also

<Page.Background>
    <ImageBrush Stretch="Fill" ImageSource="Assets/fond.png"/>
</Page.Background>

But it doesn't work

Does anyone know how to perform this?

解决方案

tl;dr https://docs.microsoft.com/en-us/windows/uwp/design/style/acrylic

You will be able to do it after the update of Windows 10 that is coming.

Here: https://wpdev.uservoice.com/forums/110705-universal-windows-platform/suggestions/8232264-enable-blur-and-transparency-xaml-effects-to-allow?tracking_code=8e9425d1ccc153460b32b85ed3253c90

And the github: https://github.com/Microsoft/WindowsUIDevLabs/tree/master/SampleGallery/Samples/SDK%20Insider/BlurPlayground

Maybe it's not the straight "see through", but I think it's what you would like to have.

EDIT: I think it is available in the SDK Preview, but I'm not sure because I didn't try it.

Info about Anniversary SDK Preview https://developer.microsoft.com/en-us/windows/downloads/windows-10-developer-preview

SDK is here https://insider.windows.com/

UPDATE:

I've just noticed prelease of CreateHostBackdropBrush() function in Compositor class. https://docs.microsoft.com/en-us/uwp/api/windows.ui.composition.compositor

UPDATE:

In Fall Creators Update it's even available as XAML code that's very fast and easy to write.

Link: https://docs.microsoft.com/en-us/windows/uwp/design/style/acrylic

这篇关于透明的UWP Windows 10的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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