WinForm透明窗体使用WPF控件并透明
<UserControlBackground="Transparent"><GridBackground="Transparent"><ListViewName="lis...
<UserControl 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窗体颜色(黑色)
求科普 求破 展开
<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窗体颜色(黑色)
求科普 求破 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询