AppBar Class

명령 및 환경에 대한 응용 프로그램 UI 구성 요소를 포함하는 컨테이너 컨트롤을 나타냅니다.

상속

Object
  DependencyObject
    UIElement
      FrameworkElement
        Control
          ContentControl
            AppBar

구문


public class AppBar : ContentControl


<AppBar .../>
-or-
<AppBar>
  content
</AppBar>

특성

[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]
[WebHostHidden()]

멤버

AppBar클래스에는 다음과 같은 형식의 멤버가 있습니다.

생성자

AppBar클래스에는 다음과 같은 생성자가 있습니다.

생성자Description
AppBar Initializes a new instance of the AppBar class.

 

이벤트

AppBar클래스에는 다음과 같은 이벤트가 있습니다.

이벤트Description
Closed Occurs when the AppBar changes from visible to hidden.
DataContextChanged Occurs when the value of the FrameworkElement.DataContext property changes. (다음에서 상속됨 FrameworkElement)
DoubleTapped Occurs when an otherwise unhandled DoubleTap interaction occurs over the hit test area of this element. (다음에서 상속됨 UIElement)
DragEnter Occurs when the input system reports an underlying drag event with this element as the target. (다음에서 상속됨 UIElement)
DragLeave Occurs when the input system reports an underlying drag event with this element as the origin. (다음에서 상속됨 UIElement)
DragOver Occurs when the input system reports an underlying drag event with this element as the potential drop target. (다음에서 상속됨 UIElement)
Drop Occurs when the input system reports an underlying drop event with this element as the drop target. (다음에서 상속됨 UIElement)
GotFocus Occurs when a UIElement receives focus. (다음에서 상속됨 UIElement)
Holding Occurs when an otherwise unhandled Hold interaction occurs over the hit test area of this element. (다음에서 상속됨 UIElement)
IsEnabledChanged Occurs when the IsEnabled property changes. (다음에서 상속됨 Control)
KeyDown Occurs when a keyboard key is pressed while the UIElement has focus. (다음에서 상속됨 UIElement)
KeyUp Occurs when a keyboard key is released while the UIElement has focus. (다음에서 상속됨 UIElement)
LayoutUpdated Occurs when the layout of the visual tree changes, due to layout-relevant properties changing value or some other action that refreshes the layout. (다음에서 상속됨 FrameworkElement)
Loaded Occurs when a FrameworkElement has been constructed and added to the object tree, and is ready for interaction. (다음에서 상속됨 FrameworkElement)
LostFocus Occurs when a UIElement loses focus. (다음에서 상속됨 UIElement)
ManipulationCompleted Occurs when a manipulation on the UIElement is complete. (다음에서 상속됨 UIElement)
ManipulationDelta Occurs when the input device changes position during a manipulation. (다음에서 상속됨 UIElement)
ManipulationInertiaStarting Occurs when the input device loses contact with the UIElement object during a manipulation and inertia begins. (다음에서 상속됨 UIElement)
ManipulationStarted Occurs when an input device begins a manipulation on the UIElement. (다음에서 상속됨 UIElement)
ManipulationStarting Occurs when the manipulation processor is first created. (다음에서 상속됨 UIElement)
Opened Occurs when the AppBar changes from hidden to visible.
PointerCanceled Occurs when a pointer that made contact abnormally loses contact. (다음에서 상속됨 UIElement)
PointerCaptureLost Occurs when pointer capture previously held by this element moves to another element or elsewhere. (다음에서 상속됨 UIElement)
PointerEntered Occurs when a pointer enters the hit test area of this element. (다음에서 상속됨 UIElement)
PointerExited Occurs when a pointer leaves the hit test area of this element. (다음에서 상속됨 UIElement)
PointerMoved Occurs when a pointer moves while the pointer remains within the hit test area of this element. (다음에서 상속됨 UIElement)
PointerPressed Occurs when the pointer device initiates a Press action within this element. (다음에서 상속됨 UIElement)
PointerReleased Occurs when the pointer device that previously initiated a Press action is released, while within this element. (다음에서 상속됨 UIElement)
PointerWheelChanged Occurs when the delta value of a pointer wheel changes. (다음에서 상속됨 UIElement)
RightTapped Occurs when a right-tap input stimulus happens while the pointer is over the element. (다음에서 상속됨 UIElement)
SizeChanged Occurs when either the ActualHeight or the ActualWidth property changes value on a FrameworkElement. (다음에서 상속됨 FrameworkElement)
Tapped Occurs when an otherwise unhandled Tap interaction occurs over the hit test area of this element. (다음에서 상속됨 UIElement)
Unloaded Occurs when this object is no longer connected to the main object tree. (다음에서 상속됨 FrameworkElement)

 

