Ejemplo n.º 1
0
 public GridSplitterHandle(View parent, View layoutParent = null, string id = null, Template template = null, Action <View> initializer = null) :
     base(parent, layoutParent, id, template ?? GridSplitterHandleTemplates.Default, initializer)
 {
     // constructing Image (SplitterHandle)
     SplitterHandle = new Image(this, this, "SplitterHandle", SplitterHandleTemplate);
     Drag.RegisterHandler(this, "OnDrag");
     BeginDrag.RegisterHandler(this, "OnBeginDrag");
     InitializePotentialDrag.RegisterHandler(this, "OnInitializePotentialDrag");
     EndDrag.RegisterHandler(this, "OnEndDrag");
     MouseEnter.RegisterHandler(this, "OnMouseEnter");
     MouseExit.RegisterHandler(this, "OnMouseExit");
     ContentContainer = SplitterHandle;
     this.AfterInitializeInternal();
 }