PivotItem 類別

繼承階層架構

System.Object
  System.Windows.DependencyObject
    System.Windows.UIElement
      System.Windows.FrameworkElement
        System.Windows.Controls.Control
          System.Windows.Controls.ContentControl
            Microsoft.Phone.Controls.PivotItem

命名空間:  Microsoft.Phone.Controls
組件:  Microsoft.Phone (在 Microsoft.Phone.dll 中)

語法

'宣告
<TemplateVisualStateAttribute(Name := "Right", GroupName := "Position States")> _
<TemplateVisualStateAttribute(Name := "Center", GroupName := "Position States")> _
<TemplateVisualStateAttribute(Name := "Left", GroupName := "Position States")> _
Public Class PivotItem _
    Inherits ContentControl
[TemplateVisualStateAttribute(Name = "Right", GroupName = "Position States")]
[TemplateVisualStateAttribute(Name = "Center", GroupName = "Position States")]
[TemplateVisualStateAttribute(Name = "Left", GroupName = "Position States")]
public class PivotItem : ContentControl
[TemplateVisualStateAttribute(Name = L"Right", GroupName = L"Position States")]
[TemplateVisualStateAttribute(Name = L"Center", GroupName = L"Position States")]
[TemplateVisualStateAttribute(Name = L"Left", GroupName = L"Position States")]
public ref class PivotItem : public ContentControl
[<TemplateVisualStateAttribute(Name = "Right", GroupName = "Position States")>]
[<TemplateVisualStateAttribute(Name = "Center", GroupName = "Position States")>]
[<TemplateVisualStateAttribute(Name = "Left", GroupName = "Position States")>]
type PivotItem =  
    class
        inherit ContentControl
    end

PivotItem 類型會公開下列成員。

建構函式

  名稱 描述
公用方法 PivotItem

回頁首

屬性

  名稱 描述
