DataGrid DataGrid DataGrid DataGrid Class

定義

表示以可自訂方格顯示資料的控制項。Represents a control that displays data in a customizable grid.

public ref class DataGrid : System::Windows::Controls::Primitives::MultiSelector
public class DataGrid : System.Windows.Controls.Primitives.MultiSelector
type DataGrid = class
    inherit MultiSelector
Public Class DataGrid
Inherits MultiSelector
繼承

範例

下列範例示範如何DataGrid將系結DataTable至,並使用自動產生的資料行。The following example shows how to bind a DataGrid to a DataTable and use column auto-generation. 會使用的DataAdapter 方法DataSet來填入。 Fill DataTableThe DataTable is populated by using the Fill method of a DataAdapter from a DataSet. 如需詳細資訊,請參閱建立資料集從 DataAdapter 填入資料集For more information, see Creating a DataSet and Populating a DataSet from a DataAdapter. 若要使用WPF Designer for Visual StudioWPF Designer for Visual Studio,請參閱將WPF 控制項系結至 Visual Studio 中的資料To use the WPF Designer for Visual StudioWPF Designer for Visual Studio, see Bind WPF controls to data in Visual Studio.

<DataGrid x:Name="CustomerGrid" ItemsSource="{Binding}" AlternatingRowBackground="LightBlue" AlternationCount="2" />
//Set the DataGrid's DataContext to be a filled DataTable
CustomerGrid.DataContext = custDataTable;
'Set the DataGrid's DataContext to be a filled DataTable
CustomerGrid.DataContext = custDataTable

下列範例示範如何建立DataGrid具有自訂Columns集合的。The following example shows how to create a DataGrid with a customized Columns collection.

    <NavigationWindow x:Class="DataGrid_CustomColumns.Window1"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:core="clr-namespace:System;assembly=mscorlib"
        xmlns:local="clr-namespace:DataGrid_CustomColumns"
        Title="Customers" Height="300" Width="300" ShowsNavigationUI="False"  >
        
    <NavigationWindow.Resources>
        <!--Create list of enumeration values-->
        <ObjectDataProvider x:Key="myEnum" MethodName="GetValues" ObjectType="{x:Type core:Enum}">
            <ObjectDataProvider.MethodParameters>
                <x:Type Type="local:OrderStatus"/>
            </ObjectDataProvider.MethodParameters>
        </ObjectDataProvider>
        <!--Create an instance of the converter for Email-->
        <local:EmailConverter x:Key="EmailConverter" />
    </NavigationWindow.Resources>
    <NavigationWindow.Content>  
        
    <Grid>
        <DataGrid Name="DG1" ItemsSource="{Binding}" AutoGenerateColumns="False" >
            <DataGrid.Columns>
                <DataGridTextColumn Header="First Name"  Binding="{Binding FirstName}"/>
                <DataGridTextColumn Header="Last Name" Binding="{Binding LastName}" />
                <!--The Email property contains a URI.  For example "mailto:lucy0@adventure-works.com"-->
                <DataGridHyperlinkColumn Header="Email" Binding="{Binding Email}"  ContentBinding="{Binding Email, Converter={StaticResource EmailConverter}}" />
                <DataGridCheckBoxColumn Header="Member?" Binding="{Binding IsMember}" />
                <DataGridComboBoxColumn Header="Order Status"  SelectedItemBinding="{Binding Status}" ItemsSource="{Binding Source={StaticResource myEnum}}" />
            </DataGrid.Columns>
        </DataGrid>
    </Grid>
    </NavigationWindow.Content>
</NavigationWindow>
//Additional using statements
using System.Data;
using System.Collections.ObjectModel;
using System.Diagnostics;
'Additional using statements
Imports System.Data
Imports System.Collections.ObjectModel
Imports System.Diagnostics
public partial class Window1 : NavigationWindow
{
Class Window1
public Window1()
{
    InitializeComponent();

    //GetData() creates a collection of Customer data from a database
    ObservableCollection<Customer> custdata = GetData();
    
    //Bind the DataGrid to the customer data
    DG1.DataContext = custdata;
   
}
Public Sub New()
    ' This call is required by the Windows Form Designer.
    InitializeComponent()
    ' Add any initialization after the InitializeComponent() call.

    'GetData() creates a collection of Customer data from a database
    Dim custdata As ObservableCollection(Of Customer) = GetData()

    'Bind the DataGrid to the customer data
    DG1.DataContext = custdata

End Sub
//Defines the customer object
public class Customer
{
    public string FirstName { get; set; }
    public string LastName { get; set; }
    public Uri Email { get; set; }
    public bool IsMember { get; set; }
    public OrderStatus Status { get; set; }

}
'Defines the customer object
Public Class Customer
    Public Property FirstName() As String
    Public Property LastName() As String
    Public Property Email() As Uri
    Public Property IsMember() As Boolean
    Public Property Status() As OrderStatus
End Class
}
End Class
public enum OrderStatus { None, New, Processing, Shipped, Received };
Public Enum OrderStatus
    None
    [New]
    Processing
    Shipped
    Received
End Enum
//Converts the mailto uri to a string with just the customer alias
public class EmailConverter : IValueConverter
{
    public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
    {
        if (value != null)
        {
            string email = value.ToString();
            int index = email.IndexOf("@");
            string alias = email.Substring(7, index-7);
            return alias;
        }
        else
        {
            string email = "";
            return email;
        }
    }

    public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
    {
        Uri email = new Uri((string)value);
        return email;
    }
}
'Converts the mailto uri to a string with just the customer alias
Public Class EmailConverter
    Implements IValueConverter

    Public Function Convert(value As Object, targetType As System.Type, parameter As Object, culture As System.Globalization.CultureInfo) As Object Implements System.Windows.Data.IValueConverter.Convert
        If value IsNot Nothing Then
            Dim email As String = value.ToString()
            Dim index As Integer = email.IndexOf("@")
            Dim [alias] As String = email.Substring(7, index - 7)
            Return [alias]
        Else
            Dim email As String = ""
            Return email
        End If
    End Function

    Public Function ConvertBack(value As Object, targetType As System.Type, parameter As Object, culture As System.Globalization.CultureInfo) As Object Implements System.Windows.Data.IValueConverter.ConvertBack
        Dim email As New Uri(DirectCast(value, String))
        Return email
    End Function
End Class

備註

DataGrid控制項提供彈性的方式來顯示資料列和資料行中的資料集合。The DataGrid control provides a flexible way to display a collection of data in rows and columns. DataGrid包含內建的資料行類型,以及用來裝載自訂內容的範本資料行。The DataGrid includes built-in column types and a template column for hosting custom content. 內建的資料列類型包含下拉式 [詳細資料] 區段,可讓您用來在資料格值下方顯示其他內容。The built-in row type includes a drop-down details section that you can use to display additional content below the cell values.

系結至資料Binding to Data

若要將系結ItemsSource IEnumerable DataGrid至資料,請將屬性設定為「執行」。To bind the DataGrid to data, set the ItemsSource property to an IEnumerable implementation. 資料方格中的每個資料列都會系結至資料來源中的物件,而資料方格中的每個資料行都會系結至資料物件的屬性。Each row in the data grid is bound to an object in the data source, and each column in the data grid is bound to a property of the data object. 為了讓DataGrid使用者介面在來源資料中加入或移除專案時自動更新DataGrid ,必須系結至實作為INotifyCollectionChanged ObservableCollection<T>介面的集合,例如。In order for the DataGrid user interface to update automatically when items are added to or removed from the source data, the DataGrid must be bound to a collection that implements the INotifyCollectionChanged interface, such as an ObservableCollection<T>. 若要自動反映屬性變更,來源集合中的物件必須執行INotifyPropertyChanged介面。To automatically reflect property changes, the objects in the source collection must implement the INotifyPropertyChanged interface. 如需詳細資訊,請參閱資料系結(WPF)For more information, see Data Binding (WPF).

資料行Columns

根據預設,當DataGridItemsSource設定屬性時,控制項會自動產生資料行。By default, the DataGrid control generates columns automatically when you set the ItemsSource property. 所產生的資料行類型取決於資料行中的資料類型。The type of column that is generated depends on the type of data in the column. 下表列出產生的資料行類型。The following table lists the generated columns types.

產生的資料行類型Generated Column Type 資料類型Data Type
DataGridTextColumn String
DataGridCheckBoxColumn Boolean
DataGridComboBoxColumn Enum
DataGridHyperlinkColumn Uri

下圖顯示每個資料行類型。The following illustration shows each of the column types.

具有四個預設資料行類型的 DataGridDataGrid with all four default column types

自動產生資料行時,您可以先處理AutoGeneratingColumn事件以自訂或取消資料行,然後再將它們加入。 DataGridWhen columns are auto-generated, you can handle the AutoGeneratingColumn event to customize or cancel columns before they are added to the DataGrid. 如果您將使用者定義的資料行和自動產生的DataGrid資料行加入至,則會先加入使用者定義的資料行。If you add both user-defined columns and auto-generated columns to the DataGrid, the user-defined columns are added first. 若要重新排列資料行的顯示順序,您可以設定DisplayIndex個別資料行的屬性。To rearrange the display order of the columns, you can set the DisplayIndex property for individual columns.

您可以藉由將AutoGenerateColumns屬性設定為false,來防止自動產生資料行。You can prevent automatic column generation by setting the AutoGenerateColumns property to false. 如果您想要明確地建立及設定所有資料行,這會很有用。This is useful if you want to create and configure all columns explicitly.

如果內建的資料行類型不符合您的需求,請使用類型來定義自訂資料行。DataGridTemplateColumnUse the DataGridTemplateColumn type to define a custom column if the built-in column types do not meet your needs. 型別提供CellTemplateCellEditingTemplate屬性,可讓您指定顯示和編輯模式的內容範本。 DataGridTemplateColumnThe DataGridTemplateColumn type provides CellTemplate and CellEditingTemplate properties that enable you to specify content templates for both display and editing modes. 例如,您可以定義日期的自訂資料行。For example, you could define a custom column for dates. 可以定義來顯示CellEditingTemplate日期, DatePicker而可以定義控制項來編輯日期。 TextBlock CellTemplateThe CellTemplate could define a TextBlock to display a date, and the CellEditingTemplate could define a DatePicker control to edit the date.

您可以使用Columns集合,以程式設計方式在執行時間加入、插入、移除和變更控制項中的任何資料行。You can use the Columns collection to programmatically add, insert, remove, and change any columns in the control at run time. IsAutoGenerated檢查屬性,以判斷資料行是否為自動產生或使用者定義。Check the IsAutoGenerated property to determine whether a column is auto generated or user defined. ItemsSource變更時,會自動加入、移除或重新產生自動產生的資料行。Auto-generated columns will be automatically added, removed, or regenerated when the ItemsSource changes.

選取Selection

根據預設,當使用者按一下中DataGrid的資料格時,就會選取整個資料列,而使用者可以選取多個資料列。By default, the entire row is selected when a user clicks a cell in a DataGrid, and a user can select multiple rows. 您可以設定SelectionUnit屬性,以指定使用者是否可以選取資料格、完整資料列或兩者。You can set the SelectionUnit property to specify whether a user can select cells, full rows, or both. SelectionMode設定屬性,以指定是否可以選取多個資料列或資料格,或僅限單一資料列或資料格。Set the SelectionMode property to specify whether multiple rows or cells can be selected, or only single rows or cells.

您可以從SelectedCells屬性取得選取之儲存格的相關資訊。You can get information about the cells that are selected from the SelectedCells property. 您可以在SelectedCellsChangedEventArgs SelectedCellsChanged事件的中,取得選取範圍已變更之資料格的相關資訊。You can get information about cells for which selection has changed in the SelectedCellsChangedEventArgs of the SelectedCellsChanged event. SelectAllCells呼叫或UnselectAllCells方法,以程式設計方式選取或取消選取所有儲存格。Call the SelectAllCells or UnselectAllCells methods to programmatically select or unselect all cells. 如需詳細資訊,請參閱DataGrid 控制項中的預設鍵盤和滑鼠行為For more information, see Default Keyboard and Mouse Behavior in the DataGrid Control.

分組、排序和篩選Grouping, Sorting, and Filtering

根據預設,您可以按一下欄標題來DataGrid排序中的專案。By default, you can sort items in a DataGrid by clicking the column header. 您可以藉由處理Sorting事件來自訂排序。You can customize sorting by handling the Sorting event. 若要取消預設排序,請將Handled屬性設定true為。To cancel the default sort, set the Handled property to true. 您也可以先排序來源資料,然後再將它顯示DataGrid在中。You can also sort the source data before it is displayed in the DataGrid.

若要在中DataGrid分組、排序和篩選資料,您可以DataGrid將系結ICollectionView至支援這些作業的執行。To group, sort, and filter data in the DataGrid, you bind the DataGrid to an ICollectionView implementation that supports these operations. 接著,您會在 [集合] 視圖上執行作業。You then perform the operations on the collection view. 當專案在中DataGrid分組時,您可以GroupStyle定義,以指定每個群組的外觀。When items are grouped in the DataGrid, you can define a GroupStyle that specifies the appearance of each group. 您可以藉DataGrid GroupStyle GroupStyle由將它新增至的集合來套用。You apply the GroupStyle by adding it to the GroupStyle collection of the DataGrid. 如果您有多個層級的群組,您可以將不同的樣式套用至每個群組層級。If you have multiple levels of grouping, you can apply different styles to each group level. 樣式會依照其定義的順序套用。Styles are applied in the order in which they are defined. 如需詳細資訊,請參閱如何:在 DataGrid 控制項中分組、排序和篩選資料。For more information, see How to: Group, Sort, and Filter Data in the DataGrid Control.

編輯Editing

根據預設,您可以直接在中DataGrid編輯專案。By default, you can edit items directly in the DataGrid. 為了保證可以正確地認可和取消編輯,中DataGrid的物件必須IEditableObject執行介面。To guarantee that edits can be committed and canceled correctly, the objects in the DataGrid must implement the IEditableObject interface. 或者,您可以將IsReadOnly屬性設定為true ,以停用中的DataGrid編輯。Alternatively, you can set the IsReadOnly property to true to disable editing in the DataGrid.

DataGrid具有下列編輯命令的內建支援:The DataGrid has built-in support for the following editing commands:

命令Command 預設輸入系結Default Input Binding
BeginEditCommand F2F2
CancelEditCommand ESCESC
CommitEditCommand ENTERENTER
DeleteCommand DeleteDELETE

您可以按一下或按下 F2,將目前儲存格置於編輯模式。You put the current cell into edit mode by clicking it or pressing F2. 當您移至相同資料列中的另一個資料格,或在儲存格處於編輯模式時按下 ENTER,就會認可資料格層級的編輯。A cell-level edit is committed when you move to another cell in the same row or press ENTER while the cell is in edit mode. 當您移至另一個資料列,或在資料列處於編輯模式時按下 ENTER 時,就會認可資料列中的所有編輯。All edits in a row are committed when you move to another row or press ENTER while the row is in edit mode. 您可以按 ESC 一次取消資料格編輯,然後按下 ESC 鍵兩次,取消資料列中的所有編輯。You cancel a cell edit by pressing ESC one time, and cancel all edits in a row by pressing ESC two times. 如需以程式設計方式認可和取消編輯的詳細BeginEdit資訊CommitEdit,請CancelEdit參閱、和方法。For more information about programmatically committing and canceling edits, see the BeginEdit, CommitEdit, and CancelEdit methods. 如需有關編輯相關事件的詳細資訊, BeginningEditPreparingCellForEdit參閱CellEditEnding、、 RowEditEnding和。For more information about edit-related events, see BeginningEdit, PreparingCellForEdit, CellEditEnding, and RowEditEnding.

CanUserAddRows設定和CanUserDeleteRows屬性,以指定使用者是否可以加入或刪除資料列。Set the CanUserAddRows and CanUserDeleteRows properties to specify whether a user can add or delete rows. 使用者可以按下 DELETE 鍵來刪除選取的資料列。A user can delete selected rows by pressing the DELETE key. 如果屬性設定為true,新的專案資料列就會加入做為中DataGrid的最後一個資料列。 CanUserAddRowsIf the CanUserAddRows property is set to true, a new item row is added as the last row in the DataGrid. 您可以藉由處理InitializingNewItem事件來設定新專案的預設值。You can set default values for new items by handling the InitializingNewItem event.

注意

是否允許編輯動作會受到各種其他因素的影響,包括IsReadOnly的和IsEnabled狀態DataGrid,以及基礎資料集合是否允許該動作。Whether editing actions are allowed is influenced by a variety of additional factors, including the IsReadOnly and IsEnabled state of the DataGrid, and whether the underlying data collection allows the action.

驗證Validation

DataGrid讓您在資料格和資料列層級執行驗證。The DataGrid enables you to perform validation at both the cell and row level. 使用資料格層級驗證時,您會在使用者更新值時驗證系結資料物件的個別屬性。With cell-level validation, you validate individual properties of a bound data object when a user updates a value. 使用資料列層級驗證時,您會在使用者認可資料列的變更時,驗證整個資料物件。With row-level validation, you validate entire data objects when a user commits changes to a row. 您可以藉由設定RowValidationErrorTemplate屬性來提供資料列層級驗證錯誤的自訂視覺效果意見反應,也可以使用預設的錯誤指標。You can provide customized visual feedback for row-level validation errors by setting the RowValidationErrorTemplate property, or you can use the default error indicator. 若要建立自訂驗證規則,請建立衍生ValidationRule自類別的類別,並Validate執行方法。To create a custom validation rule, create a class that derives from the ValidationRule class and implement the Validate method. 將自訂驗證規則新增至RowValidationRules集合。Add the custom validation rule to the RowValidationRules collection.

自訂 DataGrid 控制項Customizing the DataGrid Control

DataGrid控制項支援一般資料表格式選項,例如替代資料列背景,以及顯示或隱藏標頭、格線和捲軸的功能。The DataGrid control supports common table formatting options, such as alternating row backgrounds and the ability to show or hide headers, gridlines, and scroll bars. 此外,控制項還提供了數種樣式和範本屬性,可讓您用來完全變更控制項的外觀,以及其資料列、資料行、標頭和資料格。Additionally, the control provides several style and template properties that you can use to completely change the appearance of the control and its rows, columns, headers, and cells.

若要DataGrid自訂行為,您可以處理選取範圍變更、儲存格編輯和資料行重新排序的事件。To customize DataGrid behavior, you can handle events for selection change, cell editing, and column re-ordering. DataGrid也會公開數個可供您處理以自訂資料列之資料列回收的事件。The DataGrid also exposes several events for row recycling that you can handle to customize rows.

若要將相同的屬性設定套用DataGrid至多個控制項Style ,請使用屬性。To apply the same property settings to multiple DataGrid controls, use the Style property. 您可以修改預設值ControlTemplate ,為控制項提供獨特的外觀。You can modify the default ControlTemplate to give the control a unique appearance. 如需建立的ControlTemplate詳細資訊,請參閱藉由建立 ControlTemplate 自訂現有控制項的外觀For more information about creating a ControlTemplate, see Customizing the Appearance of an Existing Control by Creating a ControlTemplate. 若要查看特定DataGrid的元件和狀態,請參閱DataGrid 樣式和範本To see the parts and states that are specific to the DataGrid, see DataGrid Styles and Templates.

這個控制項的相依性屬性可能是由控制項的預設樣式所設定。Dependency properties for this control might be set by the control's default style. 如果屬性是由預設樣式所設定,當應用程式中出現控制項時,該屬性可能會從其預設值變更。If a property is set by a default style, the property might change from its default value when the control appears in the application. 預設樣式取決於應用程式執行時使用的桌面主題。The default style is determined by which desktop theme is used when the application is running. 如需詳細資訊,請參閱預設 WPF 主題For more information, see Default WPF Themes.

注意

如果該屬性同時顯示於控制項的預設範本,並使用 TemplateBinding 來設定,則設定視覺效果屬性僅具效果作用。Setting a visual property only has an effect if that property is both present in the control's default template and is set by using a TemplateBinding. 您可以在通過建立 ControlTemplate 自訂現有控制項的外觀文章的變更控制項的視覺效果結構一節中找到視覺效果屬性清單。You can find a list of visual properties in the Changing the Visual Structure of a Control section in the Customizing the Appearance of an Existing Control by Creating a ControlTemplate article.

