架构师_程序员_码农网

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 464071|回复: 392

[WPF] WPF界面库,非常漂亮的WPF界面【附源码】

  [复制链接]
发表于 2018-7-24 15:45:06 | 显示全部楼层 |阅读模式
QQ截图20180724151248.jpg QQ截图20180724151310.jpg QQ截图20180724151326.jpg QQ截图20180724151352.jpg QQ截图20180724151541.jpg
WPF效果图如上,下面附上gif动态效果图,如下:

color3.gif

整个WPF的最小化、最大化、关闭按钮,都是自己重新写的,界面是我17年写的了,用wpf写的一款设备监控软件,由于写到一半没有写下去了,所以软件一直没有公布到网上。

很多样式和风格都是自己一点一点写的,边查资料边写吧!

WPF数据列表,是具有排序、查找、高亮等功能。

界面使用了很多属性触发器(Property Trigger),一些效果,在wpf用触发器很容易做出来,在winform就很难做出来了,这就是wpf的优势吧!

最后,源码下载:

https://down.itsvse.com/item/194.html




上一篇:请教一个问题
下一篇:没豆怎么玩 呢 ,,,,
码农网,只发表在实践过程中,遇到的技术难题,不误导他人。
发表于 2018-7-25 15:23:38 | 显示全部楼层
真不赖,牛逼,赞
码农网,只发表在实践过程中,遇到的技术难题,不误导他人。
发表于 2019-4-16 17:07:51 | 显示全部楼层
看看
<Window x:Class="WpfFrist.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
         WindowStyle="None" AllowsTransparency="True" Background="{x:Null}"
        Title="MainWindow" Height="300" Width="300" WindowStartuplocatio{过滤}n="CenterScreen">
    <Grid  Width="{Binding Width, ElementName=w}" Height="{Binding Height, ElementName=w}">
        <Grid.RowDefinitions>
            <RowDefinition Height="150" />
            <RowDefinition Height="50" />
            <RowDefinition Height="50" />
            <RowDefinition  />
        </Grid.RowDefinitions>
        <Border Grid.RowSpan="4" BorderBrush="Gray" BorderThickness="3" CornerRadius="20" Margin="10"  Opacity="1"  Background="White"></Border>
        <Button Style="{StaticResource BtnCloseStyle}" Name="btnClose"  Grid.Row="0"  Click="Button_Click" ></Button>
        <Image Grid.Row="0"  VerticalAlignment="Center" Width="120"  Height="120" Source="/Resources/QQ截图20161123091013.png" />
        <TextBox x:Name="UserTextBox"  Grid.Row="1"  Width="200" VerticalAlignment="Center" BorderThickness="0,0,0,1" Height="23"></TextBox>
        <TextBlock Foreground="DarkGray"  Grid.Row="1"  IsHitTestVisible="False" HorizontalAlignment="Center" Height="23" Text="请输入用户名" VerticalAlignment="Center" Width="90" FontFamily="Microsoft YaHei">
            <TextBlock.Style>
                <Style TargetType="{x:Type TextBlock}">
                    <Setter Property="Visibility" Value="Collapsed"/>
                    <Style.Triggers>
                        <DataTrigger Binding="{Binding Text, ElementName=UserTextBox}" Value="">
                            <Setter Property="Visibility" Value="Visible"/>
                        </DataTrigger>
                    </Style.Triggers>
                </Style>
            </TextBlock.Style>
        </TextBlock>
        <TextBox  x:Name="PwdTextBox"   Grid.Row="2"  Width="200" VerticalAlignment="Center" BorderThickness="0,0,0,1" Height="23"></TextBox>
        <TextBlock Foreground="DarkGray" Grid.Row="2"  IsHitTestVisible="False" HorizontalAlignment="Center" Height="23" Text="请输入密码" VerticalAlignment="Center" Width="90" FontFamily="Microsoft YaHei">
            <TextBlock.Style>
                <Style TargetType="{x:Type TextBlock}">
                    <Setter Property="Visibility" Value="Collapsed"/>
                    <Style.Triggers>
                        <DataTrigger Binding="{Binding Text, ElementName=PwdTextBox}" Value="">
                            <Setter Property="Visibility" Value="Visible"/>
                        </DataTrigger>
                    </Style.Triggers>
                </Style>
            </TextBlock.Style>
        </TextBlock>
        <Button Name="btnlogin" Click="btnlogin_Click" Grid.Row="2" Style="{StaticResource BtnLoginStyle}"  >
            <!--<Button.Background>
                <ImageBrush ImageSource="/Resources/LoginBtn.jpg" Stretch="Fill"/>
            </Button.Background>-->
        </Button>
    </Grid>
</Window>
码农网,只发表在实践过程中,遇到的技术难题,不误导他人。
发表于 2018-7-26 10:27:30 | 显示全部楼层
VS2013下显示错误        1        应为 { 或 ;        C:\Users\LENOVO\Downloads\Compressed\WPF漂亮界面\Model\PageDeviceModel.cs        79        36        WanKeYun.PC
码农网,只发表在实践过程中,遇到的技术难题,不误导他人。
发表于 2018-7-25 08:53:02 | 显示全部楼层
很好,就喜欢这样的框架,下来学习学习
码农网,只发表在实践过程中,遇到的技术难题,不误导他人。
发表于 2018-7-25 10:08:17 | 显示全部楼层
谢谢分享
码农网,只发表在实践过程中,遇到的技术难题,不误导他人。
发表于 2018-7-25 14:58:04 | 显示全部楼层
我想要源码
码农网,只发表在实践过程中,遇到的技术难题,不误导他人。
发表于 2018-7-25 21:00:13 | 显示全部楼层
很好,学习了,继续努力
码农网,只发表在实践过程中,遇到的技术难题,不误导他人。
发表于 2018-7-26 08:09:05 | 显示全部楼层
下来学习学习
码农网,只发表在实践过程中,遇到的技术难题,不误导他人。
发表于 2018-7-26 08:19:42 | 显示全部楼层
很好,就喜欢这样的框架,下来学习学习
码农网,只发表在实践过程中,遇到的技术难题,不误导他人。
发表于 2018-7-26 08:24:25 | 显示全部楼层
怎么没有下载权限
码农网,只发表在实践过程中,遇到的技术难题,不误导他人。
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

免责声明:
码农网所发布的一切软件、编程资料或者文章仅限用于学习和研究目的;不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负。本站信息来自网络,版权争议与本站无关。您必须在下载后的24个小时之内,从您的电脑中彻底删除上述内容。如果您喜欢该程序,请支持正版软件,购买注册,得到更好的正版服务。如有侵权请邮件与我们联系处理。

Mail To:help@itsvse.com

QQ|手机版|小黑屋|架构师 ( 鲁ICP备14021824号-2 )|网站地图

GMT+8, 2024-3-28 20:37

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表