메서드

The AppBar 클래스 - 이러한 메서드가 있습니다. 다음 위치의 메서드도 상속합니다. Object 클래스.

메서드Description
AddHandler Adds a routed event handler for a specified routed event, adding the handler to the handler collection on the current element. Specify handledEventsToo as true to have the provided handler be invoked even if the event is handled elsewhere. (다음에서 상속됨 UIElement)
ApplyTemplate Loads the relevant control template so that its parts can be referenced. (다음에서 상속됨 Control)
Arrange Positions child objects and determines a size for a UIElement. Parent objects that implement custom layout for their child elements should call this method from their layout override implementations to form a recursive layout update. (다음에서 상속됨 UIElement)
ArrangeOverride Provides the behavior for the Arrange pass of layout. Classes can override this method to define their own Arrange pass behavior. (다음에서 상속됨 FrameworkElement)
CancelDirectManipulations Cancels ongoing direct manipulation processing (system-defined panning/zooming) on any ScrollViewer parent that contains the current UIElement. (다음에서 상속됨 UIElement)
CapturePointer Sets pointer capture to a UIElement. Once captured, only the element that has capture will fire pointer-related events. (다음에서 상속됨 UIElement)
ClearValue Clears the local value of a dependency property. (다음에서 상속됨 DependencyObject)
FindName Retrieves an object that has the specified identifier name. (다음에서 상속됨 FrameworkElement)
FindSubElementsForTouchTargeting Enables a UIElement subclass to expose child elements that assist with resolving touch targeting. (다음에서 상속됨 UIElement)
Focus Attempts to set the focus on the control. (다음에서 상속됨 Control)
GetAnimationBaseValue Returns any base value established for a dependency property, which would apply in cases where an animation is not active. (다음에서 상속됨 DependencyObject)
GetBindingExpression Returns the BindingExpression that represents the binding on the specified property. (다음에서 상속됨 FrameworkElement)
GetTemplateChild Retrieves the named element in the instantiated ControlTemplate visual tree. (다음에서 상속됨 Control)
GetValue Returns the current effective value of a dependency property from a DependencyObject. (다음에서 상속됨 DependencyObject)
GoToElementStateCore When implemented in a derived class, enables per-state construction of a visual tree for a control template in code, rather than by loading XAML for all states at control startup. (다음에서 상속됨 FrameworkElement)
InvalidateArrange Invalidates the arrange state (layout) for a UIElement. After the invalidation, the UIElement will have its layout updated, which will occur asynchronously. (다음에서 상속됨 UIElement)
InvalidateMeasure Invalidates the measurement state (layout) for a UIElement. (다음에서 상속됨 UIElement)
Measure Updates the DesiredSize of a UIElement. Typically, objects that implement custom layout for their layout children call this method from their own MeasureOverride implementations to form a recursive layout update. (다음에서 상속됨 UIElement)
MeasureOverride Provides the behavior for the Measure pass of the layout cycle. Classes can override this method to define their own Measure pass behavior. (다음에서 상속됨 FrameworkElement)
OnApplyTemplate Invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in your app. Override this method to influence the default post-template logic of a class. (다음에서 상속됨 FrameworkElement)
OnClosed Invoked when the AppBar changes from visible to hidden.
OnContentChanged Invoked when the value of the Content property changes. (다음에서 상속됨 ContentControl)
OnContentTemplateChanged Invoked when the value of the ContentTemplate property changes. (다음에서 상속됨 ContentControl)
OnContentTemplateSelectorChanged Invoked when the value of the ContentTemplateSelector property changes. (다음에서 상속됨 ContentControl)
OnCreateAutomationPeer When implemented in a derived class, returns class-specific AutomationPeer implementations for the Microsoft UI Automation infrastructure. (다음에서 상속됨 UIElement)
OnDisconnectVisualChildren Override this method to implement how layout and logic should behave when items are removed from a class-specific content or children property. (다음에서 상속됨 UIElement)
OnDoubleTapped Called before the DoubleTapped event occurs. (다음에서 상속됨 Control)
OnDragEnter Called before the DragEnter event occurs. (다음에서 상속됨 Control)
OnDragLeave Called before the DragLeave event occurs. (다음에서 상속됨 Control)
OnDragOver Called before the DragOver event occurs. (다음에서 상속됨 Control)
OnDrop Called before the Drop event occurs. (다음에서 상속됨 Control)
OnGotFocus Called before the GotFocus event occurs. (다음에서 상속됨 Control)
OnHolding Called before the Holding event occurs. (다음에서 상속됨 Control)
OnKeyDown Called before the KeyDown event occurs. (다음에서 상속됨 Control)
OnKeyUp Called before the KeyUp event occurs. (다음에서 상속됨 Control)
OnLostFocus Called before the LostFocus event occurs. (다음에서 상속됨 Control)
OnManipulationCompleted Called before the ManipulationCompleted event occurs. (다음에서 상속됨 Control)
OnManipulationDelta Called before the ManipulationDelta event occurs. (다음에서 상속됨 Control)
OnManipulationInertiaStarting Called before the ManipulationInertiaStarting event occurs. (다음에서 상속됨 Control)
OnManipulationStarted Called before the ManipulationStarted event occurs. (다음에서 상속됨 Control)
OnManipulationStarting Called before the ManipulationStarting event occurs. (다음에서 상속됨 Control)
OnOpened Invoked when the AppBar changes from hidden to visible, or is first displayed.
OnPointerCanceled Called before the PointerCanceled event occurs. (다음에서 상속됨 Control)
OnPointerCaptureLost Called before the PointerCaptureLost event occurs. (다음에서 상속됨 Control)
OnPointerEntered Called before the PointerEntered event occurs. (다음에서 상속됨 Control)
OnPointerExited Called before the PointerExited event occurs. (다음에서 상속됨 Control)
OnPointerMoved Called before the PointerMoved event occurs. (다음에서 상속됨 Control)
OnPointerPressed Called before the PointerPressed event occurs. (다음에서 상속됨 Control)
OnPointerReleased Called before the PointerReleased event occurs. (다음에서 상속됨 Control)
OnPointerWheelChanged Called before the PointerWheelChanged event occurs. (다음에서 상속됨 Control)
OnRightTapped Called before the RightTapped event occurs. (다음에서 상속됨 Control)
OnTapped Called before the Tapped event occurs. (다음에서 상속됨 Control)
ReadLocalValue Returns the local value of a dependency property, if a local value is set. (다음에서 상속됨 DependencyObject)
ReleasePointerCapture Releases pointer captures for capture of one specific pointer by this UIElement. (다음에서 상속됨 UIElement)
ReleasePointerCaptures Releases all pointer captures held by this element. (다음에서 상속됨 UIElement)
RemoveHandler Removes the specified routed event handler from this UIElement. Typically the handler in question was added by AddHandler. (다음에서 상속됨 UIElement)
SetBinding Attaches a binding to a FrameworkElement, using the provided binding object. (다음에서 상속됨 FrameworkElement)
SetValue Sets the local value of a dependency property on a DependencyObject. (다음에서 상속됨 DependencyObject)
TransformToVisual Returns a transform object that can be used to transform coordinates from the UIElement to the specified object. (다음에서 상속됨 UIElement)
UpdateLayout Ensures that all positions of child objects of a UIElement are properly updated for layout. (다음에서 상속됨 UIElement)

 