一般工作Common Tasks

下表提供通常與相關聯之工作DataGrid的資訊。The following table provides information about tasks that are typically associated with the DataGrid.

工作Task 實作Implementation
設定替代資料列背景色彩Set alternating row background colors 將屬性設定為2或以上,然後Brush將指派RowBackground給和AlternatingRowBackground屬性。 AlternationIndexSet the AlternationIndex property to 2 or more, and then assign a Brush to the RowBackground and AlternatingRowBackground properties.
定義資料格和資料列選取行為Define cell and row selection behavior 設定 SelectionModeSelectionUnit 屬性。Set the SelectionMode and SelectionUnit properties.
自訂標頭、儲存格和資料列的視覺外觀Customize the visual appearance of headers, cells and rows Style新的套用ColumnHeaderStyle至、 RowHeaderStyleCellStyleRowStyle屬性。Apply a new Style to the ColumnHeaderStyle, RowHeaderStyle, CellStyle, or RowStyle properties.
設定調整大小選項Set sizing options Height設定、MaxHeight、 、MaxWidth、或屬性MinWidthMinHeight WidthSet the Height, MaxHeight, MinHeight, Width, MaxWidth, or MinWidth properties. 如需詳細資訊,請參閱DataGrid 控制項中的調整大小選項For more information, see Sizing Options in the DataGrid Control.
存取選取的專案Access selected items 請檢查SelectedItems屬性以取得選取的儲存格,並檢查屬性以取得選取的資料列。 SelectedCellsCheck the SelectedCells property to get the selected cells and check the SelectedItems property to get the selected rows. 如需詳細資訊,請參閱 SelectedCells 屬性 (Property)。For more information, see the SelectedCells property.
自訂使用者互動Customize end-user interactions CanUserAddRows設定、CanUserDeleteRows、 、CanUserResizeRows、和屬性CanUserSortColumnsCanUserReorderColumns CanUserResizeColumnsSet the CanUserAddRows, CanUserDeleteRows, CanUserReorderColumns, CanUserResizeColumns, CanUserResizeRows, and CanUserSortColumns properties.
取消或變更自動產生的資料行Cancel or change auto-generated columns AutoGeneratingColumn處理事件。Handle the AutoGeneratingColumn event.
凍結資料行Freeze a column 將屬性設定為1,並將此DisplayIndex屬性設定為0,將資料行移至最左邊的位置。 FrozenColumnCountSet the FrozenColumnCount property to 1 and move the column to the left-most position by setting the DisplayIndex property to 0.
使用 XML 資料做為資料來源Use XML data as the data source ItemsSource將上的系結至代表專案集合DataGrid的 XPath 查詢。Bind the ItemsSource on the DataGrid to the XPath query representing the collection of items. 在中DataGrid建立每個資料行。Create each column in the DataGrid. 藉由將系結上的 XPath 設定為可取得專案來源屬性的查詢,系結每個資料行。Bind each column by setting the XPath on the binding to the query that gets the property on the item source. 如需範例,請參閱 DataGridTextColumnFor an example, see DataGridTextColumn.
群組專案Group items 系結至CollectionView支援CollectionViewSource群組的或。Bind to a CollectionView or CollectionViewSource that supports grouping. 如需詳細資訊,請參閱如何:在 DataGrid 控制項中分組、排序和篩選資料。For more information, see How to: Group, Sort, and Filter Data in the DataGrid Control.
顯示一列的詳細資料區段Display the details section for a row RowDetailsTemplate定義以指定 [詳細資料] 區段的外觀。Define a RowDetailsTemplate to specify the appearance of the details section. 設定, RowDetailsVisibilityMode以指定顯示詳細資料區段的時機。Set the RowDetailsVisibilityMode to specify when the details section is shown. 如需詳細資訊,請參閱如何:將資料列詳細資料加入至DataGrid 控制項。For more information, see How to: Add Row Details to a DataGrid Control.

建構函式

DataGrid() DataGrid() DataGrid() DataGrid()

初始化 DataGrid 類別的新執行個體。Initializes a new instance of the DataGrid class.

欄位

AlternatingRowBackgroundProperty AlternatingRowBackgroundProperty AlternatingRowBackgroundProperty AlternatingRowBackgroundProperty

識別 AlternatingRowBackground 相依性屬性。Identifies the AlternatingRowBackground dependency property.

AreRowDetailsFrozenProperty AreRowDetailsFrozenProperty AreRowDetailsFrozenProperty AreRowDetailsFrozenProperty

識別 AreRowDetailsFrozen 相依性屬性。Identifies the AreRowDetailsFrozen dependency property.

AutoGenerateColumnsProperty AutoGenerateColumnsProperty AutoGenerateColumnsProperty AutoGenerateColumnsProperty

識別 AutoGenerateColumns 相依性屬性。Identifies the AutoGenerateColumns dependency property.

BeginEditCommand BeginEditCommand BeginEditCommand BeginEditCommand

表示命令,這個命令表示要開始編輯 DataGrid 的目前儲存格或資料列。Represents the command that indicates the intention to begin editing the current cell or row of the DataGrid.

CancelEditCommand CancelEditCommand CancelEditCommand CancelEditCommand

表示命令,這個命令表示要取消目前儲存格或資料列上任何暫止的變更,並還原成執行 BeginEditCommand 命令之前的狀態。Represents the command that indicates the intention to cancel any pending changes to the current cell or row and revert to the state before the BeginEditCommand command was executed.

CanUserAddRowsProperty CanUserAddRowsProperty CanUserAddRowsProperty CanUserAddRowsProperty

識別 CanUserAddRows 相依性屬性。Identifies the CanUserAddRows dependency property.

CanUserDeleteRowsProperty CanUserDeleteRowsProperty CanUserDeleteRowsProperty CanUserDeleteRowsProperty

識別 CanUserDeleteRows 相依性屬性。Identifies the CanUserDeleteRows dependency property.

CanUserReorderColumnsProperty CanUserReorderColumnsProperty CanUserReorderColumnsProperty CanUserReorderColumnsProperty

識別 CanUserReorderColumns 相依性屬性。Identifies the CanUserReorderColumns dependency property.

CanUserResizeColumnsProperty CanUserResizeColumnsProperty CanUserResizeColumnsProperty CanUserResizeColumnsProperty

識別 CanUserResizeColumns 相依性屬性。Identifies the CanUserResizeColumns dependency property.

CanUserResizeRowsProperty CanUserResizeRowsProperty CanUserResizeRowsProperty CanUserResizeRowsProperty

識別 CanUserResizeRows 相依性屬性。Identifies the CanUserResizeRows dependency property.

CanUserSortColumnsProperty CanUserSortColumnsProperty CanUserSortColumnsProperty CanUserSortColumnsProperty

識別 CanUserSortColumns 相依性屬性。Identifies the CanUserSortColumns dependency property.

CellsPanelHorizontalOffsetProperty CellsPanelHorizontalOffsetProperty CellsPanelHorizontalOffsetProperty CellsPanelHorizontalOffsetProperty

識別 CellsPanelHorizontalOffset 相依性屬性。Identifies the CellsPanelHorizontalOffset dependency property.

CellStyleProperty CellStyleProperty CellStyleProperty CellStyleProperty

識別 CellStyle 相依性屬性。Identifies the CellStyle dependency property.

ClipboardCopyModeProperty ClipboardCopyModeProperty ClipboardCopyModeProperty ClipboardCopyModeProperty

識別 ClipboardCopyMode 相依性屬性。Identifies the ClipboardCopyMode dependency property.

ColumnHeaderHeightProperty ColumnHeaderHeightProperty ColumnHeaderHeightProperty ColumnHeaderHeightProperty

識別 ColumnHeaderHeight 相依性屬性。Identifies the ColumnHeaderHeight dependency property.

ColumnHeaderStyleProperty ColumnHeaderStyleProperty ColumnHeaderStyleProperty ColumnHeaderStyleProperty

識別 ColumnHeaderStyle 相依性屬性。Identifies the ColumnHeaderStyle dependency property.

ColumnWidthProperty ColumnWidthProperty ColumnWidthProperty ColumnWidthProperty

識別 ColumnWidth 相依性屬性。Identifies the ColumnWidth dependency property.

CommitEditCommand CommitEditCommand CommitEditCommand CommitEditCommand

表示命令,這個命令表示要認可目前儲存格或資料列上暫止的變更,並結束編輯模式。Represents the command that indicates the intention to commit pending changes to the current cell or row and exit edit mode.

CurrentCellProperty CurrentCellProperty CurrentCellProperty CurrentCellProperty

識別 CurrentCell 相依性屬性。Identifies the CurrentCell dependency property.

CurrentColumnProperty CurrentColumnProperty CurrentColumnProperty CurrentColumnProperty

識別 CurrentColumn 相依性屬性。Identifies the CurrentColumn dependency property.

CurrentItemProperty CurrentItemProperty CurrentItemProperty CurrentItemProperty

識別 CurrentItem 相依性屬性。Identifies the CurrentItem dependency property.

DragIndicatorStyleProperty DragIndicatorStyleProperty DragIndicatorStyleProperty DragIndicatorStyleProperty

識別 DragIndicatorStyle 相依性屬性。Identifies the DragIndicatorStyle dependency property.

DropLocationIndicatorStyleProperty DropLocationIndicatorStyleProperty DropLocationIndicatorStyleProperty DropLocationIndicatorStyleProperty

識別 DropLocationIndicatorStyle 相依性屬性。Identifies the DropLocationIndicatorStyle dependency property.

EnableColumnVirtualizationProperty EnableColumnVirtualizationProperty EnableColumnVirtualizationProperty EnableColumnVirtualizationProperty

識別 EnableColumnVirtualization 相依性屬性。Identifies the EnableColumnVirtualization dependency property.

EnableRowVirtualizationProperty EnableRowVirtualizationProperty EnableRowVirtualizationProperty EnableRowVirtualizationProperty

識別 EnableRowVirtualization 相依性屬性。Identifies the EnableRowVirtualization dependency property.

FrozenColumnCountProperty FrozenColumnCountProperty FrozenColumnCountProperty FrozenColumnCountProperty

識別 FrozenColumnCount 相依性屬性。Identifies the FrozenColumnCount dependency property.

GridLinesVisibilityProperty GridLinesVisibilityProperty GridLinesVisibilityProperty GridLinesVisibilityProperty

識別 GridLinesVisibility 相依性屬性。Identifies the GridLinesVisibility dependency property.

HeadersVisibilityProperty HeadersVisibilityProperty HeadersVisibilityProperty HeadersVisibilityProperty

識別 HeadersVisibility 相依性屬性。Identifies the HeadersVisibility dependency property.

HorizontalGridLinesBrushProperty HorizontalGridLinesBrushProperty HorizontalGridLinesBrushProperty HorizontalGridLinesBrushProperty

識別 HorizontalGridLinesBrush 相依性屬性。Identifies the HorizontalGridLinesBrush dependency property.

HorizontalScrollBarVisibilityProperty HorizontalScrollBarVisibilityProperty HorizontalScrollBarVisibilityProperty HorizontalScrollBarVisibilityProperty

識別 HorizontalScrollBarVisibility 相依性屬性。Identifies the HorizontalScrollBarVisibility dependency property.

IsReadOnlyProperty IsReadOnlyProperty IsReadOnlyProperty IsReadOnlyProperty

識別 IsReadOnly 相依性屬性。Identifies the IsReadOnly dependency property.

MaxColumnWidthProperty MaxColumnWidthProperty MaxColumnWidthProperty MaxColumnWidthProperty

識別 MaxColumnWidth 相依性屬性。Identifies the MaxColumnWidth dependency property.

MinColumnWidthProperty MinColumnWidthProperty MinColumnWidthProperty MinColumnWidthProperty

識別 MinColumnWidth 相依性屬性。Identifies the MinColumnWidth dependency property.

MinRowHeightProperty MinRowHeightProperty MinRowHeightProperty MinRowHeightProperty

識別 MinRowHeight 相依性屬性。Identifies the MinRowHeight dependency property.

NewItemMarginProperty NewItemMarginProperty NewItemMarginProperty NewItemMarginProperty

識別 NewItemMargin 相依性屬性。Identifies the NewItemMargin dependency property.

NonFrozenColumnsViewportHorizontalOffsetProperty NonFrozenColumnsViewportHorizontalOffsetProperty NonFrozenColumnsViewportHorizontalOffsetProperty NonFrozenColumnsViewportHorizontalOffsetProperty

識別 NonFrozenColumnsViewportHorizontalOffset 相依性屬性。Identifies the NonFrozenColumnsViewportHorizontalOffset dependency property.

RowBackgroundProperty RowBackgroundProperty RowBackgroundProperty RowBackgroundProperty

識別 RowBackground 相依性屬性。Identifies the RowBackground dependency property.

RowDetailsTemplateProperty RowDetailsTemplateProperty RowDetailsTemplateProperty RowDetailsTemplateProperty

識別 RowDetailsTemplate 相依性屬性。Identifies the RowDetailsTemplate dependency property.

RowDetailsTemplateSelectorProperty RowDetailsTemplateSelectorProperty RowDetailsTemplateSelectorProperty RowDetailsTemplateSelectorProperty

識別 RowDetailsTemplateSelector 相依性屬性。Identifies the RowDetailsTemplateSelector dependency property.

RowDetailsVisibilityModeProperty RowDetailsVisibilityModeProperty RowDetailsVisibilityModeProperty RowDetailsVisibilityModeProperty

識別 RowDetailsVisibilityMode 相依性屬性。Identifies the RowDetailsVisibilityMode dependency property.

RowHeaderActualWidthProperty RowHeaderActualWidthProperty RowHeaderActualWidthProperty RowHeaderActualWidthProperty

識別 RowHeaderActualWidth 相依性屬性。Identifies the RowHeaderActualWidth dependency property.

RowHeaderStyleProperty RowHeaderStyleProperty RowHeaderStyleProperty RowHeaderStyleProperty

識別 RowHeaderStyle 相依性屬性。Identifies the RowHeaderStyle dependency property.

RowHeaderTemplateProperty RowHeaderTemplateProperty RowHeaderTemplateProperty RowHeaderTemplateProperty

識別 RowHeaderTemplate 相依性屬性。Identifies the RowHeaderTemplate dependency property.

RowHeaderTemplateSelectorProperty RowHeaderTemplateSelectorProperty RowHeaderTemplateSelectorProperty RowHeaderTemplateSelectorProperty

識別 RowHeaderTemplateSelector 相依性屬性。Identifies the RowHeaderTemplateSelector dependency property.

RowHeaderWidthProperty RowHeaderWidthProperty RowHeaderWidthProperty RowHeaderWidthProperty

識別 RowHeaderWidth 相依性屬性。Identifies the RowHeaderWidth dependency property.

RowHeightProperty RowHeightProperty RowHeightProperty RowHeightProperty

識別 RowHeight 相依性屬性。Identifies the RowHeight dependency property.

RowStyleProperty RowStyleProperty RowStyleProperty RowStyleProperty

識別 RowStyle 相依性屬性。Identifies the RowStyle dependency property.

RowStyleSelectorProperty RowStyleSelectorProperty RowStyleSelectorProperty RowStyleSelectorProperty

識別 RowStyleSelector 相依性屬性。Identifies the RowStyleSelector dependency property.

RowValidationErrorTemplateProperty RowValidationErrorTemplateProperty RowValidationErrorTemplateProperty RowValidationErrorTemplateProperty

識別 RowValidationErrorTemplate 相依性屬性。Identifies the RowValidationErrorTemplate dependency property.

SelectionModeProperty SelectionModeProperty SelectionModeProperty SelectionModeProperty

識別 SelectionMode 相依性屬性。Identifies the SelectionMode dependency property.

SelectionUnitProperty SelectionUnitProperty SelectionUnitProperty SelectionUnitProperty

識別 SelectionUnit 相依性屬性。Identifies the SelectionUnit dependency property.

VerticalGridLinesBrushProperty VerticalGridLinesBrushProperty VerticalGridLinesBrushProperty VerticalGridLinesBrushProperty

識別 VerticalGridLinesBrush 相依性屬性。Identifies the VerticalGridLinesBrush dependency property.

VerticalScrollBarVisibilityProperty VerticalScrollBarVisibilityProperty VerticalScrollBarVisibilityProperty VerticalScrollBarVisibilityProperty

識別 VerticalScrollBarVisibility 相依性屬性。Identifies the VerticalScrollBarVisibility dependency property.

屬性

ActualHeight ActualHeight ActualHeight ActualHeight

取得呈現此項目的高度。Gets the rendered height of this element.

(Inherited from FrameworkElement)
ActualWidth ActualWidth ActualWidth ActualWidth

取得呈現此項目的寬度。Gets the rendered width of this element.

(Inherited from FrameworkElement)
AllowDrop AllowDrop AllowDrop AllowDrop

取得或設定此元素是否可以當做拖放操作目標的值。Gets or sets a value indicating whether this element can be used as the target of a drag-and-drop operation. 這是相依性屬性。This is a dependency property.

(Inherited from UIElement)
AlternatingRowBackground AlternatingRowBackground AlternatingRowBackground AlternatingRowBackground

取得或設定用於交替列的背景筆刷。Gets or sets the background brush for use on alternating rows.

AlternationCount AlternationCount AlternationCount AlternationCount

取得或設定 ItemsControl 中的交替項目容器數,它可讓交替容器具有獨特的外觀。Gets or sets the number of alternating item containers in the ItemsControl, which enables alternating containers to have a unique appearance.

(Inherited from ItemsControl)
AreAnyTouchesCaptured AreAnyTouchesCaptured AreAnyTouchesCaptured AreAnyTouchesCaptured

取得值,這個值表示是否至少有一個觸控擷取至這個項目。Gets a value that indicates whether at least one touch is captured to this element.

(Inherited from UIElement)
AreAnyTouchesCapturedWithin AreAnyTouchesCapturedWithin AreAnyTouchesCapturedWithin AreAnyTouchesCapturedWithin

取得值,這個值表示是否至少有一個觸控擷取至這個項目或其視覺化樹狀結構中的任何子項目。Gets a value that indicates whether at least one touch is captured to this element or to any child elements in its visual tree.

(Inherited from UIElement)
AreAnyTouchesDirectlyOver AreAnyTouchesDirectlyOver AreAnyTouchesDirectlyOver AreAnyTouchesDirectlyOver

取得值,這個值表示是否至少有一個觸控在這個項目上按下。Gets a value that indicates whether at least one touch is pressed over this element.

(Inherited from UIElement)
AreAnyTouchesOver AreAnyTouchesOver AreAnyTouchesOver AreAnyTouchesOver

取得值,這個值表示是否至少有一個觸控在這個項目或其視覺化樹狀結構中的任何子項目上按下。Gets a value that indicates whether at least one touch is pressed over this element or any child elements in its visual tree.

(Inherited from UIElement)
AreRowDetailsFrozen AreRowDetailsFrozen AreRowDetailsFrozen AreRowDetailsFrozen

取得或設定值,以指示列詳細資料能否水平捲動。Gets or sets a value that indicates whether the row details can scroll horizontally.

AutoGenerateColumns AutoGenerateColumns AutoGenerateColumns AutoGenerateColumns

取得或設定值,這個值表示是否會自動建立資料行。Gets or sets a value that indicates whether the columns are created automatically.

Background Background Background Background

取得或設定描述控制項背景的筆刷。Gets or sets a brush that describes the background of a control.

(Inherited from Control)
BindingGroup BindingGroup BindingGroup BindingGroup

取得或設定用於項目的 BindingGroupGets or sets the BindingGroup that is used for the element.

(Inherited from FrameworkElement)
BitmapEffect BitmapEffect BitmapEffect BitmapEffect

取得或設定直接套用至此元素呈現內容的點陣圖效果。Gets or sets a bitmap effect that applies directly to the rendered content for this element. 這是相依性屬性。This is a dependency property.

(Inherited from UIElement)
BitmapEffectInput BitmapEffectInput BitmapEffectInput BitmapEffectInput

取得或設定直接套用至此元素呈現內容的點陣圖效果輸入來源。Gets or sets an input source for the bitmap effect that applies directly to the rendered content for this element. 這是相依性屬性。This is a dependency property.

