设置了WPF控件颜色为透明色<UserControl x:Class="WpfControlLibrary1.UserControl1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/up-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" mc:Ignorable="d" d:DesignHeight="267" d:DesignWidth="288"
Background="Transparent" >
<Grid Background="Transparent">
<ListView Name="listView1" Margin="12,12,41,30" Opacity="1" Background="Transparent">
</ListView>
</Grid>
</UserControl>
winform窗体透明this.BackColor = Color.FromArgb(1,2,3);
this.TransparencyKey = this.BackColor;
把WPF在放到winform窗体中时 就出现了winform窗体颜色(黑色)为什么呢 今天才接触WPF的WPFWinForm
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/up-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" mc:Ignorable="d" d:DesignHeight="267" d:DesignWidth="288"
Background="Transparent" >
<Grid Background="Transparent">
<ListView Name="listView1" Margin="12,12,41,30" Opacity="1" Background="Transparent">
</ListView>
</Grid>
</UserControl>
winform窗体透明this.BackColor = Color.FromArgb(1,2,3);
this.TransparencyKey = this.BackColor;
把WPF在放到winform窗体中时 就出现了winform窗体颜色(黑色)为什么呢 今天才接触WPF的WPFWinForm
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货