속성

AppBar클래스 - 이러한 속성이 있습니다.

속성사용 권한Description

ActualHeight

읽기 전용Gets the rendered height of a FrameworkElement. (다음에서 상속됨 FrameworkElement)

ActualWidth

읽기 전용Gets the rendered width of a FrameworkElement. (다음에서 상속됨 FrameworkElement)

AllowDrop

읽기/쓰기Gets or sets a value that determines whether this UIElement can be a drop target for purposes of drag-and-drop operations. (다음에서 상속됨 UIElement)

Background

읽기/쓰기Gets or sets a brush that provides the background of the control. (다음에서 상속됨 Control)

BaseUri

읽기 전용Gets a Uniform Resource Identifier (URI) that represents the base Uniform Resource Identifier (URI) for an XAML-constructed object at XAML load time. This property is useful for Uniform Resource Identifier (URI) resolution at run time. (다음에서 상속됨 FrameworkElement)

BorderBrush

읽기/쓰기Gets or sets a brush that describes the border background of a control. (다음에서 상속됨 Control)

BorderThickness

읽기/쓰기Gets or sets the border thickness of a control. (다음에서 상속됨 Control)

CacheMode

읽기/쓰기Gets or sets a value that indicates that rendered content should be cached as a composited bitmap when possible. (다음에서 상속됨 UIElement)

