在一些项目中,难免会有耗时的加载,如果加载时没有提示,给人一种假死的感觉,很不友好,那么现在福利来啦,WPF版的模态窗体,先上效果图

实际效果指针是转动的,话不多说,一大批干货来袭

XMAL的代码

 Window x:Class="ZhiHeng.IntelligentExpress.WpfUI.Views.CoverForm"
         xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
         xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
         Title="CoverForm"   x:Name="Window"
         Style="{StaticResource WindowsStyle}" Opacity="0.5">
     <Window.Resources>
         <Storyboard x:Key="Storyboard1">
             <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" RepeatBehavior="Forever" Storyboard.TargetName="ellipse" Storyboard.TargetProperty="(UIElement.Opacity)">
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
             </DoubleAnimationUsingKeyFrames>
             <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" RepeatBehavior="Forever" Storyboard.TargetName="ellipse1">
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
             </DoubleAnimationUsingKeyFrames>
             <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" RepeatBehavior="Forever" Storyboard.TargetName="ellipse2">
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
             </DoubleAnimationUsingKeyFrames>
             <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" RepeatBehavior="Forever" Storyboard.TargetName="ellipse3">
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
             </DoubleAnimationUsingKeyFrames>
             <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" RepeatBehavior="Forever" Storyboard.TargetName="ellipse4">
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
             </DoubleAnimationUsingKeyFrames>
             <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" RepeatBehavior="Forever" Storyboard.TargetName="ellipse5">
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
             </DoubleAnimationUsingKeyFrames>
             <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" RepeatBehavior="Forever" Storyboard.TargetName="ellipse6">
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
             </DoubleAnimationUsingKeyFrames>
             <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" RepeatBehavior="Forever" Storyboard.TargetName="ellipse7">
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
             </DoubleAnimationUsingKeyFrames>
             <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" RepeatBehavior="Forever" Storyboard.TargetName="ellipse8">
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
             </DoubleAnimationUsingKeyFrames>
             <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" RepeatBehavior="Forever" Storyboard.TargetName="ellipse9">
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
             </DoubleAnimationUsingKeyFrames>
             <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" RepeatBehavior="Forever" Storyboard.TargetName="ellipse10">
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
             </DoubleAnimationUsingKeyFrames>
             <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" RepeatBehavior="Forever" Storyboard.TargetName="ellipse11">
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
             </DoubleAnimationUsingKeyFrames>
             <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" RepeatBehavior="Forever" Storyboard.TargetName="ellipse12">
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
             </DoubleAnimationUsingKeyFrames>
             <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" RepeatBehavior="Forever" Storyboard.TargetName="ellipse13">
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
             </DoubleAnimationUsingKeyFrames>
             <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" RepeatBehavior="Forever" Storyboard.TargetName="ellipse14">
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
             </DoubleAnimationUsingKeyFrames>
             <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" RepeatBehavior="Forever" Storyboard.TargetName="ellipse15">
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
             </DoubleAnimationUsingKeyFrames>
             <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" RepeatBehavior="Forever" Storyboard.TargetName="ellipse16">
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
             </DoubleAnimationUsingKeyFrames>
             <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)" RepeatBehavior="Forever" Storyboard.TargetName="ellipse17">
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
             </DoubleAnimationUsingKeyFrames>
             <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" RepeatBehavior="Forever" Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
             </DoubleAnimationUsingKeyFrames>
             <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" RepeatBehavior="Forever" Storyboard.TargetName="border1" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
                 <SplineDoubleKeyFrame KeyTime=" />
             </DoubleAnimationUsingKeyFrames>
         </Storyboard>
     </Window.Resources>
     <Window.Triggers>
         <EventTrigger RoutedEvent="FrameworkElement.Loaded">
             <BeginStoryboard Storyboard="{StaticResource Storyboard1}" />
         </EventTrigger>
     </Window.Triggers>
     <Grid x:Name="LayoutRoot">
         <Viewbox Width=">
             <Grid HorizontalAlignment=" VerticalAlignment="Center" Width="3.333" Height="3.333" Visibility="Visible">
                 <Ellipse RenderTransformOrigin="0.468,3.443" x:Name="ellipse" Fill="Black" Stroke="{x:Null}"  />
                 <Ellipse RenderTransformOrigin="0.468,3.443" Fill="Black" Stroke="{x:Null}"  x:Name="ellipse0" >
                     <Ellipse.RenderTransform>
                         <TransformGroup>
                             <ScaleTransform ScaleX=" />
                             <SkewTransform AngleX=" />
                             <RotateTransform Angle=" />
                             <TranslateTransform X=" />
                         </TransformGroup>
                     </Ellipse.RenderTransform>
                 </Ellipse>
                 <Ellipse RenderTransformOrigin="0.468,3.443" Fill="Black" Stroke="{x:Null}" x:Name="ellipse1" >
                     <Ellipse.RenderTransform>
                         <TransformGroup>
                             <ScaleTransform ScaleX=" />
                             <SkewTransform AngleX=" />
                             <RotateTransform Angle=" />
                             <TranslateTransform X=" />
                         </TransformGroup>
                     </Ellipse.RenderTransform>
                 </Ellipse>
                 <Ellipse RenderTransformOrigin="0.468,3.443" Fill="Black" Stroke="{x:Null}" x:Name="ellipse2" >
                     <Ellipse.RenderTransform>
                         <TransformGroup>
                             <ScaleTransform ScaleX=" />
                             <SkewTransform AngleX=" />
                             <RotateTransform Angle=" />
                             <TranslateTransform X=" />
                         </TransformGroup>
                     </Ellipse.RenderTransform>
                 </Ellipse>
                 <Ellipse RenderTransformOrigin="0.468,3.443" Fill="Black" Stroke="{x:Null}" x:Name="ellipse3">
                     <Ellipse.RenderTransform>
                         <TransformGroup>
                             <ScaleTransform ScaleX=" />
                             <SkewTransform AngleX=" />
                             <RotateTransform Angle=" />
                             <TranslateTransform X=" />
                         </TransformGroup>
                     </Ellipse.RenderTransform>
                 </Ellipse>
                 <Ellipse RenderTransformOrigin="0.468,3.443" Fill="Black" Stroke="{x:Null}" x:Name="ellipse4">
                     <Ellipse.RenderTransform>
                         <TransformGroup>
                             <ScaleTransform ScaleX=" />
                             <SkewTransform AngleX=" />
                             <RotateTransform Angle=" />
                             <TranslateTransform X=" />
                         </TransformGroup>
                     </Ellipse.RenderTransform>
                 </Ellipse>
                 <Ellipse RenderTransformOrigin="0.468,3.443" Fill="Black" Stroke="{x:Null}" x:Name="ellipse5">
                     <Ellipse.RenderTransform>
                         <TransformGroup>
                             <ScaleTransform ScaleX=" />
                             <SkewTransform AngleX=" />
                             <RotateTransform Angle=" />
                             <TranslateTransform X=" />
                         </TransformGroup>
                     </Ellipse.RenderTransform>
                 </Ellipse>
                 <Ellipse RenderTransformOrigin="0.468,3.443" Fill="Black" Stroke="{x:Null}" x:Name="ellipse6" >
                     <Ellipse.RenderTransform>
                         <TransformGroup>
                             <ScaleTransform ScaleX=" />
                             <SkewTransform AngleX=" />
                             <RotateTransform Angle=" />
                             <TranslateTransform X=" />
                         </TransformGroup>
                     </Ellipse.RenderTransform>
                 </Ellipse>
                 <Ellipse RenderTransformOrigin="0.468,3.443" Fill="Black" Stroke="{x:Null}" x:Name="ellipse7" >
                     <Ellipse.RenderTransform>
                         <TransformGroup>
                             <ScaleTransform ScaleX=" />
                             <SkewTransform AngleX=" />
                             <RotateTransform Angle=" />
                             <TranslateTransform X=" />
                         </TransformGroup>
                     </Ellipse.RenderTransform>
                 </Ellipse>
                 <Ellipse RenderTransformOrigin="0.468,3.443" Fill="Black" Stroke="{x:Null}" x:Name="ellipse8" >
                     <Ellipse.RenderTransform>
                         <TransformGroup>
                             <ScaleTransform ScaleX=" />
                             <SkewTransform AngleX=" />
                             <RotateTransform Angle=" />
                             <TranslateTransform X=" />
                         </TransformGroup>
                     </Ellipse.RenderTransform>
                 </Ellipse>
                 <Ellipse RenderTransformOrigin="0.468,3.443" Fill="Black" Stroke="{x:Null}" x:Name="ellipse9" >
                     <Ellipse.RenderTransform>
                         <TransformGroup>
                             <ScaleTransform ScaleX=" />
                             <SkewTransform AngleX=" />
                             <RotateTransform Angle=" />
                             <TranslateTransform X=" />
                         </TransformGroup>
                     </Ellipse.RenderTransform>
                 </Ellipse>
                 <Ellipse RenderTransformOrigin="0.468,3.443" Fill="Black" Stroke="{x:Null}" x:Name="ellipse10" >
                     <Ellipse.RenderTransform>
                         <TransformGroup>
                             <ScaleTransform ScaleX=" />
                             <SkewTransform AngleX=" />
                             <RotateTransform Angle=" />
                             <TranslateTransform X=" />
                         </TransformGroup>
                     </Ellipse.RenderTransform>
                 </Ellipse>
                 <Ellipse RenderTransformOrigin="0.468,3.443" Fill="Black" Stroke="{x:Null}" x:Name="ellipse11" >
                     <Ellipse.RenderTransform>
                         <TransformGroup>
                             <ScaleTransform ScaleX=" />
                             <SkewTransform AngleX=" />
                             <RotateTransform Angle=" />
                             <TranslateTransform X=" />
                         </TransformGroup>
                     </Ellipse.RenderTransform>
                 </Ellipse>
                 <Ellipse RenderTransformOrigin="0.468,3.443" Fill="Black" Stroke="{x:Null}" x:Name="ellipse12" >
                     <Ellipse.RenderTransform>
                         <TransformGroup>
                             <ScaleTransform ScaleX=" />
                             <SkewTransform AngleX=" />
                             <RotateTransform Angle=" />
                             <TranslateTransform X=" />
                         </TransformGroup>
                     </Ellipse.RenderTransform>
                 </Ellipse>
                 <Ellipse RenderTransformOrigin="0.468,3.443" Fill="Black" Stroke="{x:Null}" x:Name="ellipse13" >
                     <Ellipse.RenderTransform>
                         <TransformGroup>
                             <ScaleTransform ScaleX=" />
                             <SkewTransform AngleX=" />
                             <RotateTransform Angle=" />
                             <TranslateTransform X=" />
                         </TransformGroup>
                     </Ellipse.RenderTransform>
                 </Ellipse>
                 <Ellipse RenderTransformOrigin="0.468,3.443" Fill="Black" Stroke="{x:Null}" x:Name="ellipse14" >
                     <Ellipse.RenderTransform>
                         <TransformGroup>
                             <ScaleTransform ScaleX=" />
                             <SkewTransform AngleX=" />
                             <RotateTransform Angle=" />
                             <TranslateTransform X=" />
                         </TransformGroup>
                     </Ellipse.RenderTransform>
                 </Ellipse>
                 <Ellipse RenderTransformOrigin="0.468,3.443" Fill="Black" Stroke="{x:Null}" x:Name="ellipse15" >
                     <Ellipse.RenderTransform>
                         <TransformGroup>
                             <ScaleTransform ScaleX=" />
                             <SkewTransform AngleX=" />
                             <RotateTransform Angle=" />
                             <TranslateTransform X=" />
                         </TransformGroup>
                     </Ellipse.RenderTransform>
                 </Ellipse>
                 <Ellipse RenderTransformOrigin="0.468,3.443" Fill="Black" Stroke="{x:Null}" x:Name="ellipse16" >
                     <Ellipse.RenderTransform>
                         <TransformGroup>
                             <ScaleTransform ScaleX=" />
                             <SkewTransform AngleX=" />
                             <RotateTransform Angle=" />
                             <TranslateTransform X=" />
                         </TransformGroup>
                     </Ellipse.RenderTransform>
                 </Ellipse>
                 <Ellipse RenderTransformOrigin="0.468,3.443" Fill="Black" Stroke="{x:Null}" x:Name="ellipse17" >
                     <Ellipse.RenderTransform>
                         <TransformGroup>
                             <ScaleTransform ScaleX=" />
                             <SkewTransform AngleX=" />
                             <RotateTransform Angle=" />
                             <TranslateTransform X=" />
                         </TransformGroup>
                     </Ellipse.RenderTransform>
                 </Ellipse>
                 <Ellipse RenderTransformOrigin="0.5,0.499" x:Name="ellipse_Copy" Fill="Black" Stroke="{x:Null}" Margin="-0.012,0,0.001,-9.67" VerticalAlignment="Bottom" Height="3.344">
                     <Ellipse.RenderTransform>
                         <TransformGroup>
                             <ScaleTransform ScaleX=" />
                             <SkewTransform AngleX=" />
                             <RotateTransform Angle=" />
                             <TranslateTransform X=" />
                         </TransformGroup>
                     </Ellipse.RenderTransform>
                 </Ellipse>
                 <Border RenderTransformOrigin="0.492,1.006" Margin="1.081,0,1.086,-8.056" x:Name="border" VerticalAlignment="Bottom" Height="8.622" Background="Black" CornerRadius="1,1,0,0">
                     <Border.RenderTransform>
                         <TransformGroup>
                             <ScaleTransform ScaleX=" />
                             <SkewTransform AngleX=" />
                             <RotateTransform Angle=" />
                             <TranslateTransform X=" />
                         </TransformGroup>
                     </Border.RenderTransform>
                 </Border>
                 <Border Height="4.994" Background="Black" CornerRadius="1,1,0,0" RenderTransformOrigin="0.496,1.001" Margin="0.705,0,0.714,-8.058" x:Name="border1" VerticalAlignment="Bottom">
                     <Border.RenderTransform>
                         <TransformGroup>
                             <ScaleTransform ScaleX=" />
                             <SkewTransform AngleX=" />
                             <RotateTransform Angle=" />
                             <TranslateTransform X=" />
                         </TransformGroup>
                     </Border.RenderTransform>
                 </Border>
             </Grid>
         </Viewbox>
         <Label Content=" Foreground="Orange" HorizontalAlignment="Left" Margin="396,668,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.274,0.462"/>
     </Grid>
 </Window>

