• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IControl类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中IControl的典型用法代码示例。如果您正苦于以下问题:C# IControl类的具体用法?C# IControl怎么用?C# IControl使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IControl类属于命名空间,在下文中一共展示了IControl类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: AddControl

 public virtual void AddControl(string name, IControl ctrl)
 {
     if (_controlHash.ContainsKey(name))
         _controlHash[name] = ctrl;
     else
         _controlHash.Add(name, ctrl);
 }
开发者ID:xeno-by,项目名称:dotwindows,代码行数:7,代码来源:ViewFactory.cs


示例2: Add

 public void Add( IControl control )
 {
     lock ( this._lock )
     {
         this._selectedControl.Add( control );
     }
 }
开发者ID:Klakier,项目名称:Road-Traffic-Simualator,代码行数:7,代码来源:SelectedControlsCollection.cs


示例3: DevToolsViewModel

        public DevToolsViewModel(IControl root)
        {
            _logicalTree = new TreePageViewModel(LogicalTreeNode.Create(root));
            _visualTree = new TreePageViewModel(VisualTreeNode.Create(root));

            this.WhenAnyValue(x => x.SelectedTab).Subscribe(index =>
            {
                switch (index)
                {
                    case 0:
                        Content = _logicalTree;
                        break;
                    case 1:
                        Content = _visualTree;
                        break;
                }
            });

            _focusedControl = KeyboardDevice.Instance
                .WhenAnyValue(x => x.FocusedElement)
                .Select(x => x?.GetType().Name)
                .ToProperty(this, x => x.FocusedControl);

            _pointerOverElement = root.GetObservable(TopLevel.PointerOverElementProperty)
                .Select(x => x?.GetType().Name)
                .ToProperty(this, x => x.PointerOverElement);
        }
开发者ID:jkoritzinsky,项目名称:Avalonia,代码行数:27,代码来源:DevToolsViewModel.cs


示例4: Create

 public IEnumerable<BuilderAction> Create( IControl control )
 {
     var builder = new Builder();
     yield return new BuilderAction( Order.High, context => builder.Build( context, control ) );
     yield return new BuilderAction( Order.Normal, builder.Connect );
     yield return new BuilderAction( Order.Low, builder.Setup );
 }
开发者ID:Klakier,项目名称:Road-Traffic-Simualator,代码行数:7,代码来源:CarsRemoverBuilder.cs


示例5: frmContextSearch

 public frmContextSearch(IControl parentControl)
 {
     InitializeComponent();
     Parent = parentControl;
     ContextSearchId = parentControl.ContextSearchId;
     contextSearchManager = new ContextSearch(ContextSearchId);
 }
开发者ID:sherif-hfm,项目名称:ItsBackOffice,代码行数:7,代码来源:frmContextSearch.cs


示例6:

		void IGrid.SetContent(int row, int column, IControl content)
		{
			Grid.SetRow((Windows.UI.Xaml.FrameworkElement) content, row);
			Grid.SetColumn((Windows.UI.Xaml.FrameworkElement) content, column);

			base.Children.Add((Windows.UI.Xaml.FrameworkElement) content);
		}
开发者ID:okhosting,项目名称:OKHOSTING.UI,代码行数:7,代码来源:Grid.cs


示例7: DevTools

 public DevTools(IControl root)
 {
     InitializeComponent();
     Root = root;
     DataContext = new DevToolsViewModel(root);
     Root.PointerMoved += RootPointerMoved;
 }
开发者ID:abdelkarim,项目名称:Perspex,代码行数:7,代码来源:DevTools.paml.cs


示例8:

		void IGrid.SetContent(int row, int column, IControl content)
		{
			global::Xamarin.Forms.Grid.SetRow((global::Xamarin.Forms.View) content, row);
			global::Xamarin.Forms.Grid.SetColumn((global::Xamarin.Forms.View) content, column);

			base.Children.Add((global::Xamarin.Forms.View) content);
		}
开发者ID:gitter-badger,项目名称:OKHOSTING.UI,代码行数:7,代码来源:Grid.cs


示例9: Start

 void Start()
 {
     m_LineRenderer = GetComponent<LineRenderer> ();
     m_Camera = GetComponentInParent<Camera> ();
     m_Control = GetComponentInParent<IControl> ();
     m_PlayerStats = GetComponentInParent<PlayerStats> ();
 }
开发者ID:LucidNeko,项目名称:WeAreAllOne,代码行数:7,代码来源:DrawRay.cs


示例10: ExportQuaternionController

        private static bool ExportQuaternionController(IControl control, string property, List<BabylonAnimation> animations)
        {
            IQuat previousQuat = null;

            return ExportController(control, property, animations, 0x2003, BabylonAnimation.DataType.Quaternion,
                (index, keyControl) =>
                {
                    var key = Loader.Global.ILinRotKey.Create();
                    keyControl.GetKey(index, key);
                    var newQuat = key.Val;

                    if (index > 0)
                    {
                        newQuat = previousQuat.Multiply(newQuat);
                    }

                    previousQuat = newQuat;

                    return new BabylonAnimationKey
                    {
                        frame = key.Time / Ticks,
                        values = newQuat.ToArray()
                    };
                });
        }
