Exemplo n.º 1
0
 public IMTContainer AddControlWithAllGestures(IMTouchControl control, double left, double top)
 {
     AddToCanvas((UIElement)control);
     var cont = RegisterElement(control, true, null);
     Canvas.SetLeft((UIElement)control, left);
     Canvas.SetTop((UIElement)control, top);
     control.Container.Reset();
     control.Container.StartX = left.ToInt();
     control.Container.StartY = top.ToInt();
     return cont;
 }
Exemplo n.º 2
0
 public IMTContainer AddControl(IMTouchControl control, TouchAction[] touchActions, double left, double top)
 {
     AddToCanvas((UIElement) control);
     var cont = RegisterElement(control, false, touchActions);
     Canvas.SetLeft((UIElement)control, left);
     Canvas.SetTop((UIElement)control, top);
     control.Container.Reset();
     control.Container.StartX = left.ToInt();
     control.Container.StartY = top.ToInt();
     return cont;
 }
Exemplo n.º 3
0
 public void AddControlWithAllNoGestures(IMTouchControl control, double left, double top)
 {
     AddToCanvas((UIElement)control);
     Canvas.SetLeft((UIElement)control, left);
     Canvas.SetTop((UIElement)control, top);
 }
Exemplo n.º 4
0
 public void UnRegisterElement(IMTouchControl control)
 {
     if (control.Container == null) return;
     Framework.UnregisterElement(control.Container.Id);
     Framework.ForceRefresh();
 }
Exemplo n.º 5
0
 public void ReRegisterControl(IMTouchControl control, bool supportAllTouchAction, TouchAction[] touchActions)
 {
     UnRegisterElement(control);
     RegisterElement(control, supportAllTouchAction, touchActions);
 }
Exemplo n.º 6
0
 public void RemoveControl(IMTouchControl control)
 {
     UnRegisterElement(control);
     Canvas.Children.Remove((FrameworkElement)control);
 }
Exemplo n.º 7
0
 public IMTContainer RegisterElement(IMTouchControl control, bool supportAllTouches, TouchAction[] touchActions)
 {
     control.Container = RegisterElement((FrameworkElement)control, supportAllTouches, touchActions);
     return control.Container;
 }