后台C#代码

  public partial class CoverForm : Window
     {
         public CoverForm(Action workAction)
         {
             InitializeComponent();
             this.workAction = workAction;
             System.Threading.Thread t = new System.Threading.Thread(ExecWorkAction);
             t.IsBackground = true;
             t.Start();
         }
         private Action workAction = null;
         private void ExecWorkAction()
         {
             try
             {
                 var workTask = new Task(workAction);
                 workTask.Start();
                 Task.WaitAll(workTask);
             }
             finally
             {
                 this.Dispatcher.Invoke(new Action(() => { this.Close(); }));
             }
         }
     }

调用的代码

  new CoverForm(() => {耗时的代码 }); }).Show();          

有需要的尽管拿去吧,要问我是谁,请叫我是雷锋。

WPF遮蔽层的实现的更多相关文章

  1. WPF 蒙层罩,正在加载

    参考园子里的一篇文章,比较好用.可以直接用,可以自己改. 动画效果: 容器的触发器,旋转容器: 属性配置:使用依赖属性,并且在xaml中写绑定.

  2. Loading 遮蔽层 简单实现。

    <!--背景div--><div id="bg" class="bg" style="display:none;text-align ...

  3. HTML页面弹出自定义对话框带遮蔽罩(使用JavaScript)

    转载:http://blog.sina.com.cn/s/blog_610f47c50100ohe4.html 原理其实很简单:首先绘制弹出的自定义对话框,将其使用display:none隐藏,因为设 ...

  4. 10、WPF程序集

    WPF核心程序集 PresentationCore.dll:这个程序集定义了许多构成WPF GUI层基础的类型.例如包含WPF Ink API(pc笔针输入,手写输入)的支持.几个动画基元以及几个图形 ...

  5. WPF核心对象模型-类图和解析

    DispatcherObject是根基类,通过继承该类,可以得到访问创建该对象的UI线程的Dispatcher对象的能力.通过Dispatcher对象,可以将代码段合并入该UI线程执行. Depend ...

  6. dotnet 读 WPF 源代码笔记 渲染收集是如何触发

    在 WPF 里面,渲染可以从架构上划分为两层.上层是 WPF 框架的 OnRender 之类的函数,作用是收集应用程序渲染的命令.上层将收集到的应用程序绘制渲染的命令传给下层,下层是 WPF 的 GF ...

  7. HTML+CSS项目开发总结

    好几天没更新博客了,刚实战完一个HTML+CSS的简单项目.经过几天的摸索,发现收益良多.之前只是单纯得写demo,看知识点,没有亲自实战项目.但实战过后才会了解,如何才能更好地提升自己的技术.针对这 ...

  8. easy ui 零散技巧

    1.Jquery带上下文查找: 格式:$(selector,context) 例如:$("input",window.document),查找当前文档下的说有input元素,也等价 ...

  9. html+jquery翻页相册(原创)

    呵呵 今天心情大好,再发一篇最进前端实现的相册模仿功能 这个相册是在一个网站的案例展示页面上实现的,没单独写出来,没时间,重用性也很差,以后有时间了再单独提取出来, 写这个玩意前,我在网上找了一些案例 ...

