This article is a mirror article of machine translation, please click here to jump to the original article.

View: 991667|Reply: 393

[WPF] WPF interface library, very beautiful WPF interface [with source code]

  [Copy link]
Posted on 7/24/2018 3:45:06 PM | | | |

WPF renderings are as above, and the gif dynamic effects are attached below, as follows:



The entire WPF minimize, maximize, and close buttons are all rewritten by myself, the interface is written by me for 17 years, and a device monitoring software written with WPF, because it was not written halfway through, so the software has not been published on the Internet.

Many styles and styles are written by yourself little by little, so write while checking the information!

WPF data list is a list of WPF data with sorting, finding, highlighting and other functions.

The interface uses a lot of property triggers, some effects, it is easy to make with triggers in wpf, but it is difficult to make in winform, this is the advantage of wpf!

Finally, source code download:

The hyperlink login is visible.




Previous:I would like to ask you a question
Next:How to play without beans,,,,
Posted on 7/25/2018 3:23:38 PM |
It's really bad, awesome, praise
Posted on 4/16/2019 5:07:51 PM |
Look
<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{filter}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 screenshot 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="Please enter your username" 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="Please Enter Password" 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>
Posted on 7/26/2018 10:27:30 AM |
VS2013 shows error 1 should be { or ;        C:\Users\LENOVO\Downloads\Compressed\WPF Nice Interface\Model\PageDeviceModel.cs 79 36 WanKeYun.PC
Posted on 7/25/2018 8:53:02 AM |
Very good, I like this framework, come down and learn
Posted on 7/25/2018 10:08:17 AM |
Thanks for sharing
Posted on 7/25/2018 2:58:04 PM |
I want the source code
Posted on 7/25/2018 9:00:13 PM |
Very good, learn, keep working hard
Posted on 7/26/2018 8:09:05 AM |
Come down and learn to learn
Posted on 7/26/2018 8:19:42 AM |
Very good, I like this framework, come down and learn
Posted on 7/26/2018 8:24:25 AM |
Why don't you have download permissions?
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com