简体   繁体   中英

3d button with Transparent Background

如何制作关于具有透明背景的简单 3d 按钮的简单应用程序?

Try this one.You can give effects to it's background by changing it's background property.

<Button x:Name="BtnCancel" Content="Close" HorizontalAlignment="Left" Height="42" Margin="720,672,0,0" VerticalAlignment="Top" Width="140" FontSize="22" Opacity="0.695" Foreground="Yellow" Click="BtnCancel_Click" Padding="1,-5,1,0">
        <Button.BorderBrush>
            <RadialGradientBrush>
                <GradientStop Color="Black" Offset="0.017" />
                <GradientStop Color="#FFD1CFCF" Offset="1" />
            </RadialGradientBrush>
        </Button.BorderBrush>
        <Button.Background>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="Black" Offset="0" />
                <GradientStop Color="#9BFFFFFF" Offset="1" />
            </LinearGradientBrush>
        </Button.Background>
    </Button>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM