C#WPF - 透明背景 [英] C# WPF - transparent background

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

问题描述

我知道如何在普通的C#视觉表单上使表单完全透明。但我是否会在WPF表单上这样做?我希望整个表单都是透明的,用于控件中的

解决方案

试试这个



设置窗口属性如下

WindowStyle =无允许透明度=真背景=透明


这可以帮助你 -

WPF透明表格申请 [ ^ ]

WPF应用程序中的透明窗口 [ ^ ]

使用BabySmash学习WPF - 用物质制作透明窗口 [ ^ ]


http://msdn.microsoft.com/en-us/library/wk5b13s4(v = vs.71)的.aspx

I know how to make a form complete transparent on a normal C# visual form. But ow do i do it on a WPF form? I want the whole of the form the be transparent exect for the controls in it

解决方案

try this one

set window properties like below
WindowStyle="None" AllowsTransparency="True" Background="Transparent"


This can help you-
WPF transparent form application [^]
Transparent Window in WPF Application[^]
Learning WPF with BabySmash - Making a Transparent Window with Substance[^]


http://msdn.microsoft.com/en-us/library/wk5b13s4(v=vs.71).aspx


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

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