公用屬性 ActualHeight 取得呈現此項目的高度。 (繼承自 FrameworkElement)。
公用屬性 ActualWidth 取得呈現此項目的寬度。 (繼承自 FrameworkElement)。
公用屬性 AllowDrop 取得或設定此元素是否可以當做拖放操作目標的值。這是相依性屬性。 (繼承自 UIElement)。
公用屬性 Background 取得或設定描述控制項背景的筆刷。 (繼承自 Control)。
公用屬性 BorderBrush 取得或設定描述控制項框線背景的筆刷。 (繼承自 Control)。
公用屬性 BorderThickness 取得或設定控制項的框線粗細。 (繼承自 Control)。
公用屬性 CacheMode 取得或設定 UIElement 的快取表示。 (繼承自 UIElement)。
公用屬性 CharacterSpacing (繼承自 Control)。
公用屬性 Clip 取得或設定用來定義元素內容外框的幾何。這是相依性屬性。 (繼承自 UIElement)。
公用屬性 Content 取得或設定 ContentControl 的內容。 (繼承自 ContentControl)。
公用屬性 ContentTemplate 取得或設定用來顯示 ContentControl 內容的資料範本。 (繼承自 ContentControl)。
公用屬性 Cursor 取得或設定滑鼠指標在此元素上方時所顯示的游標。 (繼承自 FrameworkElement)。
公用屬性 DataContext 取得或設定元素參與資料繫結時的資料內容。 (繼承自 FrameworkElement)。
受保護的屬性 DefaultStyleKey (繼承自 Control)。
公用屬性 DesiredSize 取得這個項目在配置處理序的測量傳遞期間所計算的大小。 (繼承自 UIElement)。
公用屬性 Dispatcher (繼承自 DependencyObject)。
公用屬性 FlowDirection 取得或設定文字和其他使用者介面 (UI) 項目在任何控制其配置之父項目內的流向。 (繼承自 FrameworkElement)。
公用屬性 FontFamily 取得或設定控制項的字型系列。 (繼承自 Control)。
公用屬性 FontSize 取得或設定字型大小。 (繼承自 Control)。
公用屬性 FontStretch 取得或設定螢幕上字型緊縮或加寬的程度。 (繼承自 Control)。
公用屬性 FontStyle 取得或設定字型樣式。 (繼承自 Control)。
公用屬性 FontWeight 取得或設定指定字型的粗細。 (繼承自 Control)。
公用屬性 Foreground 取得或設定描述前景色彩的筆刷。 (繼承自 Control)。
公用屬性 Header
公用屬性 Height 取得或設定建議的項目高度。 (繼承自 FrameworkElement)。
公用屬性 HorizontalAlignment 取得或設定套用至此元素在父項元素 (例如面板或項目控制項) 中組成時的水平對齊特性。 (繼承自 FrameworkElement)。
公用屬性 HorizontalContentAlignment 取得或設定控制項內容的水平對齊。 (繼承自 Control)。
公用屬性 IsEnabled (繼承自 Control)。
公用屬性 IsHitTestVisible 取得或設定值,這個值會宣告此項目是否有可能從其呈現內容的某些部分,當做點擊測試結果傳回。這是相依性屬性。 (繼承自 UIElement)。
公用屬性 IsTabStop 取得或設定值,這個值表示控制項是否包含於索引標籤巡覽。 (繼承自 Control)。
公用屬性 Language 取得或設定套用至某個項目的當地語系化/全球化語言資訊。 (繼承自 FrameworkElement)。
公用屬性 Margin 取得或設定元素的外邊界。 (繼承自 FrameworkElement)。
公用屬性 MaxHeight 取得或設定元素的最大高度限制。 (繼承自 FrameworkElement)。
公用屬性 MaxWidth 取得或設定元素的最大寬度限制。 (繼承自 FrameworkElement)。
公用屬性 MinHeight 取得或設定元素的最小高度限制。 (繼承自 FrameworkElement)。
公用屬性 MinWidth 取得或設定元素的最小寬度限制。 (繼承自 FrameworkElement)。
公用屬性 Name 取得或設定項目的識別名稱。這個名稱提供參考,使程式碼後置 (Code-Behind) (例如,事件處理常式程式碼) 可以在由 XAML 處理器處理期間建構之後,參考至標記事件。 (繼承自 FrameworkElement)。
公用屬性 Opacity 取得或設定不透明度因素,當該因素在使用者介面 (UI) 中呈現時會套用至整個 UIElement。這是相依性屬性。 (繼承自 UIElement)。
公用屬性 OpacityMask 取得或設定不透明遮罩做為 Brush 實作,該實作會套用至這個項目之呈現內容的任何 Alpha 色頻 (Alpha Channel) 遮罩。這是相依性屬性。 (繼承自 UIElement)。
公用屬性 Padding 取得或設定控制項內部的邊框間距。 (繼承自 Control)。
公用屬性 Parent 取得此項目的邏輯父項目。 (繼承自 FrameworkElement)。
公用屬性 Projection (繼承自 UIElement)。
公用屬性 RenderSize 取得 (或設定,但請參閱「備註」) 這個項目的最終呈現大小。 (繼承自 UIElement)。
公用屬性 RenderTransform 取得或設定影響此元素呈現位置的轉換資訊。這是相依性屬性。 (繼承自 UIElement)。
公用屬性 RenderTransformOrigin 取得或設定任何可能由 RenderTransform 宣告之呈現轉換、相對於項目範圍的中心點。這是相依性屬性。 (繼承自 UIElement)。
公用屬性 Resources 取得或設定本機定義的資源字典。 (繼承自 FrameworkElement)。
公用屬性 Style 取得或設定由這個項目在其呈現時使用的樣式。 (繼承自 FrameworkElement)。
公用屬性 TabIndex 取得或設定值,此值會決定當使用者使用 TAB 鍵巡覽控制項時,項目接收焦點的順序。 (繼承自 Control)。
公用屬性 TabNavigation (繼承自 Control)。
公用屬性 Tag 取得或設定可以用來儲存關於此元素自訂資訊的任意物件值。 (繼承自 FrameworkElement)。
公用屬性 Template 取得或設定控制項樣板。 (繼承自 Control)。
公用屬性 Triggers 取得觸發程序 (Trigger) 的集合,這些觸發程序是直接在這個項目上建立,或者是在子項目中建立的。 (繼承自 FrameworkElement)。
公用屬性 UseLayoutRounding (繼承自 UIElement)。
公用屬性 UseOptimizedManipulationRouting (繼承自 FrameworkElement)。
公用屬性 VerticalAlignment 取得或設定套用至此元素在父項元素 (例如面板或項目控制項) 中組成時的垂直對齊特性。 (繼承自 FrameworkElement)。
公用屬性 VerticalContentAlignment 取得或設定控制項內容的垂直對齊。 (繼承自 Control)。
公用屬性 Visibility 取得或設定這個項目的使用者介面 (UI) 可視性。這是相依性屬性。 (繼承自 UIElement)。
公用屬性 Width 取得或設定元素的寬度。 (繼承自 FrameworkElement)。

回頁首

方法

  名稱 描述