CharacterSpacing

읽기/쓰기Gets or sets the uniform spacing between characters, in units of 1/1000 of an em. (다음에서 상속됨 Control)

Clip

읽기/쓰기Gets or sets the RectangleGeometry used to define the outline of the contents of a UIElement. (다음에서 상속됨 UIElement)

CompositeMode

읽기/쓰기Gets or sets a property that declares alternate composition and blending modes for the element in its parent layout and window. This is relevant for elements that are involved in a mixed XAML / Microsoft DirectX UI. (다음에서 상속됨 UIElement)

Content

읽기/쓰기Gets or sets the content of a ContentControl. (다음에서 상속됨 ContentControl)

ContentTemplate

읽기/쓰기Gets or sets the data template that is used to display the content of the ContentControl. (다음에서 상속됨 ContentControl)

ContentTemplateRoot

읽기 전용Gets the root element of the date template specified by the ContentTemplate property. (다음에서 상속됨 ContentControl)

ContentTemplateSelector

읽기/쓰기Gets or sets a selection object that changes the DataTemplate to apply for content, based on processing information about the content item or its container at run time. (다음에서 상속됨 ContentControl)

ContentTransitions

읽기/쓰기Gets or sets the collection of Transition style elements that apply to the content of a ContentControl. (다음에서 상속됨 ContentControl)

DataContext

읽기/쓰기Gets or sets the data context for a FrameworkElement when it participates in data binding. (다음에서 상속됨 FrameworkElement)

DefaultStyleKey

읽기/쓰기Gets or sets the key that references the default style for the control. Authors of custom controls use this property to change the default for the style that their control uses. (다음에서 상속됨 Control)

DesiredSize

읽기 전용Gets the size that this UIElement computed during the measure pass of the layout process. (다음에서 상속됨 UIElement)

Dispatcher

읽기 전용Gets the CoreDispatcher that this object is associated with. (다음에서 상속됨 DependencyObject)

FlowDirection

읽기/쓰기Gets or sets the direction in which text and other UI elements flow within any parent element that controls their layout. This property can be set to either LeftToRight or RightToLeft. Setting FlowDirection to RightToLeft on any element sets the alignment to the right, the reading order to right-to-left and the layout of the control to flow from right to left. (다음에서 상속됨 FrameworkElement)

FocusState

읽기 전용Gets a value that specifies whether this control has focus, and the mode by which focus was obtained. (다음에서 상속됨 Control)

FontFamily

읽기/쓰기Gets or sets the font used to display text in the control. (다음에서 상속됨 Control)

FontSize

읽기/쓰기Gets or sets the size of the text in this control. (다음에서 상속됨 Control)

FontStretch

읽기/쓰기Gets or sets the degree to which a font is condensed or expanded on the screen. (다음에서 상속됨 Control)

FontStyle

읽기/쓰기Gets or sets the style in which the text is rendered. (다음에서 상속됨 Control)

FontWeight

읽기/쓰기Gets or sets the thickness of the specified font. (다음에서 상속됨 Control)

Foreground

읽기/쓰기Gets or sets a brush that describes the foreground color. (다음에서 상속됨 Control)

Height

읽기/쓰기Gets or sets the suggested height of a FrameworkElement. (다음에서 상속됨 FrameworkElement)

HorizontalAlignment

읽기/쓰기Gets or sets the horizontal alignment characteristics that are applied to a FrameworkElement when it is composed in a layout parent, such as a panel or items control. (다음에서 상속됨 FrameworkElement)

HorizontalContentAlignment

읽기/쓰기Gets or sets the horizontal alignment of the control's content. (다음에서 상속됨 Control)

IsDoubleTapEnabled

읽기/쓰기Gets or sets a value that determines whether the DoubleTapped event can originate from that element. (다음에서 상속됨 UIElement)

IsEnabled

읽기/쓰기Gets or sets a value indicating whether the user can interact with the control. (다음에서 상속됨 Control)

IsHitTestVisible

읽기/쓰기Gets or sets whether the contained area of this UIElement can return true values for hit testing. (다음에서 상속됨 UIElement)

IsHoldingEnabled

읽기/쓰기Gets or sets a value that determines whether the Holding event can originate from that element. (다음에서 상속됨 UIElement)

