'宣言 Public Property VerticalToolAlignment As RibbonPanelVerticalToolAlignment
public RibbonPanelVerticalToolAlignment VerticalToolAlignment {get; set;}
Dim b1 As New ButtonTool() b1.Caption = "B1" Dim b2 As New ButtonTool() b2.Caption = "B2" Dim toolVWrapPanel As New ToolVerticalWrapPanel() toolVWrapPanel.VerticalToolAlignment = RibbonPanelVerticalToolAlignment.Bottom toolVWrapPanel.Children.Add(b1) toolVWrapPanel.Children.Add(b2)
ButtonTool b1 = new ButtonTool(); b1.Caption = "B1"; ButtonTool b2 = new ButtonTool(); b2.Caption = "B2"; ToolVerticalWrapPanel toolVWrapPanel = new ToolVerticalWrapPanel(); toolVWrapPanel.VerticalToolAlignment = RibbonPanelVerticalToolAlignment.Bottom; toolVWrapPanel.Children.Add(b1); toolVWrapPanel.Children.Add(b2);