Effects of transparency



  • Hello. Let's say there's a transparent counter. Smash him with everything under him. But can there be some way to make a difference to transparency? Like washing. Or an increase. Or can you tell me how to get a BT?



  • The simplest of WPF classes is BlurEffect♪ He's washing the contents of the element, like looking at it through a well-focused lens. The degree of washing is increasing. Radius (which is default 5).

    <Button Background="Transparent" Content="Hello">
        <Button.Effect>
            <BlurEffect Radius="5"/>
        </Button.Effect>
    </Button>
    

    So that the content of the counterfeit can not be washed like this:

    <Grid>
        <Border Padding="20" BorderBrush="Blue" BorderThickness="3" CornerRadius="10">
            <Border.Effect>
                <BlurEffect Radius="5"/>
            </Border.Effect>
        </Border>
        <TextBlock Text="Some text inside a Border" VerticalAlignment="Center" HorizontalAlignment="Center"/>
    </Grid>
    



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2