IsOpen

읽기/쓰기Gets or sets a value that indicates whether the AppBar is visible.

IsOpenProperty

읽기 전용Identifies the IsOpen dependency property.

IsRightTapEnabled

읽기/쓰기Gets or sets a value that determines whether the RightTapped event can originate from that element. (다음에서 상속됨 UIElement)

IsSticky

읽기/쓰기Gets or sets a value that indicates whether the AppBar does not close on light dismiss.

IsStickyProperty

읽기 전용Identifies the IsSticky dependency property.

IsTabStop

읽기/쓰기Gets or sets a value that indicates whether a control is included in tab navigation. (다음에서 상속됨 Control)

IsTapEnabled

읽기/쓰기Gets or sets a value that determines whether the Tapped event can originate from that element. (다음에서 상속됨 UIElement)

Language

읽기/쓰기Gets or sets localization/globalization language information that applies to a FrameworkElement, and also to all child elements of the current FrameworkElement in the object representation and in UI. (다음에서 상속됨 FrameworkElement)

ManipulationMode

읽기/쓰기Gets or sets the ManipulationModes value used for UIElement behavior and interaction with gestures. Setting this value enables handling the manipulation events from this element in app code. (다음에서 상속됨 UIElement)

Margin

읽기/쓰기Gets or sets the outer margin of a FrameworkElement. (다음에서 상속됨 FrameworkElement)

MaxHeight

읽기/쓰기Gets or sets the maximum height constraint of a FrameworkElement. (다음에서 상속됨 FrameworkElement)

MaxWidth

읽기/쓰기Gets or sets the maximum width constraint of a FrameworkElement. (다음에서 상속됨 FrameworkElement)

MinHeight

읽기/쓰기Gets or sets the minimum height constraint of a FrameworkElement. (다음에서 상속됨 FrameworkElement)

MinWidth

읽기/쓰기Gets or sets the minimum width constraint of a FrameworkElement. (다음에서 상속됨 FrameworkElement)

Name

읽기/쓰기Gets or sets the identifying name of the object. When a XAML processor creates the object tree from XAML markup, run-time code can refer to the XAML-declared object by this name. (다음에서 상속됨 FrameworkElement)

Opacity

읽기/쓰기Gets or sets the degree of the object's opacity. (다음에서 상속됨 UIElement)

Padding

읽기/쓰기Gets or sets the padding inside a control. (다음에서 상속됨 Control)

Parent

읽기 전용Gets the parent object of this FrameworkElement in the object tree. (다음에서 상속됨 FrameworkElement)

PointerCaptures

읽기 전용Gets the set of all captured pointers, represented as Pointer values. (다음에서 상속됨 UIElement)

Projection

읽기/쓰기Gets or sets the perspective projection (3-D effect) to apply when rendering this element. (다음에서 상속됨 UIElement)

RenderSize

읽기 전용Gets the final render size of a UIElement. (다음에서 상속됨 UIElement)

RenderTransform

읽기/쓰기Gets or sets transform information that affects the rendering position of a UIElement. (다음에서 상속됨 UIElement)

RenderTransformOrigin

읽기/쓰기Gets or sets the origin point of any possible render transform declared by RenderTransform, relative to the bounds of the UIElement. (다음에서 상속됨 UIElement)

RequestedTheme

읽기/쓰기Gets or sets the UI theme that is used by the UIElement (and its child elements) for resource determination. The UI theme you specify with RequestedTheme can override the app-level RequestedTheme. (다음에서 상속됨 FrameworkElement)

Resources

읽기/쓰기Gets the locally defined resource dictionary. In XAML, you can establish resource items as child object elements of a frameworkElement.Resources property element, through XAML implicit collection syntax. (다음에서 상속됨 FrameworkElement)

Style

읽기/쓰기Gets or sets an instance Style that is applied for this object during layout and rendering. (다음에서 상속됨 FrameworkElement)

TabIndex

읽기/쓰기Gets or sets a value that determines the order in which elements receive focus when the user navigates through controls by pressing the Tab key. (다음에서 상속됨 Control)

TabNavigation

읽기/쓰기Gets or sets a value that modifies how tabbing and TabIndex work for this control. (다음에서 상속됨 Control)

Tag

읽기/쓰기Gets or sets an arbitrary object value that can be used to store custom information about this object. (다음에서 상속됨 FrameworkElement)

Template