(Inherited from UIElement)
BorderBrush BorderBrush BorderBrush BorderBrush

取得或設定描述控制項框線背景的筆刷。Gets or sets a brush that describes the border background of a control.

(Inherited from Control)
BorderThickness BorderThickness BorderThickness BorderThickness

取得或設定控制項的框線粗細。Gets or sets the border thickness of a control.

(Inherited from Control)
CacheMode CacheMode CacheMode CacheMode

取得或設定 UIElement 的快取表示。Gets or sets a cached representation of the UIElement.

(Inherited from UIElement)
CanSelectMultipleItems CanSelectMultipleItems CanSelectMultipleItems CanSelectMultipleItems

取得或設定值,這個值代表是否可以一次選取 MultiSelector 中的多個項目。Gets or sets a value that indicates whether the multiple items in the MultiSelector can be selected at a time.

(Inherited from MultiSelector)
CanUserAddRows CanUserAddRows CanUserAddRows CanUserAddRows

取得或設定值,表示使用者是否可以將新資料列加入至 DataGridGets or sets a value that indicates whether the user can add new rows to the DataGrid.

CanUserDeleteRows CanUserDeleteRows CanUserDeleteRows CanUserDeleteRows

取得或設定值,這個值表示使用者是否可以從 DataGrid 中刪除資料列。Gets or sets a value that indicates whether the user can delete rows from the DataGrid.

CanUserReorderColumns CanUserReorderColumns CanUserReorderColumns CanUserReorderColumns

取得或定值,該值指出使用者是否可藉由以滑鼠拖曳欄標題來變更欄顯示順序。Gets or sets a value that indicates whether the user can change the column display order by dragging column headers with the mouse.

CanUserResizeColumns CanUserResizeColumns CanUserResizeColumns CanUserResizeColumns

取得或設定值,表示使用者是否可以使用滑鼠來調整資料行寬度。Gets or sets a value that indicates whether the user can adjust the width of columns by using the mouse.

CanUserResizeRows CanUserResizeRows CanUserResizeRows CanUserResizeRows

取得或設定值,以指示使用者能否使用滑鼠調整列的高度。Gets or sets a value that indicates whether the user can adjust the height of rows by using the mouse.

CanUserSortColumns CanUserSortColumns CanUserSortColumns CanUserSortColumns

取得或設定值,該值指出使用者是否可藉由按一下欄標題來排序欄。Gets or sets a value that indicates whether the user can sort columns by clicking the column header.

CellsPanelHorizontalOffset CellsPanelHorizontalOffset CellsPanelHorizontalOffset CellsPanelHorizontalOffset

取得 DataGridCellsPanel 的水平位移。Gets the horizontal offset for the DataGridCellsPanel.

CellStyle CellStyle CellStyle CellStyle

取得或設定套用至 DataGrid 中所有儲存格的樣式。Gets or sets the style applied to all cells in the DataGrid.

Clip Clip Clip Clip

取得或設定用來定義項目內容外框的幾何。Gets or sets the geometry used to define the outline of the contents of an element. 這是相依性屬性。This is a dependency property.

(Inherited from UIElement)
ClipboardCopyMode ClipboardCopyMode ClipboardCopyMode ClipboardCopyMode

取得或設定值,這個值表示如何將內容複製至剪貼簿。Gets or sets a value that indicates how content is copied to the clipboard.

ClipToBounds ClipToBounds ClipToBounds ClipToBounds

取得或設定是否裁剪此元素 (或來自此元素的子元素) 的內容,以符合容器元素大小的值。Gets or sets a value indicating whether to clip the content of this element (or content coming from the child elements of this element) to fit into the size of the containing element. 這是相依性屬性。This is a dependency property.

(Inherited from UIElement)
ColumnHeaderHeight ColumnHeaderHeight ColumnHeaderHeight ColumnHeaderHeight

取得或設定欄標題列的高度。Gets or sets the height of the column headers row.

ColumnHeaderStyle ColumnHeaderStyle ColumnHeaderStyle ColumnHeaderStyle

取得或設定套用至 DataGrid 中所有資料行標題的樣式。Gets or sets the style applied to all column headers in the DataGrid.

Columns Columns Columns Columns

取得集合,這個集合包含 DataGrid 中的所有資料行。Gets a collection that contains all the columns in the DataGrid.

ColumnWidth ColumnWidth ColumnWidth ColumnWidth

取得或設定 DataGrid 中資料行和標題的標準寬度和調整大小模式。Gets or sets the standard width and sizing mode of columns and headers in the DataGrid.

CommandBindings CommandBindings CommandBindings CommandBindings

取得與這個項目關聯的 CommandBinding 物件集合。Gets a collection of CommandBinding objects associated with this element. CommandBinding 會啟用此項目的命令處理,並宣告命令、其事件及此項目所附加之處理常式之間的連結。A CommandBinding enables command handling for this element, and declares the linkage between a command, its events, and the handlers attached by this element.

(Inherited from UIElement)
ContextMenu ContextMenu ContextMenu ContextMenu

取得或設定透過操作功能表項目的 使用者介面 (UI)user interface (UI) 要求操作功能表時應該出現的操作功能表項目。Gets or sets the context menu element that should appear whenever the context menu is requested through 使用者介面 (UI)user interface (UI) from within this element.

(Inherited from FrameworkElement)
CurrentCell CurrentCell CurrentCell CurrentCell

取得或設定擁有焦點的儲存格。Gets or sets the cell that has focus.

CurrentColumn CurrentColumn CurrentColumn CurrentColumn

取得或設定包含目前儲存格的資料行。Gets or sets the column that contains the current cell.

CurrentItem CurrentItem CurrentItem CurrentItem

取得繫結至資料列 (內含目前儲存格) 的資料項目。Gets the data item bound to the row that contains the current cell.

Cursor Cursor Cursor Cursor

取得或設定滑鼠指標在此元素上方時所顯示的游標。Gets or sets the cursor that displays when the mouse pointer is over this element.

(Inherited from FrameworkElement)
DataContext DataContext DataContext DataContext

取得或設定項目在參與資料繫結時的資料內容。Gets or sets the data context for an element when it participates in data binding.

(Inherited from FrameworkElement)
DefaultStyleKey DefaultStyleKey DefaultStyleKey DefaultStyleKey

取得或設定可在使用或定義佈景主題樣式時,用來參考這個控制項之樣式的索引鍵。Gets or sets the key to use to reference the style for this control, when theme styles are used or defined.

(Inherited from FrameworkElement)
DeleteCommand DeleteCommand DeleteCommand DeleteCommand

表示命令,這個命令表示要刪除目前的資料列。Represents the command that indicates the intention to delete the current row.

DependencyObjectType DependencyObjectType DependencyObjectType DependencyObjectType

取得包裝此執行個體之 CLRCLR 型別的 DependencyObjectTypeGets the DependencyObjectType that wraps the CLRCLR type of this instance.

(Inherited from DependencyObject)
DesiredSize DesiredSize DesiredSize DesiredSize

取得這個項目在版面配置處理序的測量傳遞期間所計算的大小。Gets the size that this element computed during the measure pass of the layout process.

(Inherited from UIElement)
Dispatcher Dispatcher Dispatcher Dispatcher

取得與這個 Dispatcher 關聯的 DispatcherObjectGets the Dispatcher this DispatcherObject is associated with.

(Inherited from DispatcherObject)
DisplayMemberPath DisplayMemberPath DisplayMemberPath DisplayMemberPath

取得或設定來源物件上值的路徑,以做為該物件的視覺化表示。Gets or sets a path to a value on the source object to serve as the visual representation of the object.

(Inherited from ItemsControl)
DragIndicatorStyle DragIndicatorStyle DragIndicatorStyle DragIndicatorStyle

取得或設定樣式,當呈現在拖曳資料行標題時所顯示的拖曳指示器時會使用此樣式。Gets or sets the style that is used when rendering the drag indicator that is displayed while dragging a column header.

DropLocationIndicatorStyle DropLocationIndicatorStyle DropLocationIndicatorStyle DropLocationIndicatorStyle

取得或設定樣式,拖曳資料行標題時會套用這個樣式以表示置放位置。Gets or sets the style that is applied to indicate the drop location when dragging a column header.

Effect Effect Effect Effect

取得或設定要套用至 UIElement 的點陣圖效果。Gets or sets the bitmap effect to apply to the UIElement. 這是相依性屬性。This is a dependency property.

(Inherited from UIElement)
EnableColumnVirtualization EnableColumnVirtualization EnableColumnVirtualization EnableColumnVirtualization

取得或設定值,這個值表示是否啟用資料行虛擬化。Gets or sets a value that indicates whether column virtualization is enabled.

EnableRowVirtualization EnableRowVirtualization EnableRowVirtualization EnableRowVirtualization

取得或設定值,這個值表示是否啟用資料列虛擬化。Gets or sets a value that indicates whether row virtualization is enabled.

FlowDirection FlowDirection FlowDirection FlowDirection

取得或設定文字和其他 使用者介面 (UI)user interface (UI) 項目在控制其配置的任何父項目中的流向。Gets or sets the direction that text and other 使用者介面 (UI)user interface (UI) elements flow within any parent element that controls their layout.

(Inherited from FrameworkElement)
Focusable Focusable Focusable Focusable

取得或設定元素是否能夠接收焦點的值。Gets or sets a value that indicates whether the element can receive focus. 這是相依性屬性。This is a dependency property.

(Inherited from UIElement)
FocusBorderBrushKey FocusBorderBrushKey FocusBorderBrushKey FocusBorderBrushKey

取得索引鍵,這個索引鍵參考擁有焦點之儲存格的預設框線筆刷。Gets the key that references the default border brush for a focused cell.

FocusVisualStyle FocusVisualStyle FocusVisualStyle FocusVisualStyle

取得或設定屬性,這個屬性可自訂外觀、效果或其他樣式特性,以在這個項目捕捉到鍵盤焦點時套用至項目。Gets or sets a property that enables customization of appearance, effects, or other style characteristics that will apply to this element when it captures keyboard focus.

(Inherited from FrameworkElement)
FontFamily FontFamily FontFamily FontFamily

取得或設定控制項的字型系列。Gets or sets the font family of the control.

(Inherited from Control)
FontSize FontSize FontSize FontSize

取得或設定字型大小。Gets or sets the font size.

(Inherited from Control)
FontStretch FontStretch FontStretch FontStretch

取得或設定螢幕上字型緊縮或加寬的程度。Gets or sets the degree to which a font is condensed or expanded on the screen.

(Inherited from Control)
FontStyle FontStyle FontStyle FontStyle

取得或設定字型樣式。Gets or sets the font style.

(Inherited from Control)
FontWeight FontWeight FontWeight FontWeight

取得或設定指定字型的粗細。Gets or sets the weight or thickness of the specified font.

(Inherited from Control)
ForceCursor ForceCursor ForceCursor ForceCursor

取得或設定值,這個值表示此 FrameworkElement 是否應強制使用者介面 (UI)user interface (UI) 呈現游標,如 Cursor 屬性所宣告。Gets or sets a value that indicates whether this FrameworkElement should force the 使用者介面 (UI)user interface (UI) to render the cursor as declared by the Cursor property.

(Inherited from FrameworkElement)
Foreground Foreground Foreground Foreground

取得或設定描述前景色彩的筆刷。Gets or sets a brush that describes the foreground color.

(Inherited from Control)
FrozenColumnCount FrozenColumnCount FrozenColumnCount FrozenColumnCount

取得或設定非捲動欄的數目。Gets or sets the number of non-scrolling columns.

GridLinesVisibility GridLinesVisibility GridLinesVisibility GridLinesVisibility

取得或設定值,這個值指出要顯示哪些格線。Gets or sets a value that indicates which grid lines are shown.

GroupStyle GroupStyle GroupStyle GroupStyle

取得 GroupStyle 物件的集合,這些物件定義群組每個層級的外觀。Gets a collection of GroupStyle objects that define the appearance of each level of groups.

(Inherited from ItemsControl)
GroupStyleSelector GroupStyleSelector GroupStyleSelector GroupStyleSelector

取得或設定一個方法,讓您可以為 GroupStyle 提供自訂選取邏輯,以套用至集合中的每個群組。Gets or sets a method that enables you to provide custom selection logic for a GroupStyle to apply to each group in a collection.

(Inherited from ItemsControl)
HandlesScrolling HandlesScrolling HandlesScrolling HandlesScrolling

取得值,這個值表示 DataGrid 是否支援自訂鍵盤捲動。Gets a value that indicates whether the DataGrid supports custom keyboard scrolling.

HasAnimatedProperties HasAnimatedProperties HasAnimatedProperties HasAnimatedProperties

取得值,這個值表示此項目是否有任何動畫屬性。Gets a value indicating whether this element has any animated properties.

(Inherited from UIElement)
HasEffectiveKeyboardFocus HasEffectiveKeyboardFocus HasEffectiveKeyboardFocus HasEffectiveKeyboardFocus

取得值,指出 UIElement 是否具有焦點。Gets a value that indicates whether the UIElement has focus.

(Inherited from UIElement)
HasItems HasItems HasItems HasItems

取得值,這個值表示 ItemsControl 是否包含項目。Gets a value that indicates whether the ItemsControl contains items.

(Inherited from ItemsControl)
HeadersVisibility HeadersVisibility HeadersVisibility HeadersVisibility

取得或設定值,這個值指定資料列和資料行標題的可視性。Gets or sets the value that specifies the visibility of the row and column headers.

HeadersVisibilityConverter HeadersVisibilityConverter HeadersVisibilityConverter HeadersVisibilityConverter

取得轉換器,這個轉換器會將 DataGridHeadersVisibility 轉換為 VisibilityGets the converter that converts a DataGridHeadersVisibility to a Visibility.

Height Height Height Height

取得或設定項目的建議高度。Gets or sets the suggested height of the element.

(Inherited from FrameworkElement)
HorizontalAlignment HorizontalAlignment HorizontalAlignment HorizontalAlignment

取得或設定套用至此元素在父項元素 (例如面板或項目控制項) 中組成時的水平對齊特性。Gets or sets the horizontal alignment characteristics applied to this element when it is composed within a parent element, such as a panel or items control.

(Inherited from FrameworkElement)
HorizontalContentAlignment HorizontalContentAlignment HorizontalContentAlignment HorizontalContentAlignment

取得或設定控制項內容的水平對齊。Gets or sets the horizontal alignment of the control's content.

(Inherited from Control)
HorizontalGridLinesBrush HorizontalGridLinesBrush HorizontalGridLinesBrush HorizontalGridLinesBrush

取得或設定用來繪製水平格線的筆刷。Gets or sets the brush that is used to draw the horizontal grid lines.

HorizontalScrollBarVisibility HorizontalScrollBarVisibility HorizontalScrollBarVisibility HorizontalScrollBarVisibility

取得或設定值,此值表示如何在 DataGrid 中顯示水平捲軸。Gets or sets a value that indicates how horizontal scroll bars are displayed in the DataGrid.

InheritanceBehavior InheritanceBehavior InheritanceBehavior InheritanceBehavior

取得或設定屬性值繼承的範圍限制、資源索引鍵查閱,以及 RelativeSource FindAncestor 查閱。Gets or sets the scope limits for property value inheritance, resource key lookup, and RelativeSource FindAncestor lookup.

(Inherited from FrameworkElement)
InputBindings InputBindings InputBindings InputBindings

取得與此元素關聯的輸入繫結集合。Gets the collection of input bindings associated with this element.

(Inherited from UIElement)
InputScope InputScope InputScope InputScope

取得或設定此 FrameworkElement 使用的輸入內容。Gets or sets the context for input used by this FrameworkElement.

(Inherited from FrameworkElement)
IsArrangeValid IsArrangeValid IsArrangeValid IsArrangeValid

取得值,這個值表示在此項目之配置中子項目的計算大小和位置是有效的。Gets a value indicating whether the computed size and position of child elements in this element's layout are valid.

(Inherited from UIElement)
IsEnabled IsEnabled IsEnabled IsEnabled

取得或設定值,這個值表示 使用者介面 (UI)user interface (UI) 中是否已啟用這個項目。Gets or sets a value indicating whether this element is enabled in the 使用者介面 (UI)user interface (UI). 這是相依性屬性。This is a dependency property.

(Inherited from UIElement)
IsEnabledCore IsEnabledCore IsEnabledCore IsEnabledCore

取得值,這個值會成為衍生類別中 IsEnabled 的傳回值。Gets a value that becomes the return value of IsEnabled in derived classes.

(Inherited from UIElement)
IsFocused IsFocused IsFocused IsFocused

取得值,決定這個項目是否具有邏輯焦點。Gets a value that determines whether this element has logical focus. 這是相依性屬性。This is a dependency property.

(Inherited from UIElement)
IsGrouping IsGrouping IsGrouping IsGrouping

取得值,這個值表示控制項是否使用群組。Gets a value that indicates whether the control is using grouping.

(Inherited from ItemsControl)
IsHitTestVisible IsHitTestVisible IsHitTestVisible IsHitTestVisible

取得或設定宣告此元素是否可以從其呈現內容的某些部分傳回,作為點擊測試結果的值。Gets or sets a value that declares whether this element can possibly be returned as a hit test result from some portion of its rendered content. 這是相依性屬性。This is a dependency property.

(Inherited from UIElement)
IsInitialized IsInitialized IsInitialized IsInitialized

取得值,指出在由 XAMLXAML 處理器處理期間,或是明確地呼叫 EndInit() 方法時,是否已初始化這個項目。Gets a value that indicates whether this element has been initialized, either during processing by a XAMLXAML processor, or by explicitly having its EndInit() method called.

(Inherited from FrameworkElement)
IsInputMethodEnabled IsInputMethodEnabled IsInputMethodEnabled IsInputMethodEnabled

取得值,指出輸入法系統 (例如 輸入法 (IME)Input Method Editor (IME)) 是否已為處理這個項目的輸入而啟用。Gets a value indicating whether an input method system, such as an 輸入法 (IME)Input Method Editor (IME), is enabled for processing the input to this element.

(Inherited from UIElement)
IsKeyboardFocused IsKeyboardFocused IsKeyboardFocused IsKeyboardFocused

取得值,指出這個項目是否具有鍵盤焦點。Gets a value indicating whether this element has keyboard focus. 這是相依性屬性。This is a dependency property.

(Inherited from UIElement)
IsKeyboardFocusWithin IsKeyboardFocusWithin IsKeyboardFocusWithin IsKeyboardFocusWithin

取得值,表示鍵盤焦點是否在項目或其視覺化樹狀結構子項目內的任何位置。Gets a value indicating whether keyboard focus is anywhere within the element or its visual tree child elements. 這是相依性屬性。This is a dependency property.

(Inherited from UIElement)
IsLoaded IsLoaded IsLoaded IsLoaded

取得值,這個值表示此項目是否已載入以供展示。Gets a value that indicates whether this element has been loaded for presentation.

(Inherited from FrameworkElement)
IsManipulationEnabled IsManipulationEnabled IsManipulationEnabled IsManipulationEnabled

取得或設定值,這個值表示是否在此 UIElement 上啟用操作事件。Gets or sets a value that indicates whether manipulation events are enabled on this UIElement.

(Inherited from UIElement)
IsMeasureValid IsMeasureValid IsMeasureValid IsMeasureValid

取得值,這個值表示配置測量所傳回的目前大小是否有效。Gets a value indicating whether the current size returned by layout measure is valid.

(Inherited from UIElement)
IsMouseCaptured IsMouseCaptured IsMouseCaptured IsMouseCaptured

取得值,指出是否將滑鼠擷取至這個項目。Gets a value indicating whether the mouse is captured to this element. 這是相依性屬性。This is a dependency property.

(Inherited from UIElement)
IsMouseCaptureWithin IsMouseCaptureWithin IsMouseCaptureWithin IsMouseCaptureWithin

取得值,這個值決定滑鼠擷取是由這個項目持有,還是由其視覺化樹狀中的子項目持有。Gets a value that determines whether mouse capture is held by this element or by child elements in its visual tree. 這是相依性屬性。This is a dependency property.

(Inherited from UIElement)
IsMouseDirectlyOver IsMouseDirectlyOver IsMouseDirectlyOver IsMouseDirectlyOver

