Пример #1
0
        public override void UpdateElementDescriptor()
        {
            base.UpdateElementDescriptor();

            ControlDescriptorChild controlDescriptor = (ControlDescriptorChild)ElementDescriptor;

            _grid.Children.Remove(_leftElement?.UIElement);
            _grid.Children.Remove(_rightElement?.UIElement);

            if (!String.IsNullOrEmpty(controlDescriptor.Left))
            {
                _leftElement = _dreamInterface.Windows[controlDescriptor.Left];
                _leftElement.UIElement.HorizontalExpand = true;
                _leftElement.UIElement.VerticalExpand   = true;
                _grid.Children.Add(_leftElement.UIElement);
            }
            else
            {
                _leftElement = null;
            }

            if (!String.IsNullOrEmpty(controlDescriptor.Right))
            {
                _rightElement = _dreamInterface.Windows[controlDescriptor.Right];
                _rightElement.UIElement.HorizontalExpand = true;
                _rightElement.UIElement.VerticalExpand   = true;
                _grid.Children.Add(_rightElement.UIElement);
            }
            else
            {
                _rightElement = null;
            }

            UpdateGrid(controlDescriptor.IsVert);
        }
Пример #2
0
 public ControlTab(ControlDescriptor controlDescriptor, ControlWindow window) :
     base(controlDescriptor, window)
 {
 }
Пример #3
0
 public ControlBrowser(ControlDescriptor controlDescriptor, ControlWindow window)
     : base(controlDescriptor, window)
 {
     IoCManager.InjectDependencies(this);
 }
Пример #4
0
 public ControlButton(ControlDescriptor controlDescriptor, ControlWindow window) : base(controlDescriptor, window)
 {
 }
Пример #5
0
        //private Border _border;

        public ControlOutput(ControlDescriptor controlDescriptor, ControlWindow window) : base(controlDescriptor, window)
        {
        }