公用方法 AddHandler(RoutedEvent, Delegate, Boolean) 針對指定的路由事件加入路由事件處理常式,以便將該處理常式加入至目前項目上的事件處理常式集合。將 handledEventsToo 指定為 true,以針對已經由事件路由上另一個項目標記為已處理的路由事件,叫用提供的處理常式。 (繼承自 UIElement)。
公用方法 ApplyTemplate (繼承自 Control)。
公用方法 Arrange 放置子項目,以及判斷 UIElement 的大小。父項目會自其 ArrangeCore 實作 (或 WPF 架構層級對應項) 呼叫這個方法,以形成遞迴配置更新。這個方法構成配置更新的第二次傳遞。 (繼承自 UIElement)。
受保護的方法 ArrangeOverride (覆寫 FrameworkElement.ArrangeOverride(Size)。)
公用方法 CaptureMouse 嘗試強制將滑鼠的捕捉給這個項目。 (繼承自 UIElement)。
公用方法 CheckAccess (繼承自 DependencyObject)。
公用方法 ClearValue(DependencyProperty) 清除屬性的區域數值。要清除的屬性是由 DependencyProperty 識別項所指定。 (繼承自 DependencyObject)。
公用方法 Equals(Object) 判斷指定的物件是否等於目前物件。 (繼承自 Object)。
受保護的方法 Finalize 允許物件在記憶體回收進行回收之前,嘗試釋放資源並執行其他清除作業。 (繼承自 Object)。
公用方法 FindName 尋找具有所提供之識別項名稱的項目。 (繼承自 FrameworkElement)。
公用方法 Focus (繼承自 Control)。
公用方法 GetAnimationBaseValue (繼承自 DependencyObject)。
公用方法 GetBindingExpression 傳回 BindingExpression,表示指定之屬性上的繫結。 (繼承自 FrameworkElement)。
公用方法 GetHashCode 做為預設雜湊函式。 (繼承自 Object)。
受保護的方法 GetTemplateChild (繼承自 Control)。
公用方法 GetType 取得目前執行個體的 Type。 (繼承自 Object)。
公用方法 GetValue 傳回這個 DependencyObject 之執行個體上相依性屬性的目前有效值。 (繼承自 DependencyObject)。
公用方法 InvalidateArrange 使項目的排列狀態 (配置) 失效。在失效之後,項目會更新其配置,且這是非同步發生,除非後續由 UpdateLayout 所強制。 (繼承自 UIElement)。
公用方法 InvalidateMeasure 使項目的測量狀態 (配置) 失效。 (繼承自 UIElement)。
公用方法 Measure 更新 UIElementDesiredSize。父項目會從其自己的 MeasureCore 實作呼叫這個方法,以形成遞迴配置更新。呼叫這個方法會構成配置更新的第一次傳遞 (「測量」傳遞)。 (繼承自 UIElement)。
受保護的方法 MeasureOverride (覆寫 FrameworkElement.MeasureOverride(Size)。)
受保護的方法 MemberwiseClone 建立目前 Object 的淺層複本 (Shallow Copy)。 (繼承自 Object)。
公用方法 OnApplyTemplate (覆寫 FrameworkElement.OnApplyTemplate()。)
受保護的方法 OnContentChanged Content 屬性變更時呼叫。 (繼承自 ContentControl)。
受保護的方法 OnCreateAutomationPeer 為 Windows Presentation Foundation (WPF) 基礎結構傳回類別特定的 AutomationPeer 實作。 (繼承自 UIElement)。
受保護的方法 OnDoubleTap (繼承自 Control)。
受保護的方法 OnDragEnter (繼承自 Control)。
受保護的方法 OnDragLeave (繼承自 Control)。
受保護的方法 OnDragOver (繼承自 Control)。
受保護的方法 OnDrop (繼承自 Control)。
受保護的方法 OnGotFocus (繼承自 Control)。
受保護的方法 OnHold (繼承自 Control)。
受保護的方法 OnKeyDown (繼承自 Control)。
受保護的方法 OnKeyUp (繼承自 Control)。
受保護的方法 OnLostFocus (繼承自 Control)。
受保護的方法 OnLostMouseCapture (繼承自 Control)。
受保護的方法 OnManipulationCompleted (繼承自 Control)。
受保護的方法 OnManipulationDelta (繼承自 Control)。
受保護的方法 OnManipulationStarted (繼承自 Control)。
受保護的方法 OnMouseEnter (繼承自 Control)。
受保護的方法 OnMouseLeave (繼承自 Control)。
受保護的方法 OnMouseLeftButtonDown (繼承自 Control)。
受保護的方法 OnMouseLeftButtonUp (繼承自 Control)。
受保護的方法 OnMouseMove (繼承自 Control)。
受保護的方法 OnMouseRightButtonDown (繼承自 Control)。
受保護的方法 OnMouseRightButtonUp (繼承自 Control)。
受保護的方法 OnMouseWheel (繼承自 Control)。
受保護的方法 OnTap (繼承自 Control)。
受保護的方法 OnTextInput (繼承自 Control)。
受保護的方法 OnTextInputStart (繼承自 Control)。
受保護的方法 OnTextInputUpdate (繼承自 Control)。
公用方法 ReadLocalValue 傳回相依性屬性的區域數值 (如果有的話)。 (繼承自 DependencyObject)。
公用方法 ReleaseMouseCapture 如果這個項目保有滑鼠捕捉,則釋放捕捉。 (繼承自 UIElement)。
公用方法 RemoveHandler 從這個項目中移除指定的路由事件處理常式。 (繼承自 UIElement)。
公用方法 SetBinding(DependencyProperty, Binding) (繼承自 FrameworkElement)。
公用方法 SetValue(DependencyProperty, Object) 設定相依性屬性的區域數值,該值是由其相依性屬性識別項來指定。 (繼承自 DependencyObject)。
公用方法 ToString 傳回表示目前物件的字串。 (繼承自 Object)。
公用方法 TransformToVisual(UIElement) (繼承自 UIElement)。
公用方法 UpdateLayout 確認這個項目的所有視覺化子項目都已正確為配置而更新。 (繼承自 UIElement)。

