Beispiel #1
0
 private static object AddDockPanel(this UserControl userControl, UIElement painel, DockPanel parent, Dock?dock = null)
 {
     userControl.AddFrameworkElement(painel, parent);
     if (dock != null)
     {
         DockPanel.SetDock(painel, dock.Value);
     }
     return(painel);
 }
Beispiel #2
0
 private static object AddStackPanel(this UserControl userControl, UIElement painel, StackPanel parent, Orientation?orientation = null)
 {
     userControl.AddFrameworkElement(painel, parent);
     if (orientation != null)
     {
         parent.Orientation = orientation.Value;
     }
     return(painel);
 }