• WPF Good UI 2


    自定义一个漂亮的window窗口UI

    <Window
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            xmlns:local="clr-namespace:BlurBehindDemo" x:Class="BlurBehindDemo.MainWindow"
            Title="Hello Blur!" Height="781.25" Width="1275.568"
    		    Background="#00FFFFFF"
    		    AllowsTransparency="True"
    		    WindowStyle="None"
    
    		    WindowStartupLocation="CenterScreen" 
    		    Loaded="Window_Loaded">
        <Grid >
            <Border CornerRadius="12"   BorderThickness="8" Margin="12"
    		    BorderBrush="#E5FFFFFF" >
                <Border.Effect>
                    <DropShadowEffect  />
                </Border.Effect>
              <Grid Opacity="0.8">
                <Grid.Background>
                    <ImageBrush ImageSource="Assets/Hydrangeas.jpg"/>
                </Grid.Background>
                 
              </Grid> 
            </Border>
            
            <Border CornerRadius="12"   BorderThickness="8" Margin="12"
    		    BorderBrush="#E5FFFFFF" >
                <Border.Effect>
                    <DropShadowEffect Direction="125" />
                </Border.Effect>
           </Border> 
    
           <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="64" Foreground="Red"><Run Text="Hello Blur!"/></TextBlock>
            <Grid HorizontalAlignment="Left" Height="615" Margin="126,38,0,0" VerticalAlignment="Top" Width="1075">
                <Grid.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#E5FFFFFF" Offset="0.326"/>
                        <GradientStop Offset="1" Color="#A8AE0D91"/>
                    </LinearGradientBrush>
                </Grid.Background>
                <Button Content="Button" HorizontalAlignment="Left" Margin="237,263,0,0" VerticalAlignment="Top" Width="363" Height="141" />
    
            </Grid>
    
    
        </Grid>
    </Window>
    

      

  • 相关阅读:
    CentOS下安装vsftpd
    Linux下快速删除大量文件
    /var/spool/postfix/maildrop/ 中有大量的文件
    Linux 查看目录大小及文件数量命令
    windows下体验Redis
    hMailServer SSL 配置
    vmware 安装 Mac OS X 10.9 Mavericks
    提问和看不懂
    C 语言学习 第三次作业总结
    C 语言学习 第二次作业总结
  • 原文地址:https://www.cnblogs.com/wgscd/p/11164409.html
Copyright © 2020-2023  润新知