回頁首

事件

  名稱 描述
公用事件 BindingValidationError (繼承自 FrameworkElement)。
公用事件 DoubleTap (繼承自 UIElement)。
公用事件 GotFocus 此元素取得邏輯焦點時發生。 (繼承自 UIElement)。
公用事件 Hold (繼承自 UIElement)。
公用事件 IsEnabledChanged (繼承自 Control)。
公用事件 KeyDown 當焦點位於這個項目而使用者按下某個按鍵時發生。 (繼承自 UIElement)。
公用事件 KeyUp 當焦點位於這個項目而使用者放開某個按鍵時發生。 (繼承自 UIElement)。
公用事件 LayoutUpdated (繼承自 FrameworkElement)。
公用事件 Loaded 當項目已經配置、轉譯和準備好進行互動時發生。 (繼承自 FrameworkElement)。
公用事件 LostFocus 此元素失去邏輯焦點時發生。 (繼承自 UIElement)。
公用事件 LostMouseCapture 此元素失去滑鼠擷取時發生。 (繼承自 UIElement)。
公用事件 ManipulationCompleted 當對 UIElement 物件進行的操作和慣性完成時發生。 (繼承自 UIElement)。
公用事件 ManipulationDelta 輸入裝置在操作期間變更位置時發生。 (繼承自 UIElement)。
公用事件 ManipulationStarted 當輸入裝置開始對 UIElement 物件進行操作時發生。 (繼承自 UIElement)。
公用事件 MouseEnter 滑鼠指標進入此元素的邊界時發生。 (繼承自 UIElement)。
公用事件 MouseLeave 滑鼠指標離開此元素的邊界時發生。 (繼承自 UIElement)。
公用事件 MouseLeftButtonDown 滑鼠指標在此元素上方且按下滑鼠左按鈕時發生。 (繼承自 UIElement)。
公用事件 MouseLeftButtonUp 滑鼠指標在此元素上方且放開滑鼠左按鈕時發生。 (繼承自 UIElement)。
公用事件 MouseMove 滑鼠指標在此元素上方移動時發生。 (繼承自 UIElement)。
公用事件 MouseWheel 滑鼠指標在此元素上方且使用者滾動滑鼠滾輪時發生。 (繼承自 UIElement)。
公用事件 SizeChanged 當這個項目的 ActualHeightActualWidth 屬性變更值時發生。 (繼承自 FrameworkElement)。
公用事件 Tap (繼承自 UIElement)。
公用事件 TextInput 此元素以一種與裝置無關的方式取得文字時發生。 (繼承自 UIElement)。
公用事件 TextInputStart (繼承自 UIElement)。
公用事件 TextInputUpdate (繼承自 UIElement)。
公用事件 Unloaded 當項目從已載入項目的項目樹狀結構中移除時發生。 (繼承自 FrameworkElement)。

回頁首

欄位

  名稱 描述
公用欄位靜態成員 HeaderProperty

回頁首

版本資訊

適用於 Windows Phone 應用程式的 .NET

支援版本:Windows Phone 8、Silverlight 8.1

執行緒安全

這個類型的任何 Public static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員是安全執行緒。

請參閱

參考

Microsoft.Phone.Controls 命名空間