取得值,指出滑鼠指標位置是否與點擊測試結果對應,該結果會將複合項目納入考量。Gets a value that indicates whether the position of the mouse pointer corresponds to hit test results, which take element compositing into account. 這是相依性屬性。This is a dependency property.

(Inherited from UIElement)
IsMouseOver IsMouseOver IsMouseOver IsMouseOver

取得值,指出滑鼠指標是否在這個項目上方 (包括視覺化樹狀中的子項目)。Gets a value indicating whether the mouse pointer is located over this element (including child elements in the visual tree). 這是相依性屬性。This is a dependency property.

(Inherited from UIElement)
IsReadOnly IsReadOnly IsReadOnly IsReadOnly

取得或設定值,此值表示使用者是否可以編輯 DataGrid 中的值。Gets or sets a value that indicates whether the user can edit values in the DataGrid.

IsSealed IsSealed IsSealed IsSealed

取得值,這個值表示此執行個體目前是否已密封 (唯讀)。Gets a value that indicates whether this instance is currently sealed (read-only).

(Inherited from DependencyObject)
IsStylusCaptured IsStylusCaptured IsStylusCaptured IsStylusCaptured

取得值,指出這個項目是否擷取手寫筆。Gets a value indicating whether the stylus is captured by this element. 這是相依性屬性。This is a dependency property.

(Inherited from UIElement)
IsStylusCaptureWithin IsStylusCaptureWithin IsStylusCaptureWithin IsStylusCaptureWithin

取得值,這個值決定手寫筆擷取是由這個項目持有,還是由項目範圍及其視覺化樹狀結構中的項目持有。Gets a value that determines whether stylus capture is held by this element, or an element within the element bounds and its visual tree. 這是相依性屬性。This is a dependency property.

(Inherited from UIElement)
IsStylusDirectlyOver IsStylusDirectlyOver IsStylusDirectlyOver IsStylusDirectlyOver

取得值,指出手寫筆位置是否與點擊測試結果相對應,該結果會將複合項目納入考量。Gets a value that indicates whether the stylus position corresponds to hit test results, which take element compositing into account. 這是相依性屬性。This is a dependency property.

(Inherited from UIElement)
IsStylusOver IsStylusOver IsStylusOver IsStylusOver

取得值,指出手寫筆游標是否位在這個項目上方 (包括視覺子項目)。Gets a value indicating whether the stylus cursor is located over this element (including visual child elements). 這是相依性屬性。This is a dependency property.

(Inherited from UIElement)
IsSynchronizedWithCurrentItem IsSynchronizedWithCurrentItem IsSynchronizedWithCurrentItem IsSynchronizedWithCurrentItem

取得或設定值,這個值表示 Selector 是否應維持 SelectedItemItems 屬性中的目前項目同步。Gets or sets a value that indicates whether a Selector should keep the SelectedItem synchronized with the current item in the Items property.

(Inherited from Selector)
IsTabStop IsTabStop IsTabStop IsTabStop

取得或設定值,這個值表示控制項是否包含於索引標籤巡覽。Gets or sets a value that indicates whether a control is included in tab navigation.

(Inherited from Control)
IsTextSearchCaseSensitive IsTextSearchCaseSensitive IsTextSearchCaseSensitive IsTextSearchCaseSensitive

取得或設定值,這個值表示搜尋項目時大小寫是否為條件。Gets or sets a value that indicates whether case is a condition when searching for items.

(Inherited from ItemsControl)
IsTextSearchEnabled IsTextSearchEnabled IsTextSearchEnabled IsTextSearchEnabled

取得或設定值,這個值表示 TextSearch 執行個體上是否啟用 ItemsControlGets or sets a value that indicates whether TextSearch is enabled on the ItemsControl instance.

(Inherited from ItemsControl)
IsUpdatingSelectedItems IsUpdatingSelectedItems IsUpdatingSelectedItems IsUpdatingSelectedItems

取得值,這個值指出 MultiSelector 是否正在對 SelectedItems 集合執行大量更新。Gets a value that indicates whether the MultiSelector is currently performing a bulk update to the SelectedItems collection.

(Inherited from MultiSelector)
IsVisible IsVisible IsVisible IsVisible

取得值,表示這個項目在 使用者介面 (UI)user interface (UI) 中是否可見。Gets a value indicating whether this element is visible in the 使用者介面 (UI)user interface (UI). 這是相依性屬性。This is a dependency property.

(Inherited from UIElement)
ItemBindingGroup ItemBindingGroup ItemBindingGroup ItemBindingGroup

取得或設定複製到 BindingGroup 中每個項目的 ItemsControlGets or sets the BindingGroup that is copied to each item in the ItemsControl.

(Inherited from ItemsControl)
ItemContainerGenerator ItemContainerGenerator ItemContainerGenerator ItemContainerGenerator

取得與控制項關聯的 ItemContainerGeneratorGets the ItemContainerGenerator that is associated with the control.

(Inherited from ItemsControl)
ItemContainerStyle ItemContainerStyle ItemContainerStyle ItemContainerStyle

取得或設定 Style,以套用至為各項目 (item) 所產生的容器項目 (element)。Gets or sets the Style that is applied to the container element generated for each item.

(Inherited from ItemsControl)
ItemContainerStyleSelector ItemContainerStyleSelector ItemContainerStyleSelector ItemContainerStyleSelector

取得或設定自訂的樣式選取邏輯,以套用至所產生的每個容器項目。Gets or sets custom style-selection logic for a style that can be applied to each generated container element.

(Inherited from ItemsControl)
Items Items Items Items

取得用來產生 ItemsControl 之內容的集合。Gets the collection used to generate the content of the ItemsControl.

(Inherited from ItemsControl)
ItemsPanel ItemsPanel ItemsPanel ItemsPanel

取得或設定樣板,這個樣板定義控制項目配置的面板。Gets or sets the template that defines the panel that controls the layout of items.

(Inherited from ItemsControl)
ItemsSource ItemsSource ItemsSource ItemsSource

取得或設定用來產生 ItemsControl 之內容的集合。Gets or sets a collection used to generate the content of the ItemsControl.

(Inherited from ItemsControl)
ItemStringFormat ItemStringFormat ItemStringFormat ItemStringFormat

取得或設定複合字串,這個字串會指定如何在 ItemsControl 中的項目顯示為字串時將其格式化。Gets or sets a composite string that specifies how to format the items in the ItemsControl if they are displayed as strings.

(Inherited from ItemsControl)
ItemTemplate ItemTemplate ItemTemplate ItemTemplate

取得或設定用來顯示每個項目的 DataTemplateGets or sets the DataTemplate used to display each item.

(Inherited from ItemsControl)
ItemTemplateSelector ItemTemplateSelector ItemTemplateSelector ItemTemplateSelector

取得或設定自訂邏輯,以選擇要用來顯示每個項目的樣板。Gets or sets the custom logic for choosing a template used to display each item.

(Inherited from ItemsControl)
Language Language Language Language

取得或設定套用至項目的當地語系化/全球化語言資訊。Gets or sets localization/globalization language information that applies to an element.

(Inherited from FrameworkElement)
LayoutTransform LayoutTransform LayoutTransform LayoutTransform

取得或設定應在執行配置時,套用在這個項目圖形轉換。Gets or sets a graphics transformation that should apply to this element when layout is performed.

(Inherited from FrameworkElement)
LogicalChildren LogicalChildren LogicalChildren LogicalChildren

ItemsControl 物件的邏輯子物件取得列舉值。Gets an enumerator for the logical child objects of the ItemsControl object.

(Inherited from ItemsControl)
Margin Margin Margin Margin

取得或設定項目的外邊界。Gets or sets the outer margin of an element.

(Inherited from FrameworkElement)
MaxColumnWidth MaxColumnWidth MaxColumnWidth MaxColumnWidth

取得或設定 DataGrid 中資料行和標題的最大寬度條件約束。Gets or sets the maximum width constraint of the columns and headers in the DataGrid.

MaxHeight MaxHeight MaxHeight MaxHeight

取得或設定元素的最大高度限制。Gets or sets the maximum height constraint of the element.

(Inherited from FrameworkElement)
MaxWidth MaxWidth MaxWidth MaxWidth

取得或設定元素的最大寬度限制。Gets or sets the maximum width constraint of the element.

(Inherited from FrameworkElement)
MinColumnWidth MinColumnWidth MinColumnWidth MinColumnWidth

取得或設定 DataGrid 中資料行和標題的最小寬度條件約束。Gets or sets the minimum width constraint of the columns and headers in the DataGrid.

MinHeight MinHeight MinHeight MinHeight

取得或設定元素的最小高度限制。Gets or sets the minimum height constraint of the element.

(Inherited from FrameworkElement)
MinRowHeight MinRowHeight MinRowHeight MinRowHeight

取得或設定 DataGrid 中資料列和標題的最小高度條件約束。Gets or sets the minimum height constraint of the rows and headers in the DataGrid.

MinWidth MinWidth MinWidth MinWidth

取得或設定元素的最小寬度限制。Gets or sets the minimum width constraint of the element.

(Inherited from FrameworkElement)
Name Name Name Name

取得或設定項目的識別名稱。Gets or sets the identifying name of the element. 此名稱提供參考,以便程式碼後置 (例如事件處理常式程式碼) 可以在 XAMLXAML 處理器處理期間建構標記項目之後參考此項目。The name provides a reference so that code-behind, such as event handler code, can refer to a markup element after it is constructed during processing by a XAMLXAML processor.

(Inherited from FrameworkElement)
NewItemMargin NewItemMargin NewItemMargin NewItemMargin

取得或設定新項目資料列的邊界。Gets or sets the margin for the new item row.

NonFrozenColumnsViewportHorizontalOffset NonFrozenColumnsViewportHorizontalOffset NonFrozenColumnsViewportHorizontalOffset NonFrozenColumnsViewportHorizontalOffset

取得檢視埠中可捲動資料行的水平位移。Gets the horizontal offset of the scrollable columns in the view port.

Opacity Opacity Opacity Opacity

取得或設定套用至整個 UIElement (在 使用者介面 (UI)user interface (UI) 中呈現時) 的不透明度因數。Gets or sets the opacity factor applied to the entire UIElement when it is rendered in the 使用者介面 (UI)user interface (UI). 這是相依性屬性。This is a dependency property.

(Inherited from UIElement)
OpacityMask OpacityMask OpacityMask OpacityMask

取得或設定套用至任何 Alpha 色板遮罩 (用來遮住此項目的呈現內容) 時實作 Brush 的不透明度遮罩。Gets or sets an opacity mask, as a Brush implementation that is applied to any alpha-channel masking for the rendered content of this element. 這是相依性屬性。This is a dependency property.

(Inherited from UIElement)
OverridesDefaultStyle OverridesDefaultStyle OverridesDefaultStyle OverridesDefaultStyle

取得或設定此元素的樣式屬性是否來自佈景主題樣式的值。Gets or sets a value that indicates whether this element incorporates style properties from theme styles.

(Inherited from FrameworkElement)
Padding Padding Padding Padding

取得或設定控制項內部的邊框間距。Gets or sets the padding inside a control.

(Inherited from Control)
Parent Parent Parent Parent

取得這個項目的邏輯父項目。Gets the logical parent element of this element.

(Inherited from FrameworkElement)
PersistId PersistId PersistId PersistId

取得值,這個值可唯一識別此項目。Gets a value that uniquely identifies this element.

(Inherited from UIElement)
RenderSize RenderSize RenderSize RenderSize

取得 (或設定) 這個項目的最終呈現大小。Gets (or sets) the final render size of this element.

(Inherited from UIElement)
RenderTransform RenderTransform RenderTransform RenderTransform

取得或設定影響這個項目呈現位置的轉換資訊。Gets or sets transform information that affects the rendering position of this element. 這是相依性屬性。This is a dependency property.

(Inherited from UIElement)
RenderTransformOrigin RenderTransformOrigin RenderTransformOrigin RenderTransformOrigin

取得或設定 RenderTransform (相對於項目邊界) 宣告任何可能呈現轉換的中心點。Gets or sets the center point of any possible render transform declared by RenderTransform, relative to the bounds of the element. 這是相依性屬性。This is a dependency property.

(Inherited from UIElement)
Resources Resources Resources Resources

取得或設定在本機定義的資源字典。Gets or sets the locally-defined resource dictionary.

(Inherited from FrameworkElement)
RowBackground RowBackground RowBackground RowBackground

取得或設定列背景的預設筆刷。Gets or sets the default brush for the row background.

RowDetailsScrollingConverter RowDetailsScrollingConverter RowDetailsScrollingConverter RowDetailsScrollingConverter

取得轉換器,這個轉換器會將布林值轉換為 SelectiveScrollingOrientationGets the converter that converts a Boolean value to a SelectiveScrollingOrientation.

RowDetailsTemplate RowDetailsTemplate RowDetailsTemplate RowDetailsTemplate

取得或設定用來顯示列詳細資料的範本。Gets or sets the template that is used to display the row details.

RowDetailsTemplateSelector RowDetailsTemplateSelector RowDetailsTemplateSelector RowDetailsTemplateSelector

取得或設定用於列詳細資料的範本選擇器。Gets or sets the template selector that is used for the row details.

RowDetailsVisibilityMode RowDetailsVisibilityMode RowDetailsVisibilityMode RowDetailsVisibilityMode

取得或設定用來指示何時顯示資料列詳細資料區段的值。Gets or sets a value that indicates when the details section of a row is displayed.

RowHeaderActualWidth RowHeaderActualWidth RowHeaderActualWidth RowHeaderActualWidth

取得資料列標題資料行的呈現寬度。Gets the rendered width of the row headers column.

RowHeaderStyle RowHeaderStyle RowHeaderStyle RowHeaderStyle

取得或設定套用到所有列標題的樣式。Gets or sets the style applied to all row headers.

RowHeaderTemplate RowHeaderTemplate RowHeaderTemplate RowHeaderTemplate

取得或設定列標題的範本。Gets or set the template for the row headers.

RowHeaderTemplateSelector RowHeaderTemplateSelector RowHeaderTemplateSelector RowHeaderTemplateSelector

取得或設定列標題的範本選擇器。Gets or sets the template selector for row headers.

RowHeaderWidth RowHeaderWidth RowHeaderWidth RowHeaderWidth

取得或設定列標題欄的寬度。Gets or sets the width of the row header column.

RowHeight RowHeight RowHeight RowHeight

取得或設定所有資料列的建議高度。Gets or sets the suggested height for all rows.

RowStyle RowStyle RowStyle RowStyle

取得或設定套用到所有列的樣式。Gets or sets the style applied to all rows.

RowStyleSelector RowStyleSelector RowStyleSelector RowStyleSelector

取得或設定列的樣式選擇器。Gets or sets the style selector for the rows.

RowValidationErrorTemplate RowValidationErrorTemplate RowValidationErrorTemplate RowValidationErrorTemplate

取得或設定用來以視覺效果指示列驗證錯誤的範本。Gets or sets the template that is used to visually indicate an error in row validation.

RowValidationRules RowValidationRules RowValidationRules RowValidationRules

取得規則,以用來驗證每一列的資料。Gets the rules that are used to validate the data in each row.

SelectAllCommand SelectAllCommand SelectAllCommand SelectAllCommand

表示命令,這個命令表示要選取 DataGrid 中的所有儲存格。Represents the command that indicates the intention to select all cells in the DataGrid.

SelectedCells SelectedCells SelectedCells SelectedCells

取得目前選取之儲存格的清單。Gets the list of cells that are currently selected.

SelectedIndex SelectedIndex SelectedIndex SelectedIndex

取得或設定目前選取範圍中第一個項目的索引,若選取範圍是空的,則傳回 -1。Gets or sets the index of the first item in the current selection or returns negative one (-1) if the selection is empty.

(Inherited from Selector)
SelectedItem SelectedItem SelectedItem SelectedItem

取得或設定目前選取範圍中的第一個項目,如果選取範圍是空的,則傳回 null。Gets or sets the first item in the current selection or returns null if the selection is empty

(Inherited from Selector)
SelectedItems SelectedItems SelectedItems SelectedItems

取得在 MultiSelector 中的已選取項目。Gets the items in the MultiSelector that are selected.

(Inherited from MultiSelector)
SelectedValue SelectedValue SelectedValue SelectedValue

取得或設定藉由使用 SelectedItem 而獲得的 SelectedValuePath 值。Gets or sets the value of the SelectedItem, obtained by using SelectedValuePath.

(Inherited from Selector)
SelectedValuePath SelectedValuePath SelectedValuePath SelectedValuePath

取得或設定路徑,這個路徑會用來從 SelectedValue 取得 SelectedItemGets or sets the path that is used to get the SelectedValue from the SelectedItem.

(Inherited from Selector)
SelectionMode SelectionMode SelectionMode SelectionMode

取得或設定值,此職表示如何在 DataGrid 中選取列和資料格。Gets or sets a value that indicates how rows and cells are selected in the DataGrid.

SelectionUnit SelectionUnit SelectionUnit SelectionUnit

取得或設定值,此值表示是否可在 DataGrid 中選取列和 (或) 資料格。Gets or sets a value that indicates whether rows, cells, or both can be selected in the DataGrid.

SnapsToDevicePixels SnapsToDevicePixels SnapsToDevicePixels SnapsToDevicePixels

取得或設定值,該值判斷這個項目的呈現在呈現期間是否該使用裝置特定像素的設定。Gets or sets a value that determines whether rendering for this element should use device-specific pixel settings during rendering. 這是相依性屬性。This is a dependency property.

(Inherited from UIElement)
Style Style Style Style

取得或設定這個項目呈現時要使用的樣式。Gets or sets the style used by this element when it is rendered.

(Inherited from FrameworkElement)
StylusPlugIns StylusPlugIns StylusPlugIns StylusPlugIns

取得與這個項目關聯的所有手寫筆外掛程式 (自訂) 物件集合。Gets a collection of all stylus plug-in (customization) objects associated with this element.

(Inherited from UIElement)
TabIndex TabIndex TabIndex TabIndex

取得或設定值,此值會決定當使用者使用 TAB 鍵巡覽控制項時,項目接收焦點的順序。Gets or sets a value that determines the order in which elements receive focus when the user navigates through controls by using the TAB key.

(Inherited from Control)
Tag Tag Tag Tag

取得或設定可以用來儲存關於此元素自訂資訊的任意物件值。Gets or sets an arbitrary object value that can be used to store custom information about this element.

(Inherited from FrameworkElement)
Template Template Template Template

取得或設定控制項範本。Gets or sets a control template.

(Inherited from Control)
TemplatedParent TemplatedParent TemplatedParent TemplatedParent

取得這個項目的範本父代參考。Gets a reference to the template parent of this element. 如果項目不是透過範本建立,則這個屬性無關。This property is not relevant if the element was not created through a template.

(Inherited from FrameworkElement)
ToolTip ToolTip ToolTip ToolTip

取得或設定工具提示物件,該物件會為使用者介面 (UI)user interface (UI) 中的這個項目而顯示。Gets or sets the tool-tip object that is displayed for this element in the 使用者介面 (UI)user interface (UI).

(Inherited from FrameworkElement)
TouchesCaptured TouchesCaptured TouchesCaptured TouchesCaptured

取得已擷取至這個項目的所有觸控裝置。Gets all touch devices that are captured to this element.

(Inherited from UIElement)
TouchesCapturedWithin TouchesCapturedWithin TouchesCapturedWithin TouchesCapturedWithin

取得已擷取至這個項目或其視覺化樹狀結構中之任何子項目的所有觸控裝置。Gets all touch devices that are captured to this element or any child elements in its visual tree.

(Inherited from UIElement)
TouchesDirectlyOver TouchesDirectlyOver TouchesDirectlyOver TouchesDirectlyOver

取得在這個項目上停留的所有觸控裝置。Gets all touch devices that are over this element.

(Inherited from UIElement)
TouchesOver TouchesOver TouchesOver TouchesOver

取得在這個項目或其視覺化樹狀結構中之任何子項目上停留的所有觸控裝置。Gets all touch devices that are over this element or any child elements in its visual tree.

(Inherited from UIElement)
Triggers Triggers Triggers Triggers

取得直接在這個項目或子項目中建立的觸發程序集合。Gets the collection of triggers established directly on this element, or in child elements.

(Inherited from FrameworkElement)
Uid Uid Uid Uid

取得或設定這個項目的唯一識別項 (適用於當地語系化)。Gets or sets the unique identifier (for localization) for this element. 這是相依性屬性。This is a dependency property.

(Inherited from UIElement)
UseLayoutRounding UseLayoutRounding UseLayoutRounding UseLayoutRounding

取得或設定值,指出配置進位是否應該在配置期間套用到這個項目的大小和位置。Gets or sets a value that indicates whether layout rounding should be applied to this element's size and position during layout.

(Inherited from FrameworkElement)
VerticalAlignment VerticalAlignment VerticalAlignment VerticalAlignment

取得或設定套用至此項目在父項目 (例如面板或項目控制項) 中組成時的垂直對齊特性。Gets or sets the vertical alignment characteristics applied to this element when it is composed within a parent element such as a panel or items control.

(Inherited from FrameworkElement)
VerticalContentAlignment VerticalContentAlignment VerticalContentAlignment VerticalContentAlignment

取得或設定控制項內容的垂直對齊。Gets or sets the vertical alignment of the control's content.

(Inherited from Control)
VerticalGridLinesBrush VerticalGridLinesBrush VerticalGridLinesBrush VerticalGridLinesBrush

取得或設定用來繪製垂直格線的筆刷。Gets or sets the brush that is used to draw the vertical grid lines.

VerticalScrollBarVisibility VerticalScrollBarVisibility VerticalScrollBarVisibility VerticalScrollBarVisibility

取得或設定值,此值表示如何在 DataGrid 中顯示垂直捲軸。Gets or sets a value that indicates how vertical scroll bars are displayed in the DataGrid.

Visibility Visibility Visibility Visibility

取得或設定這個項目的 使用者介面 (UI)user interface (UI) 可見性。Gets or sets the 使用者介面 (UI)user interface (UI) visibility of this element. 這是相依性屬性。This is a dependency property.

(Inherited from UIElement)
VisualBitmapEffect VisualBitmapEffect VisualBitmapEffect VisualBitmapEffect

取得或設定 BitmapEffectVisual 值。Gets or sets the BitmapEffect value for the Visual.

(Inherited from Visual)
VisualBitmapEffectInput VisualBitmapEffectInput VisualBitmapEffectInput VisualBitmapEffectInput

取得或設定 BitmapEffectInputVisual 值。Gets or sets the BitmapEffectInput value for the Visual.

(Inherited from Visual)
VisualBitmapScalingMode VisualBitmapScalingMode VisualBitmapScalingMode VisualBitmapScalingMode

取得或設定 BitmapScalingModeVisualGets or sets the BitmapScalingMode for the Visual.

(Inherited from Visual)
VisualCacheMode VisualCacheMode VisualCacheMode VisualCacheMode

取得或設定 Visual 的快取表示。Gets or sets a cached representation of the Visual.

(Inherited from Visual)
VisualChildrenCount VisualChildrenCount VisualChildrenCount VisualChildrenCount

取得這個項目內的視覺化子項目數。Gets the number of visual child elements within this element.

(Inherited from FrameworkElement)
VisualClearTypeHint VisualClearTypeHint VisualClearTypeHint VisualClearTypeHint

取得或設定 ClearTypeHint,以決定 Visual 中的 ClearType 呈現方式。Gets or sets the ClearTypeHint that determines how ClearType is rendered in the Visual.

(Inherited from Visual)
VisualClip VisualClip VisualClip VisualClip

取得或設定 Visual 的裁剪區域做為 Geometry 值。Gets or sets the clip region of the Visual as a Geometry value.

(Inherited from Visual)
VisualEdgeMode VisualEdgeMode VisualEdgeMode VisualEdgeMode

取得或設定 Visual 的邊緣模式做為 EdgeMode 值。Gets or sets the edge mode of the Visual as an EdgeMode value.

(Inherited from Visual)
VisualEffect VisualEffect VisualEffect VisualEffect

取得或設定要套用至 Visual 的點陣圖效果。Gets or sets the bitmap effect to apply to the Visual.

(Inherited from Visual)
VisualOffset VisualOffset VisualOffset VisualOffset

取得或設定視覺物件的位移值。Gets or sets the offset value of the visual object.

(Inherited from Visual)
VisualOpacity VisualOpacity VisualOpacity VisualOpacity

取得或設定 Visual 的不透明度。Gets or sets the opacity of the Visual.

(Inherited from Visual)
VisualOpacityMask VisualOpacityMask VisualOpacityMask VisualOpacityMask

取得或設定 Brush 值,這個值表示 Visual 的不透明遮罩。Gets or sets the Brush value that represents the opacity mask of the Visual.

(Inherited from Visual)
VisualParent VisualParent VisualParent VisualParent

取得視覺物件的視覺化樹狀結構父物件。Gets the visual tree parent of the visual object.

(Inherited from Visual)
VisualScrollableAreaClip VisualScrollableAreaClip VisualScrollableAreaClip VisualScrollableAreaClip

取得或設定 Visual 的可捲動裁剪區域。Gets or sets a clipped scrollable area for the Visual.

(Inherited from Visual)
VisualTextHintingMode VisualTextHintingMode VisualTextHintingMode VisualTextHintingMode

取得或設定 VisualTextHintingModeGets or sets the TextHintingMode of the Visual.

(Inherited from Visual)
VisualTextRenderingMode VisualTextRenderingMode VisualTextRenderingMode VisualTextRenderingMode

取得或設定 VisualTextRenderingModeGets or sets the TextRenderingMode of the Visual.

(Inherited from Visual)
VisualTransform VisualTransform VisualTransform VisualTransform

取得或設定 TransformVisual 值。Gets or sets the Transform value for the Visual.

(Inherited from Visual)
VisualXSnappingGuidelines VisualXSnappingGuidelines VisualXSnappingGuidelines VisualXSnappingGuidelines

取得或設定 X 座標 (垂直) 導線集合。Gets or sets the x-coordinate (vertical) guideline collection.

(Inherited from Visual)
VisualYSnappingGuidelines VisualYSnappingGuidelines VisualYSnappingGuidelines VisualYSnappingGuidelines

取得或設定 Y 座標 (水平) 導線集合。Gets or sets the y-coordinate (horizontal) guideline collection.

(Inherited from Visual)
Width Width Width Width

取得或設定元素的寬度。Gets or sets the width of the element.

(Inherited from FrameworkElement)

方法

AddChild(Object) AddChild(Object) AddChild(Object) AddChild(Object)

加入指定的物件做為 ItemsControl 物件的子系。Adds the specified object as the child of the ItemsControl object.

(Inherited from ItemsControl)
AddHandler(RoutedEvent, Delegate) AddHandler(RoutedEvent, Delegate) AddHandler(RoutedEvent, Delegate) AddHandler(RoutedEvent, Delegate)

加入所指定路由事件的路由事件處理常式,會將此處理常式加入目前項目的處理常式集合中。Adds a routed event handler for a specified routed event, adding the handler to the handler collection on the current element.

(Inherited from UIElement)
AddHandler(RoutedEvent, Delegate, Boolean) AddHandler(RoutedEvent, Delegate, Boolean) AddHandler(RoutedEvent, Delegate, Boolean) AddHandler(RoutedEvent, Delegate, Boolean)

加入所指定路由事件的路由事件處理常式,會將此處理常式加入目前項目的處理常式集合中。Adds a routed event handler for a specified routed event, adding the handler to the handler collection on the current element. handledEventsToo 指定為 true,為已標示為由事件路由上另一個項目處理的事件叫用提供的處理常式。Specify handledEventsToo as true to have the provided handler be invoked for routed event that had already been marked as handled by another element along the event route.

(Inherited from UIElement)
AddLogicalChild(Object) AddLogicalChild(Object) AddLogicalChild(Object) AddLogicalChild(Object)

將所提供的物件加入至此項目的邏輯樹狀結構。Adds the provided object to the logical tree of this element.

(Inherited from FrameworkElement)
AddText(String) AddText(String) AddText(String) AddText(String)

將指定的文字字串加入 ItemsControl 物件。Adds the specified text string to the ItemsControl object.

(Inherited from ItemsControl)
AddToEventRoute(EventRoute, RoutedEventArgs) AddToEventRoute(EventRoute, RoutedEventArgs) AddToEventRoute(EventRoute, RoutedEventArgs) AddToEventRoute(EventRoute, RoutedEventArgs)

針對目前的 EventRoute 事件處理常式集合,將處理常式加入至指定的 UIElementAdds handlers to the specified EventRoute for the current UIElement event handler collection.

(Inherited from UIElement)
AddVisualChild(Visual) AddVisualChild(Visual) AddVisualChild(Visual) AddVisualChild(Visual)

定義兩個視覺項目之間的父-子關係。Defines the parent-child relationship between two visuals.

(Inherited from Visual)
ApplyAnimationClock(DependencyProperty, AnimationClock) ApplyAnimationClock(DependencyProperty, AnimationClock) ApplyAnimationClock(DependencyProperty, AnimationClock) ApplyAnimationClock(DependencyProperty, AnimationClock)

將動畫套用至這個項目上所指定的相依性屬性。Applies an animation to a specified dependency property on this element. 任何現有動畫都會停止並取代為新的動畫。Any existing animations are stopped and replaced with the new animation.

(Inherited from UIElement)
ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior) ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior) ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior) ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior)

將動畫套用至這個項目上所指定的相依性屬性,且可以指定此屬性已經有執行中的動畫時會發生哪種情況。Applies an animation to a specified dependency property on this element, with the ability to specify what happens if the property already has a running animation.

(Inherited from UIElement)
ApplyTemplate() ApplyTemplate() ApplyTemplate() ApplyTemplate()

如有必要,則建置目前範本的視覺化樹狀結構,並傳回值,指出此呼叫是否已重建視覺化樹狀結構。Builds the current template's visual tree if necessary, and returns a value that indicates whether the visual tree was rebuilt by this call.

(Inherited from FrameworkElement)
Arrange(Rect) Arrange(Rect) Arrange(Rect) Arrange(Rect)

放置子項目,並且判斷 UIElement 的大小。Positions child elements and determines a size for a UIElement. 父項目從 ArrangeCore(Rect) 實作 (或 WPF 架構層級對等項目) 中呼叫此方法,以形成遞迴配置更新。Parent elements call this method from their ArrangeCore(Rect) implementation (or a WPF framework-level equivalent) to form a recursive layout update. 這個方法會構成配置更新的第二個階段。This method constitutes the second pass of a layout update.

(Inherited from UIElement)
ArrangeCore(Rect) ArrangeCore(Rect) ArrangeCore(Rect) ArrangeCore(Rect)

實作 ArrangeCore(Rect) (在 UIElement 內定義為 Virtual),並密封實作。Implements ArrangeCore(Rect) (defined as virtual in UIElement) and seals the implementation.

(Inherited from FrameworkElement)
ArrangeOverride(Size) ArrangeOverride(Size) ArrangeOverride(Size) ArrangeOverride(Size)

呼叫以排列 Control 物件內容,並調整大小。Called to arrange and size the content of a Control object.

(Inherited from Control)
BeginAnimation(DependencyProperty, AnimationTimeline) BeginAnimation(DependencyProperty, AnimationTimeline) BeginAnimation(DependencyProperty, AnimationTimeline) BeginAnimation(DependencyProperty, AnimationTimeline)

針對這個項目之指定的動畫屬性,開始播放動畫。Starts an animation for a specified animated property on this element.

(Inherited from UIElement)
BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior) BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior) BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior) BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior)

針對此項目上指定的動畫屬性啟動特定動畫,且可以選擇指定如果屬性已經有執行中的動畫時會發生何種情況。Starts a specific animation for a specified animated property on this element, with the option of specifying what happens if the property already has a running animation.

(Inherited from UIElement)
BeginEdit() BeginEdit() BeginEdit() BeginEdit()

叫用 BeginEdit() 命令,這樣會讓目前的儲存格或資料列進入編輯模式。Invokes the BeginEdit() command, which will place the current cell or row into edit mode.

BeginEdit(RoutedEventArgs) BeginEdit(RoutedEventArgs) BeginEdit(RoutedEventArgs) BeginEdit(RoutedEventArgs)

叫用 BeginEdit() 命令,這樣會讓目前的儲存格或資料列進入編輯模式。Invokes the BeginEdit() command, which will place the current cell or row into edit mode.

BeginInit() BeginInit() BeginInit() BeginInit()

表示即將開始初始化的 ItemsControl 物件。Indicates that the initialization of the ItemsControl object is about to start.

(Inherited from ItemsControl)
BeginStoryboard(Storyboard) BeginStoryboard(Storyboard) BeginStoryboard(Storyboard) BeginStoryboard(Storyboard)

開始提供之腳本中包含的動作順序。Begins the sequence of actions that are contained in the provided storyboard.

(Inherited from FrameworkElement)
BeginStoryboard(Storyboard, HandoffBehavior) BeginStoryboard(Storyboard, HandoffBehavior) BeginStoryboard(Storyboard, HandoffBehavior) BeginStoryboard(Storyboard, HandoffBehavior)

使用若屬性已經顯示動畫時應發生之情形的指定選項,開始提供之腳本中包含的動作順序。Begins the sequence of actions contained in the provided storyboard, with options specified for what should happen if the property is already animated.

(Inherited from FrameworkElement)
BeginStoryboard(Storyboard, HandoffBehavior, Boolean) BeginStoryboard(Storyboard, HandoffBehavior, Boolean) BeginStoryboard(Storyboard, HandoffBehavior, Boolean) BeginStoryboard(Storyboard, HandoffBehavior, Boolean)

使用控制啟動後之動畫的指定狀態,開始提供之腳本中包含的動作順序。Begins the sequence of actions contained in the provided storyboard, with specified state for control of the animation after it is started.

(Inherited from FrameworkElement)
BeginUpdateSelectedItems() BeginUpdateSelectedItems() BeginUpdateSelectedItems() BeginUpdateSelectedItems()

開始新的選取範圍異動。Starts a new selection transaction.

(Inherited from MultiSelector)
BringIntoView() BringIntoView() BringIntoView() BringIntoView()

在內含此項目的任何可捲動區域內,嘗試將此項目帶入檢視。Attempts to bring this element into view, within any scrollable regions it is contained within.

(Inherited from FrameworkElement)
BringIntoView(Rect) BringIntoView(Rect) BringIntoView(Rect) BringIntoView(Rect)

在內含此項目的任何可捲動區域內,嘗試將此項目所提供的區域大小帶入檢視。Attempts to bring the provided region size of this element into view, within any scrollable regions it is contained within.

(Inherited from FrameworkElement)
CancelEdit() CancelEdit() CancelEdit() CancelEdit()

對目前在編輯模式中的儲存格或資料列,叫用 CancelEditCommand 命令。Invokes the CancelEditCommand command for the cell or row currently in edit mode.

CancelEdit(DataGridEditingUnit) CancelEdit(DataGridEditingUnit) CancelEdit(DataGridEditingUnit) CancelEdit(DataGridEditingUnit)

針對編輯模式下的指定儲存格或資料列叫用 CancelEditCommand 命令。Invokes the CancelEditCommand command for the specified cell or row in edit mode.

CaptureMouse() CaptureMouse() CaptureMouse() CaptureMouse()

嘗試強制將滑鼠的捕捉給這個項目。Attempts to force capture of the mouse to this element.

(Inherited from UIElement)
CaptureStylus() CaptureStylus() CaptureStylus() CaptureStylus()

嘗試強制將手寫筆的捕捉給這個項目。Attempts to force capture of the stylus to this element.

(Inherited from UIElement)
CaptureTouch(TouchDevice) CaptureTouch(TouchDevice) CaptureTouch(TouchDevice) CaptureTouch(TouchDevice)

嘗試強制將觸控擷取至這個項目。Attempts to force capture of a touch to this element.

(Inherited from UIElement)
CheckAccess() CheckAccess() CheckAccess() CheckAccess()

判斷呼叫的執行是否可以存取這個 DispatcherObjectDetermines whether the calling thread has access to this DispatcherObject.

(Inherited from DispatcherObject)
ClearContainerForItemOverride(DependencyObject, Object) ClearContainerForItemOverride(DependencyObject, Object) ClearContainerForItemOverride(DependencyObject, Object) ClearContainerForItemOverride(DependencyObject, Object)

卸載所指定項目的資料列。Unloads the row for the specified item.

ClearDetailsVisibilityForItem(Object) ClearDetailsVisibilityForItem(Object) ClearDetailsVisibilityForItem(Object) ClearDetailsVisibilityForItem(Object)

清除表示指定資料項目之 DetailsVisibilityDataGridRow 屬性。Clears the DetailsVisibility property for the DataGridRow that represents the specified data item.

ClearValue(DependencyProperty) ClearValue(DependencyProperty) ClearValue(DependencyProperty) ClearValue(DependencyProperty)

清除屬性的區域數值。Clears the local value of a property. 要清除的屬性是由 DependencyProperty 識別項所指定。The property to be cleared is specified by a DependencyProperty identifier.

(Inherited from DependencyObject)
ClearValue(DependencyPropertyKey) ClearValue(DependencyPropertyKey) ClearValue(DependencyPropertyKey) ClearValue(DependencyPropertyKey)

清除唯讀屬性的區域數值。Clears the local value of a read-only property. 要清除的屬性是由 DependencyPropertyKey 所指定。The property to be cleared is specified by a DependencyPropertyKey.

(Inherited from DependencyObject)
CoerceValue(DependencyProperty) CoerceValue(DependencyProperty) CoerceValue(DependencyProperty) CoerceValue(DependencyProperty)

強制轉型所指定相依性屬性的值。Coerces the value of the specified dependency property. 叫用存在於呼叫 CoerceValueCallback 上相依性屬性之屬性中繼資料內所指定的任何 DependencyObject 函式,就可以達到這一點。This is accomplished by invoking any CoerceValueCallback function specified in property metadata for the dependency property as it exists on the calling DependencyObject.

(Inherited from DependencyObject)
ColumnFromDisplayIndex(Int32) ColumnFromDisplayIndex(Int32) ColumnFromDisplayIndex(Int32) ColumnFromDisplayIndex(Int32)

取得指定索引處的 DataGridColumnGets the DataGridColumn at the specified index.

CommitEdit() CommitEdit() CommitEdit() CommitEdit()

對目前在編輯模式中的儲存格或資料列,叫用 CommitEditCommand 命令。Invokes the CommitEditCommand command for the cell or row currently in edit mode.

CommitEdit(DataGridEditingUnit, Boolean) CommitEdit(DataGridEditingUnit, Boolean) CommitEdit(DataGridEditingUnit, Boolean) CommitEdit(DataGridEditingUnit, Boolean)

針對目前處於編輯模式的指定儲存格或資料列叫用 CommitEditCommand 命令。Invokes the CommitEditCommand command for the specified cell or row currently in edit mode.

ContainerFromElement(DependencyObject) ContainerFromElement(DependencyObject) ContainerFromElement(DependencyObject) ContainerFromElement(DependencyObject)

傳回擁有給定項目之目前 ItemsControl 所屬的容器。Returns the container that belongs to the current ItemsControl that owns the given element.

(Inherited from ItemsControl)
EndInit() EndInit() EndInit() EndInit()

表示已完成初始化 ItemsControl 物件。Indicates that the initialization of the ItemsControl object is complete.

(Inherited from ItemsControl)
EndUpdateSelectedItems() EndUpdateSelectedItems() EndUpdateSelectedItems() EndUpdateSelectedItems()

將選取的項目認可至 MultiSelectorCommits the selected items to the MultiSelector.

(Inherited from MultiSelector)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷提供的 DependencyObject 和目前的 DependencyObject 是否相等。Determines whether a provided DependencyObject is equivalent to the current DependencyObject.

(Inherited from DependencyObject)
FindCommonVisualAncestor(DependencyObject) FindCommonVisualAncestor(DependencyObject) FindCommonVisualAncestor(DependencyObject) FindCommonVisualAncestor(DependencyObject)

傳回兩個視覺物件的共同祖系。Returns the common ancestor of two visual objects.

(Inherited from Visual)
FindName(String) FindName(String) FindName(String) FindName(String)

尋找具有所提供之識別項名稱的項目。Finds an element that has the provided identifier name.

(Inherited from FrameworkElement)
FindResource(Object) FindResource(Object) FindResource(Object) FindResource(Object)

以指定的索引鍵搜尋資源,如果找不到要求的資源時會擲回例外狀況。Searches for a resource with the specified key, and throws an exception if the requested resource is not found.

(Inherited from FrameworkElement)
Focus() Focus() Focus() Focus()

嘗試將焦點設定至此項目。Attempts to set focus to this element.

(Inherited from UIElement)
GenerateColumns(IItemProperties) GenerateColumns(IItemProperties) GenerateColumns(IItemProperties) GenerateColumns(IItemProperties)

產生指定物件屬性的資料欄。Generates columns for the specified properties of an object.

GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty)

傳回這個項目上指定屬性的基底屬性值,不管任何執行中的可能動畫值,或停止動畫。Returns the base property value for the specified property on this element, disregarding any possible animated value from a running or stopped animation.

(Inherited from UIElement)
GetBindingExpression(DependencyProperty) GetBindingExpression(DependencyProperty) GetBindingExpression(DependencyProperty) GetBindingExpression(DependencyProperty)

傳回 BindingExpression,代表指定屬性的繫結。Returns the BindingExpression that represents the binding on the specified property.

(Inherited from FrameworkElement)
GetContainerForItemOverride() GetContainerForItemOverride() GetContainerForItemOverride() GetContainerForItemOverride()

將新的 DataGridRow 具現化。Instantiates a new DataGridRow.

GetDetailsVisibilityForItem(Object) GetDetailsVisibilityForItem(Object) GetDetailsVisibilityForItem(Object) GetDetailsVisibilityForItem(Object)

取得表示指定資料項目之 DetailsVisibilityDataGridRow 屬性。Gets the DetailsVisibility property for the DataGridRow that represents the specified data item.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

取得這個 DependencyObject 的雜湊程式碼。Gets a hash code for this DependencyObject.

(Inherited from DependencyObject)
GetLayoutClip(Size) GetLayoutClip(Size) GetLayoutClip(Size) GetLayoutClip(Size)

傳回裁剪遮罩的幾何。Returns a geometry for a clipping mask. 如果配置系統嘗試排列大於可用顯示空間的項目,則會套用這個遮罩。The mask applies if the layout system attempts to arrange an element that is larger than the available display space.

(Inherited from FrameworkElement)
GetLocalValueEnumerator() GetLocalValueEnumerator() GetLocalValueEnumerator() GetLocalValueEnumerator()

建立特定的列舉值,以判斷哪些相依性屬性在此 DependencyObject 上具有本機設定的值。Creates a specialized enumerator for determining which dependency properties have locally set values on this DependencyObject.

(Inherited from DependencyObject)
GetTemplateChild(String) GetTemplateChild(String) GetTemplateChild(String) GetTemplateChild(String)

傳回具現化 ControlTemplate 視覺化樹狀結構中的具名項目。Returns the named element in the visual tree of an instantiated ControlTemplate.

(Inherited from FrameworkElement)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
GetUIParentCore() GetUIParentCore() GetUIParentCore() GetUIParentCore()

如果沒有視覺父代,則傳回這個項目的替代邏輯父代。Returns an alternative logical parent for this element if there is no visual parent.

(Inherited from FrameworkElement)
GetValue(DependencyProperty) GetValue(DependencyProperty) GetValue(DependencyProperty) GetValue(DependencyProperty)

傳回 DependencyObject 的這個執行個體上之相依性屬性的目前有效值。Returns the current effective value of a dependency property on this instance of a DependencyObject.

(Inherited from DependencyObject)
GetVisualChild(Int32) GetVisualChild(Int32) GetVisualChild(Int32) GetVisualChild(Int32)

覆寫 GetVisualChild(Int32),並從子項目集合傳回指定索引處的子系。Overrides GetVisualChild(Int32), and returns a child at the specified index from a collection of child elements.

(Inherited from FrameworkElement)
HitTestCore(GeometryHitTestParameters) HitTestCore(GeometryHitTestParameters) HitTestCore(GeometryHitTestParameters) HitTestCore(GeometryHitTestParameters)

實作 HitTestCore(GeometryHitTestParameters)以提供基底項目點擊測試行為 (傳回 GeometryHitTestResult)。Implements HitTestCore(GeometryHitTestParameters) to supply base element hit testing behavior (returning GeometryHitTestResult).

(Inherited from UIElement)
HitTestCore(PointHitTestParameters) HitTestCore(PointHitTestParameters) HitTestCore(PointHitTestParameters) HitTestCore(PointHitTestParameters)

實作 HitTestCore(PointHitTestParameters)以提供基底項目點擊測試行為 (傳回 HitTestResult)。Implements HitTestCore(PointHitTestParameters) to supply base element hit testing behavior (returning HitTestResult).

(Inherited from UIElement)
InputHitTest(Point) InputHitTest(Point) InputHitTest(Point) InputHitTest(Point)

在目前項目範圍中傳回的輸入項目,輸入項目位在相對於目前項目原點的指定座標。Returns the input element within the current element that is at the specified coordinates, relative to the current element's origin.

(Inherited from UIElement)
InvalidateArrange() InvalidateArrange() InvalidateArrange() InvalidateArrange()

使項目的排列狀態 (配置) 失效。Invalidates the arrange state (layout) for the element. 失效之後,項目將更新其配置,而且,除非之後由 UpdateLayout() 強制執行,否則這項作業會以非同步方式發生。After the invalidation, the element will have its layout updated, which will occur asynchronously unless subsequently forced by UpdateLayout().

(Inherited from UIElement)
InvalidateMeasure() InvalidateMeasure() InvalidateMeasure() InvalidateMeasure()

使項目的測量狀態 (配置) 失效。Invalidates the measurement state (layout) for the element.

(Inherited from UIElement)
InvalidateProperty(DependencyProperty) InvalidateProperty(DependencyProperty) InvalidateProperty(DependencyProperty) InvalidateProperty(DependencyProperty)

重新評估指定之相依性屬性的有效值。Re-evaluates the effective value for the specified dependency property

(Inherited from DependencyObject)
InvalidateVisual() InvalidateVisual() InvalidateVisual() InvalidateVisual()

讓項目的呈現失效,並強制全新的配置傳遞。Invalidates the rendering of the element, and forces a complete new layout pass. 完成配置循環之後,會呼叫 OnRender(DrawingContext)OnRender(DrawingContext) is called after the layout cycle is completed.

(Inherited from UIElement)
IsAncestorOf(DependencyObject) IsAncestorOf(DependencyObject) IsAncestorOf(DependencyObject) IsAncestorOf(DependencyObject)

判斷視覺物件是否為子系視覺物件的祖系。Determines whether the visual object is an ancestor of the descendant visual object.

(Inherited from Visual)
IsDescendantOf(DependencyObject) IsDescendantOf(DependencyObject) IsDescendantOf(DependencyObject) IsDescendantOf(DependencyObject)

判斷視覺物件是否為祖系視覺物件的子系。Determines whether the visual object is a descendant of the ancestor visual object.

(Inherited from Visual)
IsItemItsOwnContainer(Object) IsItemItsOwnContainer(Object) IsItemItsOwnContainer(Object) IsItemItsOwnContainer(Object)

判斷所指定的項目是否為 (或是否可做為) 其本身的容器。Determines if the specified item is (or is eligible to be) its own container.

(Inherited from ItemsControl)
IsItemItsOwnContainerOverride(Object) IsItemItsOwnContainerOverride(Object) IsItemItsOwnContainerOverride(Object) IsItemItsOwnContainerOverride(Object)

判斷項目是否為 DataGridRowDetermines if an item is a DataGridRow.

Measure(Size) Measure(Size) Measure(Size) Measure(Size)

更新 UIElementDesiredSizeUpdates the DesiredSize of a UIElement. 父項目從本身的 MeasureCore(Size) 實作中呼叫此方法,以形成遞迴配置更新。Parent elements call this method from their own MeasureCore(Size) implementations to form a recursive layout update. 呼叫此方法即構成配置更新的第一次傳遞 (「量值」傳遞)。Calling this method constitutes the first pass (the "Measure" pass) of a layout update.

(Inherited from UIElement)
MeasureCore(Size) MeasureCore(Size) MeasureCore(Size) MeasureCore(Size)

FrameworkElement 實作基本的測量傳遞配置系統行為。Implements basic measure-pass layout system behavior for FrameworkElement.

(Inherited from FrameworkElement)
MeasureOverride(Size) MeasureOverride(Size) MeasureOverride(Size) MeasureOverride(Size)

判斷所需的 DataGrid 物件大小。Determines the desired size of the DataGrid.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
MoveFocus(TraversalRequest) MoveFocus(TraversalRequest) MoveFocus(TraversalRequest) MoveFocus(TraversalRequest)

以所提供的周遊方向,將鍵盤焦點從這個項目移到其他項目。Moves the keyboard focus away from this element and to another element in a provided traversal direction.

(Inherited from FrameworkElement)
OnAccessKey(AccessKeyEventArgs) OnAccessKey(AccessKeyEventArgs) OnAccessKey(AccessKeyEventArgs) OnAccessKey(AccessKeyEventArgs)

當叫用對這個項目有意義的便捷鍵 (Access Key) 時,為其提供類別處理。Provides class handling for when an access key that is meaningful for this element is invoked.

(Inherited from UIElement)
OnAddingNewItem(AddingNewItemEventArgs) OnAddingNewItem(AddingNewItemEventArgs) OnAddingNewItem(AddingNewItemEventArgs) OnAddingNewItem(AddingNewItemEventArgs)

引發 AddingNewItem 事件。Raises the AddingNewItem event.

OnAlternationCountChanged(Int32, Int32) OnAlternationCountChanged(Int32, Int32) OnAlternationCountChanged(Int32, Int32) OnAlternationCountChanged(Int32, Int32)

AlternationCount 屬性變更時叫用。Invoked when the AlternationCount property changes.

(Inherited from ItemsControl)
OnApplyTemplate() OnApplyTemplate() OnApplyTemplate() OnApplyTemplate()

每當應用程式程式碼或內部處理序呼叫 ApplyTemplate() 時都會叫用。Invoked whenever application code or internal processes call ApplyTemplate().

OnAutoGeneratedColumns(EventArgs) OnAutoGeneratedColumns(EventArgs) OnAutoGeneratedColumns(EventArgs) OnAutoGeneratedColumns(EventArgs)

引發 AutoGeneratedColumns 事件。Raises the AutoGeneratedColumns event.

OnAutoGeneratingColumn(DataGridAutoGeneratingColumnEventArgs) OnAutoGeneratingColumn(DataGridAutoGeneratingColumnEventArgs) OnAutoGeneratingColumn(DataGridAutoGeneratingColumnEventArgs) OnAutoGeneratingColumn(DataGridAutoGeneratingColumnEventArgs)

引發 AutoGeneratingColumn 事件。Raises the AutoGeneratingColumn event.

OnBeginningEdit(DataGridBeginningEditEventArgs) OnBeginningEdit(DataGridBeginningEditEventArgs) OnBeginningEdit(DataGridBeginningEditEventArgs) OnBeginningEdit(DataGridBeginningEditEventArgs)

引發 BeginningEdit 事件。Raises the BeginningEdit event.

OnCanExecuteBeginEdit(CanExecuteRoutedEventArgs) OnCanExecuteBeginEdit(CanExecuteRoutedEventArgs) OnCanExecuteBeginEdit(CanExecuteRoutedEventArgs) OnCanExecuteBeginEdit(CanExecuteRoutedEventArgs)

提供與 CanExecute 命令相關聯之 BeginEditCommand 事件的處理。Provides handling for the CanExecute event associated with the BeginEditCommand command.

OnCanExecuteCancelEdit(CanExecuteRoutedEventArgs) OnCanExecuteCancelEdit(CanExecuteRoutedEventArgs) OnCanExecuteCancelEdit(CanExecuteRoutedEventArgs) OnCanExecuteCancelEdit(CanExecuteRoutedEventArgs)

提供與 CanExecute 命令相關聯之 CancelEditCommand 事件的處理。Provides handling for the CanExecute event associated with the CancelEditCommand command.

OnCanExecuteCommitEdit(CanExecuteRoutedEventArgs) OnCanExecuteCommitEdit(CanExecuteRoutedEventArgs) OnCanExecuteCommitEdit(CanExecuteRoutedEventArgs) OnCanExecuteCommitEdit(CanExecuteRoutedEventArgs)

提供與 CanExecute 命令相關聯之 CommitEditCommand 事件的處理。Provides handling for the CanExecute event associated with the CommitEditCommand command.

OnCanExecuteCopy(CanExecuteRoutedEventArgs) OnCanExecuteCopy(CanExecuteRoutedEventArgs) OnCanExecuteCopy(CanExecuteRoutedEventArgs) OnCanExecuteCopy(CanExecuteRoutedEventArgs)

提供與 CanExecute 命令相關聯之 Copy 事件的處理。Provides handling for the CanExecute event associated with the Copy command.

OnCanExecuteDelete(CanExecuteRoutedEventArgs) OnCanExecuteDelete(CanExecuteRoutedEventArgs) OnCanExecuteDelete(CanExecuteRoutedEventArgs) OnCanExecuteDelete(CanExecuteRoutedEventArgs)

提供與 CanExecute 命令相關聯之 DeleteCommand 事件的處理。Provides handling for the CanExecute event associated with the DeleteCommand command.

OnCellEditEnding(DataGridCellEditEndingEventArgs) OnCellEditEnding(DataGridCellEditEndingEventArgs) OnCellEditEnding(DataGridCellEditEndingEventArgs) OnCellEditEnding(DataGridCellEditEndingEventArgs)

引發 CellEditEnding 事件。Raises the CellEditEnding event.

OnChildDesiredSizeChanged(UIElement) OnChildDesiredSizeChanged(UIElement) OnChildDesiredSizeChanged(UIElement) OnChildDesiredSizeChanged(UIElement)

會在調整子項目的大小時支援配置行為。Supports layout behavior when a child element is resized.

(Inherited from UIElement)
OnColumnDisplayIndexChanged(DataGridColumnEventArgs) OnColumnDisplayIndexChanged(DataGridColumnEventArgs) OnColumnDisplayIndexChanged(DataGridColumnEventArgs) OnColumnDisplayIndexChanged(DataGridColumnEventArgs)

引發 ColumnDisplayIndexChanged 事件。Raises the ColumnDisplayIndexChanged event.

OnColumnHeaderDragCompleted(DragCompletedEventArgs) OnColumnHeaderDragCompleted(DragCompletedEventArgs) OnColumnHeaderDragCompleted(DragCompletedEventArgs) OnColumnHeaderDragCompleted(DragCompletedEventArgs)

引發 ColumnHeaderDragCompleted 事件。Raises the ColumnHeaderDragCompleted event.

OnColumnHeaderDragDelta(DragDeltaEventArgs) OnColumnHeaderDragDelta(DragDeltaEventArgs) OnColumnHeaderDragDelta(DragDeltaEventArgs) OnColumnHeaderDragDelta(DragDeltaEventArgs)

引發 ColumnHeaderDragDelta 事件。Raises the ColumnHeaderDragDelta event.

OnColumnHeaderDragStarted(DragStartedEventArgs) OnColumnHeaderDragStarted(DragStartedEventArgs) OnColumnHeaderDragStarted(DragStartedEventArgs) OnColumnHeaderDragStarted(DragStartedEventArgs)

引發 ColumnHeaderDragStarted 事件。Raises the ColumnHeaderDragStarted event.

OnColumnReordered(DataGridColumnEventArgs) OnColumnReordered(DataGridColumnEventArgs) OnColumnReordered(DataGridColumnEventArgs) OnColumnReordered(DataGridColumnEventArgs)

引發 ColumnReordered 事件。Raises the ColumnReordered event.

OnColumnReordering(DataGridColumnReorderingEventArgs) OnColumnReordering(DataGridColumnReorderingEventArgs) OnColumnReordering(DataGridColumnReorderingEventArgs) OnColumnReordering(DataGridColumnReorderingEventArgs)

引發 ColumnReordering 事件。Raises the ColumnReordering event.

OnContextMenuClosing(ContextMenuEventArgs) OnContextMenuClosing(ContextMenuEventArgs) OnContextMenuClosing(ContextMenuEventArgs) OnContextMenuClosing(ContextMenuEventArgs)

當未處理的 ContextMenuClosing 路由事件到達其路由中的這個類別時,便會叫用此方法。Invoked whenever an unhandled ContextMenuClosing routed event reaches this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from FrameworkElement)
OnContextMenuOpening(ContextMenuEventArgs) OnContextMenuOpening(ContextMenuEventArgs) OnContextMenuOpening(ContextMenuEventArgs) OnContextMenuOpening(ContextMenuEventArgs)

如果儲存格的內容功能表已開啟,則選取該儲存格。Selects a cell if its context menu is opened.

OnCopyingRowClipboardContent(DataGridRowClipboardEventArgs) OnCopyingRowClipboardContent(DataGridRowClipboardEventArgs) OnCopyingRowClipboardContent(DataGridRowClipboardEventArgs) OnCopyingRowClipboardContent(DataGridRowClipboardEventArgs)

引發 CopyingRowClipboardContent 事件。Raises the CopyingRowClipboardContent event.

OnCreateAutomationPeer() OnCreateAutomationPeer() OnCreateAutomationPeer() OnCreateAutomationPeer()

傳回這個 DataGrid 的自動化對等個體。Returns the automation peer for this DataGrid.

OnCurrentCellChanged(EventArgs) OnCurrentCellChanged(EventArgs) OnCurrentCellChanged(EventArgs) OnCurrentCellChanged(EventArgs)

引發 CurrentCellChanged 事件。Raises the CurrentCellChanged event.

OnDisplayMemberPathChanged(String, String) OnDisplayMemberPathChanged(String, String) OnDisplayMemberPathChanged(String, String) OnDisplayMemberPathChanged(String, String)

DisplayMemberPath 屬性變更時叫用。Invoked when the DisplayMemberPath property changes.

(Inherited from ItemsControl)
OnDpiChanged(DpiScale, DpiScale) OnDpiChanged(DpiScale, DpiScale) OnDpiChanged(DpiScale, DpiScale) OnDpiChanged(DpiScale, DpiScale)

當轉譯此 View 的 DPI 變更時呼叫。Called when the DPI at which this View is rendered changes.

(Inherited from Visual)
OnDragEnter(DragEventArgs) OnDragEnter(DragEventArgs) OnDragEnter(DragEventArgs) OnDragEnter(DragEventArgs)

當未處理的 DragEnter 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled DragEnter attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnDragLeave(DragEventArgs) OnDragLeave(DragEventArgs) OnDragLeave(DragEventArgs) OnDragLeave(DragEventArgs)

當未處理的 DragLeave 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled DragLeave attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnDragOver(DragEventArgs) OnDragOver(DragEventArgs) OnDragOver(DragEventArgs) OnDragOver(DragEventArgs)

當未處理的 DragOver 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled DragOver attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnDrop(DragEventArgs) OnDrop(DragEventArgs) OnDrop(DragEventArgs) OnDrop(DragEventArgs)

當未處理的 DragEnter 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled DragEnter attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnExecutedBeginEdit(ExecutedRoutedEventArgs) OnExecutedBeginEdit(ExecutedRoutedEventArgs) OnExecutedBeginEdit(ExecutedRoutedEventArgs) OnExecutedBeginEdit(ExecutedRoutedEventArgs)

提供與 Executed 命令相關聯之 BeginEditCommand 事件的處理。Provides handling for the Executed event associated with the BeginEditCommand command.

OnExecutedCancelEdit(ExecutedRoutedEventArgs) OnExecutedCancelEdit(ExecutedRoutedEventArgs) OnExecutedCancelEdit(ExecutedRoutedEventArgs) OnExecutedCancelEdit(ExecutedRoutedEventArgs)

提供與 Executed 命令相關聯之 CancelEditCommand 事件的處理。Provides handling for the Executed event associated with the CancelEditCommand command.

OnExecutedCommitEdit(ExecutedRoutedEventArgs) OnExecutedCommitEdit(ExecutedRoutedEventArgs) OnExecutedCommitEdit(ExecutedRoutedEventArgs) OnExecutedCommitEdit(ExecutedRoutedEventArgs)

提供與 Executed 命令相關聯之 CommitEditCommand 事件的處理。Provides handling for the Executed event associated with the CommitEditCommand command.

OnExecutedCopy(ExecutedRoutedEventArgs) OnExecutedCopy(ExecutedRoutedEventArgs) OnExecutedCopy(ExecutedRoutedEventArgs) OnExecutedCopy(ExecutedRoutedEventArgs)

提供與 Executed 命令相關聯之 Copy 事件的處理。Provides handling for the Executed event associated with the Copy command.

OnExecutedDelete(ExecutedRoutedEventArgs) OnExecutedDelete(ExecutedRoutedEventArgs) OnExecutedDelete(ExecutedRoutedEventArgs) OnExecutedDelete(ExecutedRoutedEventArgs)

提供與 Executed 命令相關聯之 DeleteCommand 事件的處理。Provides handling for the Executed event associated with the DeleteCommand command.

OnGiveFeedback(GiveFeedbackEventArgs) OnGiveFeedback(GiveFeedbackEventArgs) OnGiveFeedback(GiveFeedbackEventArgs) OnGiveFeedback(GiveFeedbackEventArgs)

當未處理的 GiveFeedback 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled GiveFeedback attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnGotFocus(RoutedEventArgs) OnGotFocus(RoutedEventArgs) OnGotFocus(RoutedEventArgs) OnGotFocus(RoutedEventArgs)

當未處理的 GotFocus 事件到達其路由中的這個項目時,便會叫用此方法。Invoked whenever an unhandled GotFocus event reaches this element in its route.

(Inherited from FrameworkElement)
OnGotKeyboardFocus(KeyboardFocusChangedEventArgs) OnGotKeyboardFocus(KeyboardFocusChangedEventArgs) OnGotKeyboardFocus(KeyboardFocusChangedEventArgs) OnGotKeyboardFocus(KeyboardFocusChangedEventArgs)

當未處理的 GotKeyboardFocus 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled GotKeyboardFocus attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnGotMouseCapture(MouseEventArgs) OnGotMouseCapture(MouseEventArgs) OnGotMouseCapture(MouseEventArgs) OnGotMouseCapture(MouseEventArgs)

當未處理的 GotMouseCapture 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled GotMouseCapture attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnGotStylusCapture(StylusEventArgs) OnGotStylusCapture(StylusEventArgs) OnGotStylusCapture(StylusEventArgs) OnGotStylusCapture(StylusEventArgs)

當未處理的 GotStylusCapture 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled GotStylusCapture attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnGotTouchCapture(TouchEventArgs) OnGotTouchCapture(TouchEventArgs) OnGotTouchCapture(TouchEventArgs) OnGotTouchCapture(TouchEventArgs)

提供 GotTouchCapture 路由事件的類別處理,而這個事件會在擷取到對此項目的觸控時發生。Provides class handling for the GotTouchCapture routed event that occurs when a touch is captured to this element.

(Inherited from UIElement)
OnGroupStyleSelectorChanged(GroupStyleSelector, GroupStyleSelector) OnGroupStyleSelectorChanged(GroupStyleSelector, GroupStyleSelector) OnGroupStyleSelectorChanged(GroupStyleSelector, GroupStyleSelector) OnGroupStyleSelectorChanged(GroupStyleSelector, GroupStyleSelector)

GroupStyleSelector 屬性變更時叫用。Invoked when the GroupStyleSelector property changes.

(Inherited from ItemsControl)
OnInitialized(EventArgs) OnInitialized(EventArgs) OnInitialized(EventArgs) OnInitialized(EventArgs)

引發 Initialized 事件。Raises the Initialized event. 每當 IsInitialized 在內部設為 true 便會叫用此方法。This method is invoked whenever IsInitialized is set to true internally.

(Inherited from Selector)
OnInitializingNewItem(InitializingNewItemEventArgs) OnInitializingNewItem(InitializingNewItemEventArgs) OnInitializingNewItem(InitializingNewItemEventArgs) OnInitializingNewItem(InitializingNewItemEventArgs)

引發 InitializingNewItem 事件。Raises the InitializingNewItem event.

OnIsKeyboardFocusedChanged(DependencyPropertyChangedEventArgs) OnIsKeyboardFocusedChanged(DependencyPropertyChangedEventArgs) OnIsKeyboardFocusedChanged(DependencyPropertyChangedEventArgs) OnIsKeyboardFocusedChanged(DependencyPropertyChangedEventArgs)

當這個項目上引發未處理的 IsKeyboardFocusedChanged 事件時叫用。Invoked when an unhandled IsKeyboardFocusedChanged event is raised on this element. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs) OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs) OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs) OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs)

IsKeyboardFocusWithin 屬性變更時呼叫。Called when the IsKeyboardFocusWithin property has changed.

(Inherited from Selector)
OnIsMouseCapturedChanged(DependencyPropertyChangedEventArgs) OnIsMouseCapturedChanged(DependencyPropertyChangedEventArgs) OnIsMouseCapturedChanged(DependencyPropertyChangedEventArgs) OnIsMouseCapturedChanged(DependencyPropertyChangedEventArgs)

在這個項目的 IsMouseCaptured 屬性變更時呼叫。Called when the IsMouseCaptured property changes on this element.

OnIsMouseCaptureWithinChanged(DependencyPropertyChangedEventArgs) OnIsMouseCaptureWithinChanged(DependencyPropertyChangedEventArgs) OnIsMouseCaptureWithinChanged(DependencyPropertyChangedEventArgs) OnIsMouseCaptureWithinChanged(DependencyPropertyChangedEventArgs)

當這個項目上引發未處理的 IsMouseCaptureWithinChanged 事件時叫用。Invoked when an unhandled IsMouseCaptureWithinChanged event is raised on this element. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnIsMouseDirectlyOverChanged(DependencyPropertyChangedEventArgs) OnIsMouseDirectlyOverChanged(DependencyPropertyChangedEventArgs) OnIsMouseDirectlyOverChanged(DependencyPropertyChangedEventArgs) OnIsMouseDirectlyOverChanged(DependencyPropertyChangedEventArgs)

當這個項目上引發未處理的 IsMouseDirectlyOverChanged 事件時叫用。Invoked when an unhandled IsMouseDirectlyOverChanged event is raised on this element. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnIsStylusCapturedChanged(DependencyPropertyChangedEventArgs) OnIsStylusCapturedChanged(DependencyPropertyChangedEventArgs) OnIsStylusCapturedChanged(DependencyPropertyChangedEventArgs) OnIsStylusCapturedChanged(DependencyPropertyChangedEventArgs)

當這個項目上引發未處理的 IsStylusCapturedChanged 事件時叫用。Invoked when an unhandled IsStylusCapturedChanged event is raised on this element. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnIsStylusCaptureWithinChanged(DependencyPropertyChangedEventArgs) OnIsStylusCaptureWithinChanged(DependencyPropertyChangedEventArgs) OnIsStylusCaptureWithinChanged(DependencyPropertyChangedEventArgs) OnIsStylusCaptureWithinChanged(DependencyPropertyChangedEventArgs)

當這個項目上引發未處理的 IsStylusCaptureWithinChanged 事件時叫用。Invoked when an unhandled IsStylusCaptureWithinChanged event is raised on this element. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnIsStylusDirectlyOverChanged(DependencyPropertyChangedEventArgs) OnIsStylusDirectlyOverChanged(DependencyPropertyChangedEventArgs) OnIsStylusDirectlyOverChanged(DependencyPropertyChangedEventArgs) OnIsStylusDirectlyOverChanged(DependencyPropertyChangedEventArgs)

當這個項目上引發未處理的 IsStylusDirectlyOverChanged 事件時叫用。Invoked when an unhandled IsStylusDirectlyOverChanged event is raised on this element. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnItemBindingGroupChanged(BindingGroup, BindingGroup) OnItemBindingGroupChanged(BindingGroup, BindingGroup) OnItemBindingGroupChanged(BindingGroup, BindingGroup) OnItemBindingGroupChanged(BindingGroup, BindingGroup)

ItemBindingGroup 屬性變更時叫用。Invoked when the ItemBindingGroup property changes.

(Inherited from ItemsControl)
OnItemContainerStyleChanged(Style, Style) OnItemContainerStyleChanged(Style, Style) OnItemContainerStyleChanged(Style, Style) OnItemContainerStyleChanged(Style, Style)

ItemContainerStyle 屬性變更時叫用。Invoked when the ItemContainerStyle property changes.

(Inherited from ItemsControl)
OnItemContainerStyleSelectorChanged(StyleSelector, StyleSelector) OnItemContainerStyleSelectorChanged(StyleSelector, StyleSelector) OnItemContainerStyleSelectorChanged(StyleSelector, StyleSelector) OnItemContainerStyleSelectorChanged(StyleSelector, StyleSelector)

ItemContainerStyleSelector 屬性變更時叫用。Invoked when the ItemContainerStyleSelector property changes.

(Inherited from ItemsControl)
OnItemsChanged(NotifyCollectionChangedEventArgs) OnItemsChanged(NotifyCollectionChangedEventArgs) OnItemsChanged(NotifyCollectionChangedEventArgs) OnItemsChanged(NotifyCollectionChangedEventArgs)

執行資料行自動產生作業,並在項目變更時更新驗證旗標。Performs column auto generation and updates validation flags when items change.

OnItemsPanelChanged(ItemsPanelTemplate, ItemsPanelTemplate) OnItemsPanelChanged(ItemsPanelTemplate, ItemsPanelTemplate) OnItemsPanelChanged(ItemsPanelTemplate, ItemsPanelTemplate) OnItemsPanelChanged(ItemsPanelTemplate, ItemsPanelTemplate)

ItemsPanel 屬性變更時叫用。Invoked when the ItemsPanel property changes.

(Inherited from ItemsControl)
OnItemsSourceChanged(IEnumerable, IEnumerable) OnItemsSourceChanged(IEnumerable, IEnumerable) OnItemsSourceChanged(IEnumerable, IEnumerable) OnItemsSourceChanged(IEnumerable, IEnumerable)

ItemsSource 屬性變更時叫用。Invoked when the ItemsSource property changes.

OnItemStringFormatChanged(String, String) OnItemStringFormatChanged(String, String) OnItemStringFormatChanged(String, String) OnItemStringFormatChanged(String, String)

ItemStringFormat 屬性變更時叫用。Invoked when the ItemStringFormat property changes.

(Inherited from ItemsControl)
OnItemTemplateChanged(DataTemplate, DataTemplate) OnItemTemplateChanged(DataTemplate, DataTemplate) OnItemTemplateChanged(DataTemplate, DataTemplate) OnItemTemplateChanged(DataTemplate, DataTemplate)

ItemTemplate 屬性變更時叫用。Invoked when the ItemTemplate property changes.

(Inherited from ItemsControl)
OnItemTemplateSelectorChanged(DataTemplateSelector, DataTemplateSelector) OnItemTemplateSelectorChanged(DataTemplateSelector, DataTemplateSelector) OnItemTemplateSelectorChanged(DataTemplateSelector, DataTemplateSelector) OnItemTemplateSelectorChanged(DataTemplateSelector, DataTemplateSelector)

ItemTemplateSelector 屬性變更時叫用。Invoked when the ItemTemplateSelector property changes.

(Inherited from ItemsControl)
OnKeyDown(KeyEventArgs) OnKeyDown(KeyEventArgs) OnKeyDown(KeyEventArgs) OnKeyDown(KeyEventArgs)

收到 KeyDown 事件時叫用。Invoked when the KeyDown event is received.

OnKeyUp(KeyEventArgs) OnKeyUp(KeyEventArgs) OnKeyUp(KeyEventArgs) OnKeyUp(KeyEventArgs)

當未處理的 KeyUp 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled KeyUp attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnLoadingRow(DataGridRowEventArgs) OnLoadingRow(DataGridRowEventArgs) OnLoadingRow(DataGridRowEventArgs) OnLoadingRow(DataGridRowEventArgs)

引發 LoadingRow 事件。Raises the LoadingRow event.

OnLoadingRowDetails(DataGridRowDetailsEventArgs) OnLoadingRowDetails(DataGridRowDetailsEventArgs) OnLoadingRowDetails(DataGridRowDetailsEventArgs) OnLoadingRowDetails(DataGridRowDetailsEventArgs)

引發 LoadingRowDetails 事件。Raises the LoadingRowDetails event.

OnLostFocus(RoutedEventArgs) OnLostFocus(RoutedEventArgs) OnLostFocus(RoutedEventArgs) OnLostFocus(RoutedEventArgs)

使用所提供的事件資料引發 LostFocus 路由事件。Raises the LostFocus routed event by using the event data that is provided.

(Inherited from UIElement)
OnLostKeyboardFocus(KeyboardFocusChangedEventArgs) OnLostKeyboardFocus(KeyboardFocusChangedEventArgs) OnLostKeyboardFocus(KeyboardFocusChangedEventArgs) OnLostKeyboardFocus(KeyboardFocusChangedEventArgs)

當未處理的 LostKeyboardFocus 附加事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled LostKeyboardFocus attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnLostMouseCapture(MouseEventArgs) OnLostMouseCapture(MouseEventArgs) OnLostMouseCapture(MouseEventArgs) OnLostMouseCapture(MouseEventArgs)

當未處理的 LostMouseCapture 附加事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled LostMouseCapture attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnLostStylusCapture(StylusEventArgs) OnLostStylusCapture(StylusEventArgs) OnLostStylusCapture(StylusEventArgs) OnLostStylusCapture(StylusEventArgs)

當未處理的 LostStylusCapture 附加事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled LostStylusCapture attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnLostTouchCapture(TouchEventArgs) OnLostTouchCapture(TouchEventArgs) OnLostTouchCapture(TouchEventArgs) OnLostTouchCapture(TouchEventArgs)

提供 LostTouchCapture 路由事件的類別處理,而這個事件會在此項目失去觸控擷取時發生。Provides class handling for the LostTouchCapture routed event that occurs when this element loses a touch capture.

(Inherited from UIElement)
OnManipulationBoundaryFeedback(ManipulationBoundaryFeedbackEventArgs) OnManipulationBoundaryFeedback(ManipulationBoundaryFeedbackEventArgs) OnManipulationBoundaryFeedback(ManipulationBoundaryFeedbackEventArgs) OnManipulationBoundaryFeedback(ManipulationBoundaryFeedbackEventArgs)

ManipulationBoundaryFeedback 事件發生時呼叫。Called when the ManipulationBoundaryFeedback event occurs.

(Inherited from UIElement)
OnManipulationCompleted(ManipulationCompletedEventArgs) OnManipulationCompleted(ManipulationCompletedEventArgs) OnManipulationCompleted(ManipulationCompletedEventArgs) OnManipulationCompleted(ManipulationCompletedEventArgs)

ManipulationCompleted 事件發生時呼叫。Called when the ManipulationCompleted event occurs.

(Inherited from UIElement)
OnManipulationDelta(ManipulationDeltaEventArgs) OnManipulationDelta(ManipulationDeltaEventArgs) OnManipulationDelta(ManipulationDeltaEventArgs) OnManipulationDelta(ManipulationDeltaEventArgs)

ManipulationDelta 事件發生時呼叫。Called when the ManipulationDelta event occurs.

(Inherited from UIElement)
OnManipulationInertiaStarting(ManipulationInertiaStartingEventArgs) OnManipulationInertiaStarting(ManipulationInertiaStartingEventArgs) OnManipulationInertiaStarting(ManipulationInertiaStartingEventArgs) OnManipulationInertiaStarting(ManipulationInertiaStartingEventArgs)

ManipulationInertiaStarting 事件發生時呼叫。Called when the ManipulationInertiaStarting event occurs.

(Inherited from UIElement)
OnManipulationStarted(ManipulationStartedEventArgs) OnManipulationStarted(ManipulationStartedEventArgs) OnManipulationStarted(ManipulationStartedEventArgs) OnManipulationStarted(ManipulationStartedEventArgs)

ManipulationStarted 事件發生時呼叫。Called when the ManipulationStarted event occurs.

(Inherited from UIElement)
OnManipulationStarting(ManipulationStartingEventArgs) OnManipulationStarting(ManipulationStartingEventArgs) OnManipulationStarting(ManipulationStartingEventArgs) OnManipulationStarting(ManipulationStartingEventArgs)

提供當第一次建立操作處理器時,所發生 ManipulationStarting 路由事件的類別處理。Provides class handling for the ManipulationStarting routed event that occurs when the manipulation processor is first created.

(Inherited from UIElement)
OnMouseDoubleClick(MouseButtonEventArgs) OnMouseDoubleClick(MouseButtonEventArgs) OnMouseDoubleClick(MouseButtonEventArgs) OnMouseDoubleClick(MouseButtonEventArgs)

引發 MouseDoubleClick 路由事件。Raises the MouseDoubleClick routed event.

(Inherited from Control)
OnMouseDown(MouseButtonEventArgs) OnMouseDown(MouseButtonEventArgs) OnMouseDown(MouseButtonEventArgs) OnMouseDown(MouseButtonEventArgs)

當未處理的 MouseDown 附加事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled MouseDown attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnMouseEnter(MouseEventArgs) OnMouseEnter(MouseEventArgs) OnMouseEnter(MouseEventArgs) OnMouseEnter(MouseEventArgs)

當這個項目上引發未處理的 MouseEnter 附加事件時叫用。Invoked when an unhandled MouseEnter attached event is raised on this element. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnMouseLeave(MouseEventArgs) OnMouseLeave(MouseEventArgs) OnMouseLeave(MouseEventArgs) OnMouseLeave(MouseEventArgs)

當這個項目上引發未處理的 MouseLeave 附加事件時叫用。Invoked when an unhandled MouseLeave attached event is raised on this element. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnMouseLeftButtonDown(MouseButtonEventArgs) OnMouseLeftButtonDown(MouseButtonEventArgs) OnMouseLeftButtonDown(MouseButtonEventArgs) OnMouseLeftButtonDown(MouseButtonEventArgs)

當這個項目上引發未處理的 MouseLeftButtonDown 路由事件時叫用。Invoked when an unhandled MouseLeftButtonDown routed event is raised on this element. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnMouseLeftButtonUp(MouseButtonEventArgs) OnMouseLeftButtonUp(MouseButtonEventArgs) OnMouseLeftButtonUp(MouseButtonEventArgs) OnMouseLeftButtonUp(MouseButtonEventArgs)

當未處理的 MouseLeftButtonUp 路由事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled MouseLeftButtonUp routed event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnMouseMove(MouseEventArgs) OnMouseMove(MouseEventArgs) OnMouseMove(MouseEventArgs) OnMouseMove(MouseEventArgs)

更新使用者在 DataGrid 中以滑鼠拖曳選取之項目的集合。Updates the collection of items that are selected due to the user dragging the mouse in the DataGrid.

OnMouseRightButtonDown(MouseButtonEventArgs) OnMouseRightButtonDown(MouseButtonEventArgs) OnMouseRightButtonDown(MouseButtonEventArgs) OnMouseRightButtonDown(MouseButtonEventArgs)

當未處理的 MouseRightButtonDown 路由事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled MouseRightButtonDown routed event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnMouseRightButtonUp(MouseButtonEventArgs) OnMouseRightButtonUp(MouseButtonEventArgs) OnMouseRightButtonUp(MouseButtonEventArgs) OnMouseRightButtonUp(MouseButtonEventArgs)

當未處理的 MouseRightButtonUp 路由事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled MouseRightButtonUp routed event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnMouseUp(MouseButtonEventArgs) OnMouseUp(MouseButtonEventArgs) OnMouseUp(MouseButtonEventArgs) OnMouseUp(MouseButtonEventArgs)

當未處理的 MouseUp 路由事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled MouseUp routed event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnMouseWheel(MouseWheelEventArgs) OnMouseWheel(MouseWheelEventArgs) OnMouseWheel(MouseWheelEventArgs) OnMouseWheel(MouseWheelEventArgs)

當未處理的 MouseWheel 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled MouseWheel attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreparingCellForEdit(DataGridPreparingCellForEditEventArgs) OnPreparingCellForEdit(DataGridPreparingCellForEditEventArgs) OnPreparingCellForEdit(DataGridPreparingCellForEditEventArgs) OnPreparingCellForEdit(DataGridPreparingCellForEditEventArgs)

引發 PreparingCellForEdit 事件。Raises the PreparingCellForEdit event.

OnPreviewDragEnter(DragEventArgs) OnPreviewDragEnter(DragEventArgs) OnPreviewDragEnter(DragEventArgs) OnPreviewDragEnter(DragEventArgs)

當未處理的 PreviewDragEnter 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled PreviewDragEnter attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewDragLeave(DragEventArgs) OnPreviewDragLeave(DragEventArgs) OnPreviewDragLeave(DragEventArgs) OnPreviewDragLeave(DragEventArgs)

當未處理的 PreviewDragLeave 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled PreviewDragLeave attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewDragOver(DragEventArgs) OnPreviewDragOver(DragEventArgs) OnPreviewDragOver(DragEventArgs) OnPreviewDragOver(DragEventArgs)

當未處理的 PreviewDragOver 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled PreviewDragOver attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewDrop(DragEventArgs) OnPreviewDrop(DragEventArgs) OnPreviewDrop(DragEventArgs) OnPreviewDrop(DragEventArgs)

當未處理的 PreviewDrop 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled PreviewDrop attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewGiveFeedback(GiveFeedbackEventArgs) OnPreviewGiveFeedback(GiveFeedbackEventArgs) OnPreviewGiveFeedback(GiveFeedbackEventArgs) OnPreviewGiveFeedback(GiveFeedbackEventArgs)

當未處理的 PreviewGiveFeedback 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled PreviewGiveFeedback attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewGotKeyboardFocus(KeyboardFocusChangedEventArgs) OnPreviewGotKeyboardFocus(KeyboardFocusChangedEventArgs) OnPreviewGotKeyboardFocus(KeyboardFocusChangedEventArgs) OnPreviewGotKeyboardFocus(KeyboardFocusChangedEventArgs)

當未處理的 PreviewGotKeyboardFocus 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled PreviewGotKeyboardFocus attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewKeyDown(KeyEventArgs) OnPreviewKeyDown(KeyEventArgs) OnPreviewKeyDown(KeyEventArgs) OnPreviewKeyDown(KeyEventArgs)

當未處理的 PreviewKeyDown 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled PreviewKeyDown attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewKeyUp(KeyEventArgs) OnPreviewKeyUp(KeyEventArgs) OnPreviewKeyUp(KeyEventArgs) OnPreviewKeyUp(KeyEventArgs)

當未處理的 PreviewKeyUp 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled PreviewKeyUp attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewLostKeyboardFocus(KeyboardFocusChangedEventArgs) OnPreviewLostKeyboardFocus(KeyboardFocusChangedEventArgs) OnPreviewLostKeyboardFocus(KeyboardFocusChangedEventArgs) OnPreviewLostKeyboardFocus(KeyboardFocusChangedEventArgs)

當未處理的 PreviewKeyDown 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled PreviewKeyDown attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewMouseDoubleClick(MouseButtonEventArgs) OnPreviewMouseDoubleClick(MouseButtonEventArgs) OnPreviewMouseDoubleClick(MouseButtonEventArgs) OnPreviewMouseDoubleClick(MouseButtonEventArgs)

引發 PreviewMouseDoubleClick 路由事件。Raises the PreviewMouseDoubleClick routed event.

(Inherited from Control)
OnPreviewMouseDown(MouseButtonEventArgs) OnPreviewMouseDown(MouseButtonEventArgs) OnPreviewMouseDown(MouseButtonEventArgs) OnPreviewMouseDown(MouseButtonEventArgs)

當未處理的 PreviewMouseDown 附加路由事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled PreviewMouseDown attached routed event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewMouseLeftButtonDown(MouseButtonEventArgs) OnPreviewMouseLeftButtonDown(MouseButtonEventArgs) OnPreviewMouseLeftButtonDown(MouseButtonEventArgs) OnPreviewMouseLeftButtonDown(MouseButtonEventArgs)

當未處理的 PreviewMouseLeftButtonDown 路由事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled PreviewMouseLeftButtonDown routed event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewMouseLeftButtonUp(MouseButtonEventArgs) OnPreviewMouseLeftButtonUp(MouseButtonEventArgs) OnPreviewMouseLeftButtonUp(MouseButtonEventArgs) OnPreviewMouseLeftButtonUp(MouseButtonEventArgs)

當未處理的 PreviewMouseLeftButtonUp 路由事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled PreviewMouseLeftButtonUp routed event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewMouseMove(MouseEventArgs) OnPreviewMouseMove(MouseEventArgs) OnPreviewMouseMove(MouseEventArgs) OnPreviewMouseMove(MouseEventArgs)

當未處理的 PreviewMouseMove 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled PreviewMouseMove attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewMouseRightButtonDown(MouseButtonEventArgs) OnPreviewMouseRightButtonDown(MouseButtonEventArgs) OnPreviewMouseRightButtonDown(MouseButtonEventArgs) OnPreviewMouseRightButtonDown(MouseButtonEventArgs)

當未處理的 PreviewMouseRightButtonDown 路由事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled PreviewMouseRightButtonDown routed event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewMouseRightButtonUp(MouseButtonEventArgs) OnPreviewMouseRightButtonUp(MouseButtonEventArgs) OnPreviewMouseRightButtonUp(MouseButtonEventArgs) OnPreviewMouseRightButtonUp(MouseButtonEventArgs)

當未處理的 PreviewMouseRightButtonUp 路由事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled PreviewMouseRightButtonUp routed event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewMouseUp(MouseButtonEventArgs) OnPreviewMouseUp(MouseButtonEventArgs) OnPreviewMouseUp(MouseButtonEventArgs) OnPreviewMouseUp(MouseButtonEventArgs)

當未處理的 PreviewMouseUp 附加事件到達其路由中衍生自此類別的項目時叫用。Invoked when an unhandled PreviewMouseUp attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewMouseWheel(MouseWheelEventArgs) OnPreviewMouseWheel(MouseWheelEventArgs) OnPreviewMouseWheel(MouseWheelEventArgs) OnPreviewMouseWheel(MouseWheelEventArgs)

當未處理的 PreviewMouseWheel 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled PreviewMouseWheel attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewQueryContinueDrag(QueryContinueDragEventArgs) OnPreviewQueryContinueDrag(QueryContinueDragEventArgs) OnPreviewQueryContinueDrag(QueryContinueDragEventArgs) OnPreviewQueryContinueDrag(QueryContinueDragEventArgs)

當未處理的 PreviewQueryContinueDrag 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled PreviewQueryContinueDrag attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewStylusButtonDown(StylusButtonEventArgs) OnPreviewStylusButtonDown(StylusButtonEventArgs) OnPreviewStylusButtonDown(StylusButtonEventArgs) OnPreviewStylusButtonDown(StylusButtonEventArgs)

當未處理的 PreviewStylusButtonDown 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled PreviewStylusButtonDown attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewStylusButtonUp(StylusButtonEventArgs) OnPreviewStylusButtonUp(StylusButtonEventArgs) OnPreviewStylusButtonUp(StylusButtonEventArgs) OnPreviewStylusButtonUp(StylusButtonEventArgs)

當未處理的 PreviewStylusButtonUp 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled PreviewStylusButtonUp attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewStylusDown(StylusDownEventArgs) OnPreviewStylusDown(StylusDownEventArgs) OnPreviewStylusDown(StylusDownEventArgs) OnPreviewStylusDown(StylusDownEventArgs)

當未處理的 PreviewStylusDown 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled PreviewStylusDown attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewStylusInAirMove(StylusEventArgs) OnPreviewStylusInAirMove(StylusEventArgs) OnPreviewStylusInAirMove(StylusEventArgs) OnPreviewStylusInAirMove(StylusEventArgs)

當未處理的 PreviewStylusInAirMove 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled PreviewStylusInAirMove attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewStylusInRange(StylusEventArgs) OnPreviewStylusInRange(StylusEventArgs) OnPreviewStylusInRange(StylusEventArgs) OnPreviewStylusInRange(StylusEventArgs)

當未處理的 PreviewStylusInRange 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled PreviewStylusInRange attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewStylusMove(StylusEventArgs) OnPreviewStylusMove(StylusEventArgs) OnPreviewStylusMove(StylusEventArgs) OnPreviewStylusMove(StylusEventArgs)

當未處理的 PreviewStylusMove 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled PreviewStylusMove attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewStylusOutOfRange(StylusEventArgs) OnPreviewStylusOutOfRange(StylusEventArgs) OnPreviewStylusOutOfRange(StylusEventArgs) OnPreviewStylusOutOfRange(StylusEventArgs)

當未處理的 PreviewStylusOutOfRange 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled PreviewStylusOutOfRange attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewStylusSystemGesture(StylusSystemGestureEventArgs) OnPreviewStylusSystemGesture(StylusSystemGestureEventArgs) OnPreviewStylusSystemGesture(StylusSystemGestureEventArgs) OnPreviewStylusSystemGesture(StylusSystemGestureEventArgs)

當未處理的 PreviewStylusSystemGesture 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled PreviewStylusSystemGesture attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewStylusUp(StylusEventArgs) OnPreviewStylusUp(StylusEventArgs) OnPreviewStylusUp(StylusEventArgs) OnPreviewStylusUp(StylusEventArgs)

當未處理的 PreviewStylusUp 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled PreviewStylusUp attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewTextInput(TextCompositionEventArgs) OnPreviewTextInput(TextCompositionEventArgs) OnPreviewTextInput(TextCompositionEventArgs) OnPreviewTextInput(TextCompositionEventArgs)

當未處理的 PreviewTextInput 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled PreviewTextInput attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnPreviewTouchDown(TouchEventArgs) OnPreviewTouchDown(TouchEventArgs) OnPreviewTouchDown(TouchEventArgs) OnPreviewTouchDown(TouchEventArgs)

提供 PreviewTouchDown 路由事件的類別處理,而這個事件會在觸控按下此項目時發生。Provides class handling for the PreviewTouchDown routed event that occurs when a touch presses this element.

(Inherited from UIElement)
OnPreviewTouchMove(TouchEventArgs) OnPreviewTouchMove(TouchEventArgs) OnPreviewTouchMove(TouchEventArgs) OnPreviewTouchMove(TouchEventArgs)

提供 PreviewTouchMove 路由事件的類別處理,而這個事件會在觸控尚處於此項目內並有所移動時發生。Provides class handling for the PreviewTouchMove routed event that occurs when a touch moves while inside this element.

(Inherited from UIElement)
OnPreviewTouchUp(TouchEventArgs) OnPreviewTouchUp(TouchEventArgs) OnPreviewTouchUp(TouchEventArgs) OnPreviewTouchUp(TouchEventArgs)

提供 PreviewTouchUp 路由事件的類別處理,而這個事件會在觸控於此項目內放開時發生。Provides class handling for the PreviewTouchUp routed event that occurs when a touch is released inside this element.

(Inherited from UIElement)
OnPropertyChanged(DependencyPropertyChangedEventArgs) OnPropertyChanged(DependencyPropertyChangedEventArgs) OnPropertyChanged(DependencyPropertyChangedEventArgs) OnPropertyChanged(DependencyPropertyChangedEventArgs)

每當 FrameworkElement 上任何相依性屬性的有效值已更新時叫用。Invoked whenever the effective value of any dependency property on this FrameworkElement has been updated. 已變更的特定相依性屬性會在引數參數中報告。The specific dependency property that changed is reported in the arguments parameter. 覆寫 OnPropertyChanged(DependencyPropertyChangedEventArgs)Overrides OnPropertyChanged(DependencyPropertyChangedEventArgs).

(Inherited from FrameworkElement)
OnQueryContinueDrag(QueryContinueDragEventArgs) OnQueryContinueDrag(QueryContinueDragEventArgs) OnQueryContinueDrag(QueryContinueDragEventArgs) OnQueryContinueDrag(QueryContinueDragEventArgs)

當未處理的 QueryContinueDrag 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled QueryContinueDrag attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnQueryCursor(QueryCursorEventArgs) OnQueryCursor(QueryCursorEventArgs) OnQueryCursor(QueryCursorEventArgs) OnQueryCursor(QueryCursorEventArgs)

當未處理的 QueryCursor 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled QueryCursor attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnRender(DrawingContext) OnRender(DrawingContext) OnRender(DrawingContext) OnRender(DrawingContext)

在衍生類別中覆寫時,參與由配置系統導向的呈現作業。When overridden in a derived class, participates in rendering operations that are directed by the layout system. 這個項目的呈現指令不會在叫用此方法時直接使用,而是會加以保留,以便稍後由配置和繪圖做非同步使用。The rendering instructions for this element are not used directly when this method is invoked, and are instead preserved for later asynchronous use by layout and drawing.

(Inherited from UIElement)
OnRenderSizeChanged(SizeChangedInfo) OnRenderSizeChanged(SizeChangedInfo) OnRenderSizeChanged(SizeChangedInfo) OnRenderSizeChanged(SizeChangedInfo)

使用指定的資訊作為最終事件資料的一部分,引發 SizeChanged 事件。Raises the SizeChanged event, using the specified information as part of the eventual event data.

(Inherited from FrameworkElement)
OnRowDetailsVisibilityChanged(DataGridRowDetailsEventArgs) OnRowDetailsVisibilityChanged(DataGridRowDetailsEventArgs) OnRowDetailsVisibilityChanged(DataGridRowDetailsEventArgs) OnRowDetailsVisibilityChanged(DataGridRowDetailsEventArgs)

引發 RowDetailsVisibilityChanged 事件。Raises the RowDetailsVisibilityChanged event.

OnRowEditEnding(DataGridRowEditEndingEventArgs) OnRowEditEnding(DataGridRowEditEndingEventArgs) OnRowEditEnding(DataGridRowEditEndingEventArgs) OnRowEditEnding(DataGridRowEditEndingEventArgs)

引發 RowEditEnding 事件。Raises the RowEditEnding event.

OnSelectedCellsChanged(SelectedCellsChangedEventArgs) OnSelectedCellsChanged(SelectedCellsChangedEventArgs) OnSelectedCellsChanged(SelectedCellsChangedEventArgs) OnSelectedCellsChanged(SelectedCellsChangedEventArgs)

引發 SelectedCellsChanged 事件。Raises the SelectedCellsChanged event.

OnSelectionChanged(SelectionChangedEventArgs) OnSelectionChanged(SelectionChangedEventArgs) OnSelectionChanged(SelectionChangedEventArgs) OnSelectionChanged(SelectionChangedEventArgs)

選取範圍變更時叫用。Invoked when the selection changes.

OnSorting(DataGridSortingEventArgs) OnSorting(DataGridSortingEventArgs) OnSorting(DataGridSortingEventArgs) OnSorting(DataGridSortingEventArgs)

引發 Sorting 事件。Raises the Sorting event.

OnStyleChanged(Style, Style) OnStyleChanged(Style, Style) OnStyleChanged(Style, Style) OnStyleChanged(Style, Style)

在這個項目上使用的樣式變更時叫用,如此將使配置失效。Invoked when the style in use on this element changes, which will invalidate the layout.

(Inherited from FrameworkElement)
OnStylusButtonDown(StylusButtonEventArgs) OnStylusButtonDown(StylusButtonEventArgs) OnStylusButtonDown(StylusButtonEventArgs) OnStylusButtonDown(StylusButtonEventArgs)

當未處理的 StylusButtonDown 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled StylusButtonDown attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnStylusButtonUp(StylusButtonEventArgs) OnStylusButtonUp(StylusButtonEventArgs) OnStylusButtonUp(StylusButtonEventArgs) OnStylusButtonUp(StylusButtonEventArgs)

當未處理的 StylusButtonUp 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled StylusButtonUp attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnStylusDown(StylusDownEventArgs) OnStylusDown(StylusDownEventArgs) OnStylusDown(StylusDownEventArgs) OnStylusDown(StylusDownEventArgs)

當未處理的 StylusDown 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled StylusDown attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnStylusEnter(StylusEventArgs) OnStylusEnter(StylusEventArgs) OnStylusEnter(StylusEventArgs) OnStylusEnter(StylusEventArgs)

當這個項目引發未處理的 StylusEnter 附加事件時叫用。Invoked when an unhandled StylusEnter attached event is raised by this element. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnStylusInAirMove(StylusEventArgs) OnStylusInAirMove(StylusEventArgs) OnStylusInAirMove(StylusEventArgs) OnStylusInAirMove(StylusEventArgs)

當未處理的 StylusInAirMove 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled StylusInAirMove attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnStylusInRange(StylusEventArgs) OnStylusInRange(StylusEventArgs) OnStylusInRange(StylusEventArgs) OnStylusInRange(StylusEventArgs)

當未處理的 StylusInRange 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled StylusInRange attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnStylusLeave(StylusEventArgs) OnStylusLeave(StylusEventArgs) OnStylusLeave(StylusEventArgs) OnStylusLeave(StylusEventArgs)

當這個項目引發未處理的 StylusLeave 附加事件時叫用。Invoked when an unhandled StylusLeave attached event is raised by this element. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnStylusMove(StylusEventArgs) OnStylusMove(StylusEventArgs) OnStylusMove(StylusEventArgs) OnStylusMove(StylusEventArgs)

當未處理的 StylusMove 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled StylusMove attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnStylusOutOfRange(StylusEventArgs) OnStylusOutOfRange(StylusEventArgs) OnStylusOutOfRange(StylusEventArgs) OnStylusOutOfRange(StylusEventArgs)

當未處理的 StylusOutOfRange 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled StylusOutOfRange attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnStylusSystemGesture(StylusSystemGestureEventArgs) OnStylusSystemGesture(StylusSystemGestureEventArgs) OnStylusSystemGesture(StylusSystemGestureEventArgs) OnStylusSystemGesture(StylusSystemGestureEventArgs)

當未處理的 StylusSystemGesture 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled StylusSystemGesture attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnStylusUp(StylusEventArgs) OnStylusUp(StylusEventArgs) OnStylusUp(StylusEventArgs) OnStylusUp(StylusEventArgs)

當未處理的 StylusUp 附加事件到達其路由衍生自此類別的項目時,加以叫用。Invoked when an unhandled StylusUp attached event reaches an element in its route that is derived from this class. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from UIElement)
OnTemplateChanged(ControlTemplate, ControlTemplate) OnTemplateChanged(ControlTemplate, ControlTemplate) OnTemplateChanged(ControlTemplate, ControlTemplate) OnTemplateChanged(ControlTemplate, ControlTemplate)

每當 DataGrid 的範本變更時呼叫。Called whenever the template of the DataGrid changes.

OnTextInput(TextCompositionEventArgs) OnTextInput(TextCompositionEventArgs) OnTextInput(TextCompositionEventArgs) OnTextInput(TextCompositionEventArgs)

提供 TextInput 已路由事件的類別處理。Provides class handling for the TextInput routed event.

OnToolTipClosing(ToolTipEventArgs) OnToolTipClosing(ToolTipEventArgs) OnToolTipClosing(ToolTipEventArgs) OnToolTipClosing(ToolTipEventArgs)

當未處理的 ToolTipClosing 路由事件到達其路由中的這個類別時,便會叫用此方法。Invoked whenever an unhandled ToolTipClosing routed event reaches this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from FrameworkElement)
OnToolTipOpening(ToolTipEventArgs) OnToolTipOpening(ToolTipEventArgs) OnToolTipOpening(ToolTipEventArgs) OnToolTipOpening(ToolTipEventArgs)

ToolTipOpening 路由事件到達其路由中的這個類別時,便會叫用此方法。Invoked whenever the ToolTipOpening routed event reaches this class in its route. 實作這個方法可為此事件加入類別處理。Implement this method to add class handling for this event.

(Inherited from FrameworkElement)
OnTouchDown(TouchEventArgs) OnTouchDown(TouchEventArgs) OnTouchDown(TouchEventArgs) OnTouchDown(TouchEventArgs)

提供 TouchDown 路由事件的類別處理,而這個事件會在觸控按下此項目內部時發生。Provides class handling fo