示例#1
0
 // This method is the main entry point to start the application. Call after all wiring and initilization is completed.
 public void Run()
 {
     window.Content = iuiStructure.GetWPFElement();
     System.Windows.Application app = new System.Windows.Application();
     Console.WriteLine("MainWindow Running");
     app.Run(window);
 }
示例#2
0
        // IUI implementation -----------------------------------------------------------
        UIElement IUI.GetWPFElement()
        {
            iuiStructure?.GetWPFElement();

            toolButton.ToolTip = ToolTip;
            return(toolButton);
        }
示例#3
0
 // Methods
 public void InitialiseUI()
 {
     if (uiLayout != null)
     {
         Render = uiLayout.GetWPFElement();
     }
 }
示例#4
0
        // IUI implementation
        UIElement IUI.GetWPFElement()
        {
            if (child != null)
            {
                _uiElement = child.GetWPFElement();
                Configure(_uiElement);
            }

            return(_uiElement);
        }
示例#5
0
        // IUI implementation
        UIElement IUI.GetWPFElement()
        {
            foreach (var child in children)
            {
                _menuItem.Items.Add(child.GetWPFElement());
            }

            _menuItem.Click += (sender, args) => clickedEvent?.Execute();

            if (icon != null)
            {
                _menuItem.Icon = icon.GetWPFElement();
            }

            return(_menuItem);
        }
示例#6
0
        // IEvent implementation
        void IEvent.Execute()
        {
            if (!_popup.IsOpen)
            {
                if (_childContent == null && child != null)
                {
                    _childContent = child.GetWPFElement();
                    _popup.Child  = _childContent;
                }

                if (GetPlacementObject != null)
                {
                    _popup.PlacementTarget = GetPlacementObject();
                }
                _popup.Placement          = PlacementMode;
                _popup.IsOpen             = true;
                _popup.PlacementRectangle = new Rect(new Point(), new Point(10, 10));
            }
            else
            {
                _popup.IsOpen = false;
            }
        }
示例#7
0
 public void Run()
 {
     window.Content = iuiStructure?.GetWPFElement();
     System.Windows.Application app = new System.Windows.Application();
     app.Run(window);
 }
示例#8
0
        // Methods

        // IUI implementation
        UIElement IUI.GetWPFElement()
        {
            _checkBox.Content = content?.GetWPFElement();
            return(_checkBox);
        }
 UIElement IUI.GetWPFElement()
 {
     return(internalIUI.GetWPFElement());
 }
示例#10
0
 public void CreateUI()
 {
     window.Content = iuiStructure?.GetWPFElement();
 }