// 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); }
// IUI implementation ----------------------------------------------------------- UIElement IUI.GetWPFElement() { iuiStructure?.GetWPFElement(); toolButton.ToolTip = ToolTip; return(toolButton); }
// Methods public void InitialiseUI() { if (uiLayout != null) { Render = uiLayout.GetWPFElement(); } }
// IUI implementation UIElement IUI.GetWPFElement() { if (child != null) { _uiElement = child.GetWPFElement(); Configure(_uiElement); } return(_uiElement); }
// 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); }
// 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; } }
public void Run() { window.Content = iuiStructure?.GetWPFElement(); System.Windows.Application app = new System.Windows.Application(); app.Run(window); }
// Methods // IUI implementation UIElement IUI.GetWPFElement() { _checkBox.Content = content?.GetWPFElement(); return(_checkBox); }
UIElement IUI.GetWPFElement() { return(internalIUI.GetWPFElement()); }
public void CreateUI() { window.Content = iuiStructure?.GetWPFElement(); }