ToolBarTray.Orientation Egenskap

Definition

Anger orienteringen för en ToolBarTray.

public:
 property System::Windows::Controls::Orientation Orientation { System::Windows::Controls::Orientation get(); void set(System::Windows::Controls::Orientation value); };
public System.Windows.Controls.Orientation Orientation { get; set; }
member this.Orientation : System.Windows.Controls.Orientation with get, set
Public Property Orientation As Orientation

Egenskapsvärde

Ett av Orientation värdena. Standardvärdet är Horizontal.

Exempel

I följande exempel visas hur du använder Orientation egenskapen för att ange orienteringen för verktygslistfältet. Detta avgör orienteringen för verktygsfältet.

<ToolBarTray Orientation="Vertical" 
             Background="White" >
  <ToolBar Band="1" BandIndex="1">
    <Button>
      <Image Source="toolbargraphics\copy.bmp" />
    </Button>
    <Button>
      <Image Source="toolbargraphics\paste.bmp" />
    </Button>
  </ToolBar>
  <ToolBar Band="2" BandIndex="1">
    <Button>
      <Image Source="toolbargraphics\undo.bmp" />
    </Button>
    <Button>
      <Image Source="toolbargraphics\redo.bmp" />
    </Button>
  </ToolBar>
</ToolBarTray>

Kommentarer

Information om beroendeegenskap

Objekt Value
Identifierarfält OrientationProperty
Metadataegenskaper inställda på true AffectsParentMeasure

Gäller för

Se även