随机推荐

  1. [置顶] ubuntu 和 win7 远程登陆 + vnc登陆

    ubuntu 和 win7 远程登陆: 第一种(通过win7自带的远程桌面来连接ubuntu) 1. windows7配置 我的电脑->属性->远程设置.-----允许远程连接 2. ub ...

  2. 积累的VC编程小技巧之对话框

    1.用鼠标移动基于对话框的无标题栏程序的简单方法 void CVCTestDlg::OnLButtonDown(UINT nFlags, CPoint point) {    //一句话解决问题    ...

  3. 【ASP.NET Web API教程】5.3 发送HTML表单数据:文件上传与多部分MIME

    原文:[ASP.NET Web API教程]5.3 发送HTML表单数据:文件上传与多部分MIME 注:本文是[ASP.NET Web API系列教程]的一部分,如果您是第一次看本系列教程,请先看前面 ...

  4. [置顶] 强大的JQuery

    JQuery初识 为了简化JS的开发,一些JS库诞生了,JQuery就是其中的一个.JQuery是一个兼容多浏览器的Javascript框架.是轻量级的JS库.jQuery为用户提供了丰富的文档说明, ...

  5. GitHub上最受欢迎的Android开源项目TOP20

    以下这些开源项目都是从GitHub上筛选的,我强烈推荐android程序源代码有时间的时候自己在上面淘淘,或许能发现自己须要的开源程序. 了解开源项目有两个优点: 1.借鉴代码,一般来说.火爆的开源项 ...

  6. Cocos2d-x 3.0 创建一个场景,并设置现场的时候,项目开始执行上主动

    头 #ifndef __TEST_H__ #define __TEST_H__ #include "cocos2d.h" USING_NS_CC; class Test : pub ...

  7. DOM - Element 对象

    http://www.runoob.com/dom/dom-element.html Element 对象 Element 对象代表 XML 文档中的一个元素.元素可以包含属性.其他元素或文本.如果一 ...

  8. 改动file header (測)

    --改动file header ------------------------------------------------------------------------- cd $ORACLE ...

  9. android--手机桌面添加网址链接图标(解决方式)

    这样的做法最普遍最简单: 1.新建一个android空项目: 2.在drawable文件夹下加入图标文件,如icon.png:在values文件夹下的strings.xml文件里添加名称.如websi ...

  10. 知识网之C++总结

    米老师常说的一句话:构造知识网. 立即要考试了.就让我们构造一下属于C++的知识网.首先从总体上了解C++: 从图中能够了解到,主要有五部分.而当我们和之前的知识联系的话,也就剩下模板和运算符重载以及 ...