Exemplo n.º 1
0
 protected override void AttachCore()
 {
     Left.Attach();
     if (!Left.Value)
     {
         Right.Attach();
     }
 }
Exemplo n.º 2
0
 protected override bool GetValue()
 {
     if (Left.Value)
     {
         return(true);
     }
     if (!Right.IsAttached)
     {
         Right.Attach();
     }
     return(Right.Value);
 }
Exemplo n.º 3
0
 protected override void LeftChanged(object sender, ValueChangedEventArgs e)
 {
     if (!IsAttached)
     {
         return;
     }
     if (Left.Value)
     {
         Right.Detach();
     }
     else
     {
         Right.Attach();
     }
     Refresh();
 }
Exemplo n.º 4
0
        internal override void Attach(ElementStyle node)
        {
            base.Attach(node);

            if (Left != null)
            {
                Left.Attach(node, this, "left");
            }
            if (Top != null)
            {
                Top.Attach(node, this, "top");
            }
            if (Right != null)
            {
                Right.Attach(node, this, "right");
            }
            if (Bottom != null)
            {
                Bottom.Attach(node, this, "bottom");
            }
        }