本文整理汇总了C#中IControl类的典型用法代码示例。如果您正苦于以下问题:C# IControl类的具体用法?C# IControl怎么用?C# IControl使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IControl类属于命名空间,在下文中一共展示了IControl类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AddControl
public virtual void AddControl(string name, IControl ctrl)
{
if (_controlHash.ContainsKey(name))
_controlHash[name] = ctrl;
else
_controlHash.Add(name, ctrl);
}
示例2: Add
public void Add( IControl control )
{
lock ( this._lock )
{
this._selectedControl.Add( control );
}
}
示例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);
}
示例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 );
}
示例5: frmContextSearch
public frmContextSearch(IControl parentControl)
{
InitializeComponent();
Parent = parentControl;
ContextSearchId = parentControl.ContextSearchId;
contextSearchManager = new ContextSearch(ContextSearchId);
}
示例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);
}
示例7: DevTools
public DevTools(IControl root)
{
InitializeComponent();
Root = root;
DataContext = new DevToolsViewModel(root);
Root.PointerMoved += RootPointerMoved;
}
示例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);
}
示例9: Start
void Start()
{
m_LineRenderer = GetComponent<LineRenderer> ();
m_Camera = GetComponentInParent<Camera> ();
m_Control = GetComponentInParent<IControl> ();
m_PlayerStats = GetComponentInParent<PlayerStats> ();
}
示例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()
};
});
}
示例11: MoveToElement
public void MoveToElement(IControl WebElement)
{
//Thread.Sleep(10000);
SeleniumActions.MoveToElement(((SeleniumWebControls)WebElement).aWebElement).Build().Perform();
//Thread.Sleep(10000);
//element.Click().Build().Perform();
}
示例12: CanAdd
public bool CanAdd( IControl control )
{
if ( this._route.IsEmpty() ) { return true; }
// NOTE This only fake
return true;
}
示例13: ReplaceWith
public void ReplaceWith( IControl control )
{
lock ( this._lock )
{
this._selectedControl.Clear();
this._selectedControl.Add( control );
}
}
示例14: StateDefinition
public StateDefinition(IControl control)
{
if (control == null)
throw new ArgumentNullException("control");
States = new Dictionary<State, bool>();
Image = control;
}
示例15: ApplyTo
public override void ApplyTo(IControl control)
{
control.RollOn += HandleRollOn;
control.RollOff += HandleRollOff;
control.Push += HandlePush;
control.Click += HandleClick;
control.EnabledChange += HandleEnabledChange;
}