WPF做一个侧边栏滑动进入的效果

2021-04-16 03:26

阅读:642

标签:round   height   style   code   duration   bsp   prope   pac   load   

效果

技术图片

代码

 1 "WpfApp12.MainWindow"
 2         xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 3         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 4         xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
 5         xmlns:local="clr-namespace:WpfApp12"
 6         xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
 7         Title="MainWindow"
 8         Width="800"
 9         Height="450"
10         mc:Ignorable="d">
11     12 
13         
33         
34         "border"
35                 Width="120"
36                 HorizontalAlignment="Right"
37                 Background="LightSkyBlue">
38             
39             40                 "tt" X="120" />
41             42             43                 "225"
44                                   Opacity="0.6"
45                                   ShadowDepth="1"
46                                   Color="Black" />
47             48             49                 
50                 "MouseLeftButtonDown">
51                     52                         
53                         "tt" Storyboard.TargetProperty="X">
54                             "0"
55                                              To="120"
56                                              Duration="0:0:1" />
57                         58                     59                 60             61         62 
63     64 

 

WPF做一个侧边栏滑动进入的效果

标签:round   height   style   code   duration   bsp   prope   pac   load   

原文地址:https://www.cnblogs.com/AtTheMoment/p/14660870.html


评论


亲,登录后才可以留言!