읽기/쓰기Gets or sets a control template. The control template defines the visual appearance of a control in UI, and is defined in XAML markup. (다음에서 상속됨 Control)

Transitions

읽기/쓰기Gets or sets the collection of Transition style elements that apply to a UIElement. (다음에서 상속됨 UIElement)

Triggers

읽기 전용Gets the collection of triggers for animations that are defined for a FrameworkElement. Not commonly used. (다음에서 상속됨 FrameworkElement)

UseLayoutRounding

읽기/쓰기Gets or sets a value that determines whether rendering for the object and its visual subtree should use rounding behavior that aligns rendering to whole pixels. (다음에서 상속됨 UIElement)

VerticalAlignment

읽기/쓰기Gets or sets the vertical alignment characteristics that are applied to a FrameworkElement when it is composed in a parent object such as a panel or items control. (다음에서 상속됨 FrameworkElement)

VerticalContentAlignment

읽기/쓰기Gets or sets the vertical alignment of the control's content. (다음에서 상속됨 Control)

Visibility

읽기/쓰기Gets or sets the visibility of a UIElement. A UIElement that is not visible is not rendered and does not communicate its desired size to layout. (다음에서 상속됨 UIElement)

Width

읽기/쓰기Gets or sets the width of a FrameworkElement. (다음에서 상속됨 FrameworkElement)

 

설명

앱 바는 사용자에게 탐색, 명령 및 도구를 표시하는 UI 요소입니다. 앱 바는 페이지 위쪽, 페이지 아래쪽 또는 둘 다에 나타날 수 있습니다. 기본적으로 숨겨져 있고, 사용자가 마우스 오른쪽 단추를 클릭하거나 Windows+Z를 누르거나 화면 위쪽 또는 아래쪽 가장자리에서 살짝 미는 경우 표시되거나 닫힙니다.

IsOpen 속성을 설정하여 프로그래밍 방식으로 앱 바를 열거나 닫을 수 있습니다. OpenedClosed 이벤트를 처리하여 열거나 닫을 앱 바에 응답할 수 있습니다.

기본적으로 사용자가 앱 바 밖에서 응용 프로그램과 상호 작용하면 앱 바가 해제됩니다(닫힘). 앱 바를 이런 방식으로 닫는 것을 살짝 닫기라고 합니다. IsSticky 속성을 설정하여 앱 바가 닫히는 방식을 제어할 수 있습니다. 스티커형 앱 바는 살짝 닫기 제스처에 의해 닫히지 않습니다. 앱 바는 사용자가 마우스 오른쪽 단추를 클릭하거나 Windows+Z를 누르거나, 또는 화면의 맨 위 또는 맨 아래 가장자리를 살짝 밀 때까지 계속 표시됩니다.

XAML(Extensible Application Markup Language)에서 앱 바를 추가하려면 AppBar 컨트롤을 Page TopAppBar 또는 BottomAppBar 속성에 할당합니다. 단일 앱 모음은 여러 페이지에서 공유할 수 있습니다. 페이지 컨텍스트를 기반으로 명령을 프로그래밍 방식으로 추가 및 제거할 수 있습니다.

자세한 내용 및 예제를 보려면 앱 바 추가XAML AppBar 컨트롤 샘플을 참조하십시오.

AppBar 디자인 지침에 대해서는 Windows 스토어 앱용 명령 설계를 참조하십시오.

예제

이 예제에서는 2개의 단추 그룹이 있는 하단의 앱 바를 보여 줍니다.


<Page.TopAppBar>
    <AppBar>
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            <StackPanel Orientation="Horizontal">
                <Button Content="Home" Width="140" Height="80" Click="AppBarButton_Click"/>
                <Button Content="Page 1" Width="140" Height="80" Click="AppBarButton_Click"/>
                <Button Content="Page 2" Width="140" Height="80" Click="AppBarButton_Click"/>
            </StackPanel>
            <SearchBox Grid.Column="1" Width="300" Height="50" HorizontalAlignment="Right"/>
        </Grid>
    </AppBar>
</Page.TopAppBar>

요구 사항

지원되는 최소 클라이언트

Windows 8 [Windows 스토어 앱만]

지원되는 최소 서버

Windows Server 2012 [Windows 스토어 앱만]

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

참고 항목

ContentControl
AppBarButton
CommandBar
앱 바 추가
Windows 스토어 앱용 명령 설계
XAML AppBar 컨트롤 샘플

 

 

표시:
© 2015 Microsoft