Semi-transparent custom layout panel

前端 未结 2 409
伪装坚强ぢ
伪装坚强ぢ 2020-12-21 12:27

I have built a semi-transparent custom layout panel in WPF by setting the Opacity value of the panel to 0.5. Everything works as expected, except that

相关标签:
2条回答
  • 2020-12-21 13:07

    Change the opacity of the brush, rather than control itself...

    0 讨论(0)
  • 2020-12-21 13:10

    Thank you very much Anvaka, you helped me also. In my case, I did it from XAML (from style):

       <Setter Property="Background">
            <Setter.Value>
                <SolidColorBrush Color="Black" Opacity="0.3"/>
            </Setter.Value>
        </Setter>
    
    0 讨论(0)
提交回复
热议问题