zoukankan      html  css  js  c++  java
  • DateChooser源码RevealTransitionEditor.cs

    using System;
    using System.ComponentModel;
    using System.Design;
    using System.Drawing;
    using System.Drawing.Design;
    using System.Windows.Forms;
    using System.Windows.Forms.Design;

    namespace CNBlogs.DCT.THIN.Design
    {
     /// <summary>
     /// RevealTransitionEditor 的摘要说明。 
     /// </summary>
     public class RevealTransitionEditor:UITypeEditor
     {
      public RevealTransitionEditor()
      {
       
      }
      public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
      {
       if (provider != null)
       {
        IWindowsFormsEditorService service1 = (IWindowsFormsEditorService) provider.GetService(typeof(IWindowsFormsEditorService));
        if (service1 == null)
        {
         return value;
        }
        if (this.tranUI == null)
        {
         this.tranUI = new RevealTransitionUI();
        }
        this.tranUI.Start(service1, value);
        service1.DropDownControl(this.tranUI);
        value = this.tranUI.Value;
        this.tranUI.End();
       }
       return value;
      }

      public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext context)
      {
       return UITypeEditorEditStyle.DropDown;
      }


      // Fields
      private RevealTransitionUI tranUI;


      
      
     }
    }

  • 相关阅读:
    边框的各种样式
    内容溢出显示省略号
    UNIAPP开发注意事项
    css文本的三条线 删除线 下划线 上划线
    防抖截流
    浏览器窗口改变触发的函数
    ES5数组方法
    弹性布局
    ubuntu16.04 安装adb
    git clone
  • 原文地址:https://www.cnblogs.com/think/p/170132.html
Copyright © 2011-2022 走看看