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)。 |
回頁首
方法
回頁首
事件
回頁首
欄位
名稱 | 描述 | |
---|---|---|
HeaderProperty |
回頁首
版本資訊
適用於 Windows Phone 應用程式的 .NET
支援版本:Windows Phone 8、Silverlight 8.1
執行緒安全
這個類型的任何 Public static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員是安全執行緒。