开发者ID:thr0wn,项目名称:Babylon.js,代码行数:25,代码来源:BabylonExporter.Animation.cs


示例11: MoveToElement

 public void MoveToElement(IControl WebElement)
 {
     //Thread.Sleep(10000);
     SeleniumActions.MoveToElement(((SeleniumWebControls)WebElement).aWebElement).Build().Perform();
     //Thread.Sleep(10000);
     //element.Click().Build().Perform();
 }
开发者ID:geeksree,项目名称:cSharpGeeks,代码行数:7,代码来源:Actions.cs


示例12: CanAdd

        public bool CanAdd( IControl control )
        {
            if ( this._route.IsEmpty() ) { return true; }

            // NOTE This only fake
            return true;
        }
开发者ID:Klakier,项目名称:Road-Traffic-Simualator,代码行数:7,代码来源:Route.cs


示例13: ReplaceWith

 public void ReplaceWith( IControl control )
 {
     lock ( this._lock )
     {
         this._selectedControl.Clear();
         this._selectedControl.Add( control );
     }
 }
开发者ID:Klakier,项目名称:Road-Traffic-Simualator,代码行数:8,代码来源:SelectedControlsCollection.cs


示例14: StateDefinition

        public StateDefinition(IControl control)
        {
            if (control == null)
                throw new ArgumentNullException("control");

            States = new Dictionary<State, bool>();
            Image = control;
        }
开发者ID:powerdude,项目名称:xamarin-forms-xna,代码行数:8,代码来源:StateList.cs


示例15: ApplyTo

 public override void ApplyTo(IControl control)
 {
     control.RollOn += HandleRollOn;
     control.RollOff += HandleRollOff;
     control.Push += HandlePush;
     control.Click += HandleClick;
     control.EnabledChange += HandleEnabledChange;
 }
开发者ID:vchelaru,项目名称:FlatRedBall,代码行数:8,代码来源:ButtonBehavior.cs


示例16: GameCompleteController

 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="controlleControl">Controller control interface.</param>
 /// <param name="content">Content manager for this application packaged content.</param>
 /// <param name="device">Current graphics device to use for rendering</param>
 public GameCompleteController(IControl controllerControl, ContentManager content, GraphicsDevice device)
 {
     m_control = controllerControl;
     m_content = content;
     m_graphicsDevice = device;
     m_model = new GameCompleteModel();
     m_view = new GameCompleteView(content, device);
 }
开发者ID:schlash,项目名称:Box-XNA,代码行数:14,代码来源:GameCompleteController.cs


示例17: ShowChildrenControls

 /// <summary>
 /// Private method to show children controls when parent is loaded
 /// </summary>
 /// <param name="control"></param>
 private void ShowChildrenControls(IControl control)
 {
     foreach (var child in control.ChildrenControls)
     {
         if (child is Form)
             ((Form)child).Show();
     }
 }
开发者ID:sassy224,项目名称:OneToManySaver,代码行数:12,代码来源:OneToManyMediator.cs


示例18: GameController

 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="controlleControl">Controller control interface.</param>
 /// <param name="content">Content manager for this application packaged content.</param>
 /// <param name="device">Current graphics device to use for rendering</param>
 public GameController(IControl controllerControl, ContentManager content, GraphicsDevice device)
 {
     m_control = controllerControl;
     m_content = content;
     m_graphicsDevice = device;
     m_gameView = new GameView(content, device);
     m_gameModel = new GameModel(new Level(Settings.Instance.CurrentLevel), m_gameView);
 }
开发者ID:schlash,项目名称:Box-XNA,代码行数:14,代码来源:GameController.cs


示例19: UnregisterControl

 public void UnregisterControl(IControl controlBase)
 {
     if (mainPanel.Controls.Contains((Control)controlBase))
       {
     mainPanel.Controls.Remove((Control)controlBase);
     ((Control)controlBase).Dispose();
       }
 }
开发者ID:Niedda,项目名称:Impressio,代码行数:8,代码来源:MainViewRibbon.cs


示例20: Start

 // Use this for initialization
 void Start()
 {
     m_Control = GetComponent<IControl> ();
     m_PlayerController = GetComponent<PlayerController> ();
     m_Camera = GetComponentInChildren<Camera> ().transform;
     //		m_Camera = LevelManager.Instance.GetCamera (gameObject).transform;
     m_Animator = GetComponent<Animator> ();
 }
开发者ID:LucidNeko,项目名称:WeAreAllOne,代码行数:9,代码来源:FPSPlayerScript.cs



注:本文中的IControl类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IControlFactory类代码示例发布时间:2022-05-24
下一篇:
C# IContractResolver类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap