DataGrid 類別

定義

表示以可自訂方格顯示資料的控制項。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 類別的新執行個體。Initializes a new instance of the DataGrid class.

欄位

AlternatingRowBackgroundProperty

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

AreRowDetailsFrozenProperty

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

AutoGenerateColumnsProperty

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

BeginEditCommand

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

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

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

CanUserDeleteRowsProperty

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

CanUserReorderColumnsProperty

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

CanUserResizeColumnsProperty

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

CanUserResizeRowsProperty

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

CanUserSortColumnsProperty

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

CellsPanelHorizontalOffsetProperty

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

CellStyleProperty

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

ClipboardCopyModeProperty

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

ColumnHeaderHeightProperty

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

ColumnHeaderStyleProperty

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

ColumnWidthProperty

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

CommitEditCommand

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

CurrentCellProperty

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

CurrentColumnProperty

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

CurrentItemProperty

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

DragIndicatorStyleProperty

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

DropLocationIndicatorStyleProperty

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

EnableColumnVirtualizationProperty

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

EnableRowVirtualizationProperty

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

FrozenColumnCountProperty

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

GridLinesVisibilityProperty

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

HeadersVisibilityProperty

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

HorizontalGridLinesBrushProperty

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

HorizontalScrollBarVisibilityProperty

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

IsReadOnlyProperty

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

MaxColumnWidthProperty

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

MinColumnWidthProperty

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

MinRowHeightProperty

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

NewItemMarginProperty

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

NonFrozenColumnsViewportHorizontalOffsetProperty

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

RowBackgroundProperty

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

RowDetailsTemplateProperty

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

RowDetailsTemplateSelectorProperty

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

RowDetailsVisibilityModeProperty

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

RowHeaderActualWidthProperty

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

RowHeaderStyleProperty

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

RowHeaderTemplateProperty

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

RowHeaderTemplateSelectorProperty

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

RowHeaderWidthProperty

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

RowHeightProperty

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

RowStyleProperty

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

RowStyleSelectorProperty

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

RowValidationErrorTemplateProperty

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

SelectionModeProperty

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

SelectionUnitProperty

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

VerticalGridLinesBrushProperty

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

VerticalScrollBarVisibilityProperty

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

屬性

ActualHeight

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

(繼承來源 FrameworkElement)
ActualWidth

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

(繼承來源 FrameworkElement)
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.

(繼承來源 UIElement)
AlternatingRowBackground

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

AlternationCount

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

(繼承來源 ItemsControl)
AreAnyTouchesCaptured

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

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
AreAnyTouchesDirectlyOver

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

(繼承來源 UIElement)
AreAnyTouchesOver

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

(繼承來源 UIElement)
AreRowDetailsFrozen

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

AutoGenerateColumns

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

Background

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

(繼承來源 Control)
BindingGroup

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

(繼承來源 FrameworkElement)
BitmapEffect

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

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
BorderBrush

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

(繼承來源 Control)
BorderThickness

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

(繼承來源 Control)
CacheMode

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

(繼承來源 UIElement)
CanSelectMultipleItems

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

(繼承來源 MultiSelector)
CanUserAddRows

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

CanUserDeleteRows

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

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

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

CanUserResizeRows

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

CanUserSortColumns

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

CellsPanelHorizontalOffset

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

CellStyle

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

Clip

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

(繼承來源 UIElement)
ClipboardCopyMode

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

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.

(繼承來源 UIElement)
ColumnHeaderHeight

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

ColumnHeaderStyle

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

Columns

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

ColumnWidth

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

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.

(繼承來源 UIElement)
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.

(繼承來源 FrameworkElement)
CurrentCell

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

CurrentColumn

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

CurrentItem

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

Cursor

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

(繼承來源 FrameworkElement)
DataContext

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

(繼承來源 FrameworkElement)
DefaultStyleKey

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

(繼承來源 FrameworkElement)
DeleteCommand

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

DependencyObjectType

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

(繼承來源 DependencyObject)
DesiredSize

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

(繼承來源 UIElement)
Dispatcher

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

(繼承來源 DispatcherObject)
DisplayMemberPath

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

(繼承來源 ItemsControl)
DragIndicatorStyle

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

DropLocationIndicatorStyle

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

Effect

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

(繼承來源 UIElement)
EnableColumnVirtualization

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

EnableRowVirtualization

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

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.

(繼承來源 FrameworkElement)
Focusable

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

(繼承來源 UIElement)
FocusBorderBrushKey

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

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.

(繼承來源 FrameworkElement)
FontFamily

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

(繼承來源 Control)
FontSize

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

(繼承來源 Control)
FontStretch

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

(繼承來源 Control)
FontStyle

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

(繼承來源 Control)
FontWeight

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

(繼承來源 Control)
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.

(繼承來源 FrameworkElement)
Foreground

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

(繼承來源 Control)
FrozenColumnCount

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

GridLinesVisibility

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

GroupStyle

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

(繼承來源 ItemsControl)
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.

(繼承來源 ItemsControl)
HandlesScrolling

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

HasAnimatedProperties

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

(繼承來源 UIElement)
HasEffectiveKeyboardFocus

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

(繼承來源 UIElement)
HasItems

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

(繼承來源 ItemsControl)
HeadersVisibility

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

HeadersVisibilityConverter

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

Height

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

(繼承來源 FrameworkElement)
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.

(繼承來源 FrameworkElement)
HorizontalContentAlignment

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

(繼承來源 Control)
HorizontalGridLinesBrush

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

HorizontalScrollBarVisibility

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

InheritanceBehavior

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

(繼承來源 FrameworkElement)
InputBindings

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

(繼承來源 UIElement)
InputScope

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

(繼承來源 FrameworkElement)
IsArrangeValid

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

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
IsEnabledCore

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

(繼承來源 UIElement)
IsFocused

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

(繼承來源 UIElement)
IsGrouping

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

(繼承來源 ItemsControl)
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.

(繼承來源 UIElement)
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.

(繼承來源 FrameworkElement)
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.

(繼承來源 UIElement)
IsKeyboardFocused

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

(繼承來源 UIElement)
IsKeyboardFocusWithin

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

(繼承來源 UIElement)
IsLoaded

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

(繼承來源 FrameworkElement)
IsManipulationEnabled

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

(繼承來源 UIElement)
IsMeasureValid

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

(繼承來源 UIElement)
IsMouseCaptured

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

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
IsReadOnly

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

IsSealed

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

(繼承來源 DependencyObject)
IsStylusCaptured

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

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
IsStylusOver

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

(繼承來源 UIElement)
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.

(繼承來源 Selector)
IsTabStop

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

(繼承來源 Control)
IsTextSearchCaseSensitive

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

(繼承來源 ItemsControl)
IsTextSearchEnabled

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

(繼承來源 ItemsControl)
IsUpdatingSelectedItems

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

(繼承來源 MultiSelector)
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.

(繼承來源 UIElement)
ItemBindingGroup

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

(繼承來源 ItemsControl)
ItemContainerGenerator

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

(繼承來源 ItemsControl)
ItemContainerStyle

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

(繼承來源 ItemsControl)
ItemContainerStyleSelector

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

(繼承來源 ItemsControl)
Items

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

(繼承來源 ItemsControl)
ItemsPanel

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

(繼承來源 ItemsControl)
ItemsSource

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

(繼承來源 ItemsControl)
ItemStringFormat

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

(繼承來源 ItemsControl)
ItemTemplate

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

(繼承來源 ItemsControl)
ItemTemplateSelector

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

(繼承來源 ItemsControl)
Language

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

(繼承來源 FrameworkElement)
LayoutTransform

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

(繼承來源 FrameworkElement)
LogicalChildren

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

(繼承來源 ItemsControl)
Margin

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

(繼承來源 FrameworkElement)
MaxColumnWidth

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

MaxHeight

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

(繼承來源 FrameworkElement)
MaxWidth

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

(繼承來源 FrameworkElement)
MinColumnWidth

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

MinHeight

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

(繼承來源 FrameworkElement)
MinRowHeight

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

MinWidth

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

(繼承來源 FrameworkElement)
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.

(繼承來源 FrameworkElement)
NewItemMargin

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

NonFrozenColumnsViewportHorizontalOffset

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

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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
OverridesDefaultStyle

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

(繼承來源 FrameworkElement)
Padding

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

(繼承來源 Control)
Parent

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

(繼承來源 FrameworkElement)
PersistId

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

(繼承來源 UIElement)
RenderSize

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

(繼承來源 UIElement)
RenderTransform

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

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
Resources

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

(繼承來源 FrameworkElement)
RowBackground

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

RowDetailsScrollingConverter

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

RowDetailsTemplate

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

RowDetailsTemplateSelector

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

RowDetailsVisibilityMode

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

RowHeaderActualWidth

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

RowHeaderStyle

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

RowHeaderTemplate

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

RowHeaderTemplateSelector

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

RowHeaderWidth

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

RowHeight

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

RowStyle

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

RowStyleSelector

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

RowValidationErrorTemplate

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

RowValidationRules

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

SelectAllCommand

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

SelectedCells

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

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.

(繼承來源 Selector)
SelectedItem

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

(繼承來源 Selector)
SelectedItems

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

(繼承來源 MultiSelector)
SelectedValue

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

(繼承來源 Selector)
SelectedValuePath

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

(繼承來源 Selector)
SelectionMode

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

SelectionUnit

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

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.

(繼承來源 UIElement)
Style

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

(繼承來源 FrameworkElement)
StylusPlugIns

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

(繼承來源 UIElement)
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.

(繼承來源 Control)
Tag

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

(繼承來源 FrameworkElement)
Template

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

(繼承來源 Control)
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.

(繼承來源 FrameworkElement)
ToolTip

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

(繼承來源 FrameworkElement)
TouchesCaptured

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

(繼承來源 UIElement)
TouchesCapturedWithin

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

(繼承來源 UIElement)
TouchesDirectlyOver

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

(繼承來源 UIElement)
TouchesOver

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

(繼承來源 UIElement)
Triggers

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

(繼承來源 FrameworkElement)
Uid

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

(繼承來源 UIElement)
UseLayoutRounding

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

(繼承來源 FrameworkElement)
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.

(繼承來源 FrameworkElement)
VerticalContentAlignment

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

(繼承來源 Control)
VerticalGridLinesBrush

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

VerticalScrollBarVisibility

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

Visibility

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

(繼承來源 UIElement)
VisualBitmapEffect

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

(繼承來源 Visual)
VisualBitmapEffectInput

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

(繼承來源 Visual)
VisualBitmapScalingMode

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

(繼承來源 Visual)
VisualCacheMode

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

(繼承來源 Visual)
VisualChildrenCount

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

(繼承來源 FrameworkElement)
VisualClearTypeHint

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

(繼承來源 Visual)
VisualClip

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

(繼承來源 Visual)
VisualEdgeMode

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

(繼承來源 Visual)
VisualEffect

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

(繼承來源 Visual)
VisualOffset

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

(繼承來源 Visual)
VisualOpacity

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

(繼承來源 Visual)
VisualOpacityMask

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

(繼承來源 Visual)
VisualParent

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

(繼承來源 Visual)
VisualScrollableAreaClip

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

(繼承來源 Visual)
VisualTextHintingMode

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

(繼承來源 Visual)
VisualTextRenderingMode

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

(繼承來源 Visual)
VisualTransform

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

(繼承來源 Visual)
VisualXSnappingGuidelines

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

(繼承來源 Visual)
VisualYSnappingGuidelines

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

(繼承來源 Visual)
Width

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

(繼承來源 FrameworkElement)

方法

AddChild(Object)

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

(繼承來源 ItemsControl)
AddHandler(RoutedEvent, Delegate)

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

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
AddLogicalChild(Object)

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

(繼承來源 FrameworkElement)
AddText(String)

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

(繼承來源 ItemsControl)
AddToEventRoute(EventRoute, RoutedEventArgs)

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

(繼承來源 UIElement)
AddVisualChild(Visual)

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

(繼承來源 Visual)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 FrameworkElement)
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.

(繼承來源 UIElement)
ArrangeCore(Rect)

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

(繼承來源 FrameworkElement)
ArrangeOverride(Size)

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

(繼承來源 Control)
BeginAnimation(DependencyProperty, AnimationTimeline)

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

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
BeginEdit()

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

BeginEdit(RoutedEventArgs)

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

BeginInit()

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

(繼承來源 ItemsControl)
BeginStoryboard(Storyboard)

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

(繼承來源 FrameworkElement)
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.

(繼承來源 FrameworkElement)
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.

(繼承來源 FrameworkElement)
BeginUpdateSelectedItems()

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

(繼承來源 MultiSelector)
BringIntoView()

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

(繼承來源 FrameworkElement)
BringIntoView(Rect)

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

(繼承來源 FrameworkElement)
CancelEdit()

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

CancelEdit(DataGridEditingUnit)

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

CaptureMouse()

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

(繼承來源 UIElement)
CaptureStylus()

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

(繼承來源 UIElement)
CaptureTouch(TouchDevice)

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

(繼承來源 UIElement)
CheckAccess()

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

(繼承來源 DispatcherObject)
ClearContainerForItemOverride(DependencyObject, Object)

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

ClearDetailsVisibilityForItem(Object)

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

ClearValue(DependencyProperty)

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

(繼承來源 DependencyObject)
ClearValue(DependencyPropertyKey)

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

(繼承來源 DependencyObject)
CoerceValue(DependencyProperty)

強制轉型所指定相依性屬性的值。Coerces the value of the specified dependency property. 完成方式是叫用存在於呼叫 DependencyObject 之相依性屬性的屬性中繼資料中所指定的任何 CoerceValueCallback 函式。This is accomplished by invoking any CoerceValueCallback function specified in property metadata for the dependency property as it exists on the calling DependencyObject.

(繼承來源 DependencyObject)
ColumnFromDisplayIndex(Int32)

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

CommitEdit()

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

CommitEdit(DataGridEditingUnit, Boolean)

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

ContainerFromElement(DependencyObject)

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

(繼承來源 ItemsControl)
EndInit()

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

(繼承來源 ItemsControl)
EndUpdateSelectedItems()

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

(繼承來源 MultiSelector)
Equals(Object)

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

(繼承來源 DependencyObject)
FindCommonVisualAncestor(DependencyObject)

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

(繼承來源 Visual)
FindName(String)

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

(繼承來源 FrameworkElement)
FindResource(Object)

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

(繼承來源 FrameworkElement)
Focus()

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

(繼承來源 UIElement)
GenerateColumns(IItemProperties)

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

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.

(繼承來源 UIElement)
GetBindingExpression(DependencyProperty)

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

(繼承來源 FrameworkElement)
GetContainerForItemOverride()

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

GetDetailsVisibilityForItem(Object)

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

GetHashCode()

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

(繼承來源 DependencyObject)
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.

(繼承來源 FrameworkElement)
GetLocalValueEnumerator()

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

(繼承來源 DependencyObject)
GetTemplateChild(String)

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

(繼承來源 FrameworkElement)
GetType()

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

(繼承來源 Object)
GetUIParentCore()

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

(繼承來源 FrameworkElement)
GetValue(DependencyProperty)

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

(繼承來源 DependencyObject)
GetVisualChild(Int32)

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

(繼承來源 FrameworkElement)
HitTestCore(GeometryHitTestParameters)

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

(繼承來源 UIElement)
HitTestCore(PointHitTestParameters)

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

(繼承來源 UIElement)
InputHitTest(Point)

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

(繼承來源 UIElement)
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().

(繼承來源 UIElement)
InvalidateMeasure()

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

(繼承來源 UIElement)
InvalidateProperty(DependencyProperty)

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

(繼承來源 DependencyObject)
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.

(繼承來源 UIElement)
IsAncestorOf(DependencyObject)

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

(繼承來源 Visual)
IsDescendantOf(DependencyObject)

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

(繼承來源 Visual)
IsItemItsOwnContainer(Object)

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

(繼承來源 ItemsControl)
IsItemItsOwnContainerOverride(Object)

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

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.

(繼承來源 UIElement)
MeasureCore(Size)

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

(繼承來源 FrameworkElement)
MeasureOverride(Size)

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

MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
MoveFocus(TraversalRequest)

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

(繼承來源 FrameworkElement)
OnAccessKey(AccessKeyEventArgs)

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

(繼承來源 UIElement)
OnAddingNewItem(AddingNewItemEventArgs)

引發 AddingNewItem 事件。Raises the AddingNewItem event.

OnAlternationCountChanged(Int32, Int32)

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

(繼承來源 ItemsControl)
OnApplyTemplate()

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

OnAutoGeneratedColumns(EventArgs)

引發 AutoGeneratedColumns 事件。Raises the AutoGeneratedColumns event.

OnAutoGeneratingColumn(DataGridAutoGeneratingColumnEventArgs)

引發 AutoGeneratingColumn 事件。Raises the AutoGeneratingColumn event.

OnBeginningEdit(DataGridBeginningEditEventArgs)

引發 BeginningEdit 事件。Raises the BeginningEdit event.

OnCanExecuteBeginEdit(CanExecuteRoutedEventArgs)

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

OnCanExecuteCancelEdit(CanExecuteRoutedEventArgs)

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

OnCanExecuteCommitEdit(CanExecuteRoutedEventArgs)

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

OnCanExecuteCopy(CanExecuteRoutedEventArgs)

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

OnCanExecuteDelete(CanExecuteRoutedEventArgs)

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

OnCellEditEnding(DataGridCellEditEndingEventArgs)

引發 CellEditEnding 事件。Raises the CellEditEnding event.

OnChildDesiredSizeChanged(UIElement)

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

(繼承來源 UIElement)
OnColumnDisplayIndexChanged(DataGridColumnEventArgs)

引發 ColumnDisplayIndexChanged 事件。Raises the ColumnDisplayIndexChanged event.

OnColumnHeaderDragCompleted(DragCompletedEventArgs)

引發 ColumnHeaderDragCompleted 事件。Raises the ColumnHeaderDragCompleted event.

OnColumnHeaderDragDelta(DragDeltaEventArgs)

引發 ColumnHeaderDragDelta 事件。Raises the ColumnHeaderDragDelta event.

OnColumnHeaderDragStarted(DragStartedEventArgs)

引發 ColumnHeaderDragStarted 事件。Raises the ColumnHeaderDragStarted event.

OnColumnReordered(DataGridColumnEventArgs)

引發 ColumnReordered 事件。Raises the ColumnReordered event.

OnColumnReordering(DataGridColumnReorderingEventArgs)

引發 ColumnReordering 事件。Raises the ColumnReordering event.

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.

(繼承來源 FrameworkElement)
OnContextMenuOpening(ContextMenuEventArgs)

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

OnCopyingRowClipboardContent(DataGridRowClipboardEventArgs)

引發 CopyingRowClipboardContent 事件。Raises the CopyingRowClipboardContent event.

OnCreateAutomationPeer()

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

OnCurrentCellChanged(EventArgs)

引發 CurrentCellChanged 事件。Raises the CurrentCellChanged event.

OnDisplayMemberPathChanged(String, String)

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

(繼承來源 ItemsControl)
OnDpiChanged(DpiScale, DpiScale)

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

(繼承來源 Visual)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
OnExecutedBeginEdit(ExecutedRoutedEventArgs)

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

OnExecutedCancelEdit(ExecutedRoutedEventArgs)

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

OnExecutedCommitEdit(ExecutedRoutedEventArgs)

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

OnExecutedCopy(ExecutedRoutedEventArgs)

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

OnExecutedDelete(ExecutedRoutedEventArgs)

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

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.

(繼承來源 UIElement)
OnGotFocus(RoutedEventArgs)

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

(繼承來源 FrameworkElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
OnGotTouchCapture(TouchEventArgs)

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

(繼承來源 UIElement)
OnGroupStyleSelectorChanged(GroupStyleSelector, GroupStyleSelector)

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

(繼承來源 ItemsControl)
OnInitialized(EventArgs)

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

(繼承來源 Selector)
OnInitializingNewItem(InitializingNewItemEventArgs)

引發 InitializingNewItem 事件。Raises the InitializingNewItem event.

OnIsKeyboardFocusedChanged(DependencyPropertyChangedEventArgs)

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

(繼承來源 UIElement)
OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs)

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

(繼承來源 Selector)
OnIsMouseCapturedChanged(DependencyPropertyChangedEventArgs)

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

OnIsMouseCaptureWithinChanged(DependencyPropertyChangedEventArgs)

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

(繼承來源 UIElement)
OnIsMouseDirectlyOverChanged(DependencyPropertyChangedEventArgs)

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

(繼承來源 UIElement)
OnIsStylusCapturedChanged(DependencyPropertyChangedEventArgs)

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

(繼承來源 UIElement)
OnIsStylusCaptureWithinChanged(DependencyPropertyChangedEventArgs)

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

(繼承來源 UIElement)
OnIsStylusDirectlyOverChanged(DependencyPropertyChangedEventArgs)

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

(繼承來源 UIElement)
OnItemBindingGroupChanged(BindingGroup, BindingGroup)

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

(繼承來源 ItemsControl)
OnItemContainerStyleChanged(Style, Style)

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

(繼承來源 ItemsControl)
OnItemContainerStyleSelectorChanged(StyleSelector, StyleSelector)

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

(繼承來源 ItemsControl)
OnItemsChanged(NotifyCollectionChangedEventArgs)

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

OnItemsPanelChanged(ItemsPanelTemplate, ItemsPanelTemplate)

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

(繼承來源 ItemsControl)
OnItemsSourceChanged(IEnumerable, IEnumerable)

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

OnItemStringFormatChanged(String, String)

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

(繼承來源 ItemsControl)
OnItemTemplateChanged(DataTemplate, DataTemplate)

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

(繼承來源 ItemsControl)
OnItemTemplateSelectorChanged(DataTemplateSelector, DataTemplateSelector)

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

(繼承來源 ItemsControl)
OnKeyDown(KeyEventArgs)

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

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.

(繼承來源 UIElement)
OnLoadingRow(DataGridRowEventArgs)

引發 LoadingRow 事件。Raises the LoadingRow event.

OnLoadingRowDetails(DataGridRowDetailsEventArgs)

引發 LoadingRowDetails 事件。Raises the LoadingRowDetails event.

OnLostFocus(RoutedEventArgs)

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

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
OnLostTouchCapture(TouchEventArgs)

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

(繼承來源 UIElement)
OnManipulationBoundaryFeedback(ManipulationBoundaryFeedbackEventArgs)

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

(繼承來源 UIElement)
OnManipulationCompleted(ManipulationCompletedEventArgs)

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

(繼承來源 UIElement)
OnManipulationDelta(ManipulationDeltaEventArgs)

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

(繼承來源 UIElement)
OnManipulationInertiaStarting(ManipulationInertiaStartingEventArgs)

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

(繼承來源 UIElement)
OnManipulationStarted(ManipulationStartedEventArgs)

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

(繼承來源 UIElement)
OnManipulationStarting(ManipulationStartingEventArgs)

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

(繼承來源 UIElement)
OnMouseDoubleClick(MouseButtonEventArgs)

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

(繼承來源 Control)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
OnMouseMove(MouseEventArgs)

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

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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
OnPreparingCellForEdit(DataGridPreparingCellForEditEventArgs)

引發 PreparingCellForEdit 事件。Raises the PreparingCellForEdit event.

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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
OnPreviewMouseDoubleClick(MouseButtonEventArgs)

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

(繼承來源 Control)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
OnPreviewTouchDown(TouchEventArgs)

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

(繼承來源 UIElement)
OnPreviewTouchMove(TouchEventArgs)

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

(繼承來源 UIElement)
OnPreviewTouchUp(TouchEventArgs)

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

(繼承來源 UIElement)
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).

(繼承來源 FrameworkElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
OnRenderSizeChanged(SizeChangedInfo)

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

(繼承來源 FrameworkElement)
OnRowDetailsVisibilityChanged(DataGridRowDetailsEventArgs)

引發 RowDetailsVisibilityChanged 事件。Raises the RowDetailsVisibilityChanged event.

OnRowEditEnding(DataGridRowEditEndingEventArgs)

引發 RowEditEnding 事件。Raises the RowEditEnding event.

OnSelectedCellsChanged(SelectedCellsChangedEventArgs)

引發 SelectedCellsChanged 事件。Raises the SelectedCellsChanged event.

OnSelectionChanged(SelectionChangedEventArgs)

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

OnSorting(DataGridSortingEventArgs)

引發 Sorting 事件。Raises the Sorting event.

OnStyleChanged(Style, Style)

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

(繼承來源 FrameworkElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
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.

(繼承來源 UIElement)
OnTemplateChanged(ControlTemplate, ControlTemplate)

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

OnTextInput(TextCompositionEventArgs)

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

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.

(繼承來源 FrameworkElement)
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.

(繼承來源 FrameworkElement)
OnTouchDown(TouchEventArgs)

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

(繼承來源 UIElement)
OnTouchEnter(TouchEventArgs)

提供 TouchEnter 路由事件的類別處理,而這個事件會在觸控從外面移至此項目範圍內時發生。Provides class handling for the TouchEnter routed event that occurs when a touch moves from outside to inside the bounds of this element.

(繼承來源 UIElement)
OnTouchLeave(TouchEventArgs)

提供 TouchLeave 路由事件的類別處理,而這個事件會在觸控輸入從此 UIElement 內移至其範圍外時發生。Provides class handling for the TouchLeave routed event that occurs when a touch moves from inside to outside the bounds of this UIElement.

(繼承來源 UIElement)
OnTouchMove(TouchEventArgs)

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

(繼承來源 UIElement)
OnTouchUp(TouchEventArgs)

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

(繼承來源 UIElement)
OnUnloadingRow(DataGridRowEventArgs)

引發 UnloadingRow 事件。Raises the UnloadingRow event.

OnUnloadingRowDetails(DataGridRowDetailsEventArgs)

引發 UnloadingRowDetails 事件。Raises the UnloadingRowDetails event.

OnVisualChildrenChanged(DependencyObject, DependencyObject)

當視覺物件的 VisualCollection 已修改時呼叫。Called when the VisualCollection of the visual object is modified.

(繼承來源 Visual)
OnVisualParentChanged(DependencyObject)

在視覺化樹狀結構中這個項目的父項目變更時叫用。Invoked when the parent of this element in the visual tree is changed. 覆寫 OnVisualParentChanged(DependencyObject)Overrides OnVisualParentChanged(DependencyObject).

(繼承來源 FrameworkElement)
ParentLayoutInvalidated(UIElement)

FrameworkElement 的特定子類別中支援累加配置實作。Supports incremental layout implementations in specialized subclasses of FrameworkElement. ParentLayoutInvalidated(UIElement) 會在子項目使得屬性失效時叫用,該屬性在中繼資料內已標記,會在配置期間影響父代的測量或排列傳遞。ParentLayoutInvalidated(UIElement) is invoked when a child element has invalidated a property that is marked in metadata as affecting the parent's measure or arrange passes during layout.

(繼承來源 FrameworkElement)
PointFromScreen(Point)

將螢幕座標中的 Point 轉換為 Point,表示 Visual 的目前座標系統。Converts a Point in screen coordinates into a Point that represents the current coordinate system of the Visual.

(繼承來源 Visual)
PointToScreen(Point)

將表示 Point 之目前座標系統的 Visual 轉換為螢幕座標中的 PointConverts a Point that represents the current coordinate system of the Visual into a Point in screen coordinates.

(繼承來源 Visual)
PredictFocus(FocusNavigationDirection)

決定下一個項目,該項目會針對所提供的焦點移動方向,接收相對於此項目的焦點,但是不會實際移動焦點。Determines the next element that would receive focus relative to this element for a provided focus movement direction, but does not actually move the focus.

(繼承來源 FrameworkElement)
PrepareContainerForItemOverride(DependencyObject, Object)

針對指定的項目準備新資料列。Prepares a new row for the specified item.

RaiseEvent(RoutedEventArgs)

引發特定路由事件。Raises a specific routed event. 要引發的 RoutedEvent 是在所提供的 RoutedEventArgs 執行個體內識別 (作為該事件資料的 RoutedEvent 屬性)。The RoutedEvent to be raised is identified within the RoutedEventArgs instance that is provided (as the RoutedEvent property of that event data).

(繼承來源 UIElement)
ReadLocalValue(DependencyProperty)

傳回相依性屬性的區域值 (如果存在)。Returns the local value of a dependency property, if it exists.

(繼承來源 DependencyObject)
RegisterName(String, Object)

提供可簡化對 NameScope 註冊方法之存取的存取子 (Accessor)。Provides an accessor that simplifies access to the NameScope registration method.

(繼承來源 FrameworkElement)
ReleaseAllTouchCaptures()

從這個項目釋放所有擷取到的觸控裝置。Releases all captured touch devices from this element.

(繼承來源 UIElement)
ReleaseMouseCapture()

如果這個項目保有滑鼠捕捉,則釋放捕捉。Releases the mouse capture, if this element held the capture.

(繼承來源 UIElement)
ReleaseStylusCapture()

如果這個項目保有手寫筆裝置捕捉,則釋放捕捉。Releases the stylus device capture, if this element held the capture.

(繼承來源 UIElement)
ReleaseTouchCapture(TouchDevice)

嘗試從這個項目中釋放指定的觸控裝置。Attempts to release the specified touch device from this element.

(繼承來源 UIElement)
RemoveHandler(RoutedEvent, Delegate)

從這個項目中移除指定的路由事件處理常式。Removes the specified routed event handler from this element.

(繼承來源 UIElement)
RemoveLogicalChild(Object)

從這個項目的邏輯樹狀結構中移除提供的物件。Removes the provided object from this element's logical tree. FrameworkElement 更新受影響的邏輯樹狀結構父指標,以便與刪除保持同步。FrameworkElement updates the affected logical tree parent pointers to keep in sync with this deletion.

(繼承來源 FrameworkElement)
RemoveVisualChild(Visual)

移除兩個視覺物件之間的父-子關係。Removes the parent-child relationship between two visuals.

(繼承來源 Visual)
ScrollIntoView(Object)

垂直捲動 DataGrid,以顯示所指定資料項目的資料列。Scrolls the DataGrid vertically to display the row for the specified data item.

ScrollIntoView(Object, DataGridColumn)

垂直和水平捲動 DataGrid,以顯示所指定資料項目和資料行的儲存格。Scrolls the DataGrid vertically and horizontally to display a cell for the specified data item and column.

SelectAll()

選取 MultiSelector 中的所有項目。Selects all of the items in the MultiSelector.

(繼承來源 MultiSelector)
SelectAllCells()

選取 DataGrid 中的所有儲存格。Selects all the cells in the DataGrid.

SetBinding(DependencyProperty, BindingBase)

根據提供的繫結物件,將繫結附加至這個項目。Attaches a binding to this element, based on the provided binding object.

(繼承來源 FrameworkElement)
SetBinding(DependencyProperty, String)

根據提供給資料來源做為路徑限定性條件的來源屬性名稱,將繫結附加至這個項目。Attaches a binding to this element, based on the provided source property name as a path qualification to the data source.

(繼承來源 FrameworkElement)
SetCurrentValue(DependencyProperty, Object)

設定相依性屬性的值,而不需要變更其值來源。Sets the value of a dependency property without changing its value source.

(繼承來源 DependencyObject)
SetDetailsVisibilityForItem(Object, Visibility)

為包含指定物件的 DetailsVisibility 設定 DataGridRow 屬性的值。Sets the value of the DetailsVisibility property for the DataGridRow that contains the specified object.

SetResourceReference(DependencyProperty, Object)

搜尋具有指定名稱的資源,並針對指定的屬性建立該資源的資源參考。Searches for a resource with the specified name and sets up a resource reference to it for the specified property.

(繼承來源 FrameworkElement)
SetValue(DependencyProperty, Object)

設定相依性屬性的區域值 (由相依性屬性的識別碼所指定)。Sets the local value of a dependency property, specified by its dependency property identifier.

(繼承來源 DependencyObject)
SetValue(DependencyPropertyKey, Object)

設定唯讀相依性屬性的區域數值 (由相依性屬性的 DependencyPropertyKey 識別項所指定)。Sets the local value of a read-only dependency property, specified by the DependencyPropertyKey identifier of the dependency property.

(繼承來源 DependencyObject)
ShouldApplyItemContainerStyle(DependencyObject, Object)

傳回值,這個值表示是否要從 ItemContainerStyleItemContainerStyleSelector 屬性將樣式套用至指定項目 (item) 的容器項目 (element)。Returns a value that indicates whether to apply the style from the ItemContainerStyle or ItemContainerStyleSelector property to the container element of the specified item.

(繼承來源 ItemsControl)
ShouldSerializeCommandBindings()

傳回序列化 (Serialization) 處理序是否應該在這個類別的執行個體上,將 CommandBindings 屬性的內容序列化。Returns whether serialization processes should serialize the contents of the CommandBindings property on instances of this class.

(繼承來源 UIElement)
ShouldSerializeGroupStyle()

傳回值,這個值表示序列化處理序是否應該將 GroupStyle 屬性的有效值序列化。Returns a value that indicates whether serialization processes should serialize the effective value of the GroupStyle property.

(繼承來源 ItemsControl)
ShouldSerializeInputBindings()

傳回序列化 (Serialization) 處理序是否應該在這個類別的執行個體上,將 InputBindings 屬性的內容序列化。Returns whether serialization processes should serialize the contents of the InputBindings property on instances of this class.

(繼承來源 UIElement)
ShouldSerializeItems()

傳回值,這個值表示序列化處理序是否應該將 Items 屬性的有效值序列化。Returns a value that indicates whether serialization processes should serialize the effective value of the Items property.

(繼承來源 ItemsControl)
ShouldSerializeProperty(DependencyProperty)

傳回值,這個值表示序列化程序是否應該序列化所提供相依性屬性的值。Returns a value that indicates whether serialization processes should serialize the value for the provided dependency property.

(繼承來源 DependencyObject)
ShouldSerializeResources()

傳回序列化 (Serialization) 處理序是否應該將 Resources 屬性的內容序列化。Returns whether serialization processes should serialize the contents of the Resources property.

(繼承來源 FrameworkElement)
ShouldSerializeStyle()

傳回序列化 (Serialization) 處理序是否應該將 Style 屬性的內容序列化。Returns whether serialization processes should serialize the contents of the Style property.

(繼承來源 FrameworkElement)
ShouldSerializeTriggers()

傳回序列化 (Serialization) 處理序是否應該將 Triggers 屬性的內容序列化。Returns whether serialization processes should serialize the contents of the Triggers property.

(繼承來源 FrameworkElement)
ToString()

提供 ItemsControl 物件的字串表示。Provides a string representation of the ItemsControl object.

(繼承來源 ItemsControl)
TransformToAncestor(Visual)

傳回轉換,這個轉換可用來將 Visual 的座標轉換為視覺物件的指定 Visual 祖系。Returns a transform that can be used to transform coordinates from the Visual to the specified Visual ancestor of the visual object.

(繼承來源 Visual)
TransformToAncestor(Visual3D)

傳回轉換,這個轉換可用來將 Visual 的座標轉換為視覺物件的指定 Visual3D 祖系。Returns a transform that can be used to transform coordinates from the Visual to the specified Visual3D ancestor of the visual object.

(繼承來源 Visual)
TransformToDescendant(Visual)

傳回轉換,這個轉換可用來將 Visual 的座標轉換為指定的視覺物件子系。Returns a transform that can be used to transform coordinates from the Visual to the specified visual object descendant.

(繼承來源 Visual)
TransformToVisual(Visual)

傳回轉換,這個轉換可用來將 Visual 的座標轉換為指定的視覺物件。Returns a transform that can be used to transform coordinates from the Visual to the specified visual object.

(繼承來源 Visual)
TranslatePoint(Point, UIElement)

將相對於這個項目的點轉換成相對於指定項目的座標。Translates a point relative to this element to coordinates that are relative to the specified element.

(繼承來源 UIElement)
TryFindResource(Object)

以指定的索引鍵搜尋資源;如果找到,則傳回該資源。Searches for a resource with the specified key, and returns that resource if found.

(繼承來源 FrameworkElement)
UnregisterName(String)

簡化對 NameScope 取消註冊方法的存取。Simplifies access to the NameScope de-registration method.

(繼承來源 FrameworkElement)
UnselectAll()

取消選取 MultiSelector 中的所有項目。Unselects all of the items in the MultiSelector.

(繼承來源 MultiSelector)
UnselectAllCells()

取消選取 DataGrid 中的所有儲存格。Unselects all the cells in the DataGrid.

UpdateDefaultStyle()

重新將預設樣式套用至目前 FrameworkElementReapplies the default style to the current FrameworkElement.

(繼承來源 FrameworkElement)
UpdateLayout()

確認這個項目的所有視覺化子項目都已正確為配置而更新。Ensures that all visual child elements of this element are properly updated for layout.

(繼承來源 UIElement)
VerifyAccess()

請強制執行可以存取這個 DispatcherObject 的呼叫執行緒。Enforces that the calling thread has access to this DispatcherObject.

(繼承來源 DispatcherObject)

事件

AddingNewItem

在新項目加入至 DataGrid 之前發生。Occurs before a new item is added to the DataGrid.

AutoGeneratedColumns

發生於完成自動產生所有資料行時。Occurs when auto generation of all columns is completed.

AutoGeneratingColumn

發生於自動產生個別資料行時。Occurs when an individual column is auto-generated.

BeginningEdit

在資料列或儲存格進入編輯模式之前發生。Occurs before a row or cell enters edit mode.

CellEditEnding

在認可或取消儲存格編輯之前發生。Occurs before a cell edit is committed or canceled.

ColumnDisplayIndexChanged

發生於其中一個資料行的 DisplayIndex 屬性變更時。Occurs when the DisplayIndex property on one of the columns changes.

ColumnHeaderDragCompleted

發生於使用者使用滑鼠拖曳資料行標題之後放開時。Occurs when the user releases a column header after dragging it by using the mouse.

ColumnHeaderDragDelta

發生於使用者拖曳資料行標題期間每次變更滑鼠位置時。Occurs every time the mouse position changes while the user drags a column header.

ColumnHeaderDragStarted

發生於使用者開始使用滑鼠拖曳資料行標題時。Occurs when the user begins dragging a column header by using the mouse.

ColumnReordered

發生於資料行移至顯示次序內的新位置時。Occurs when a column moves to a new position in the display order.

ColumnReordering

發生於資料行移至顯示次序內的新位置之前。Occurs before a column moves to a new position in the display order.

ContextMenuClosing

在項目上的任何內容功能表正要關閉之前發生。Occurs just before any context menu on the element is closed.

(繼承來源 FrameworkElement)
ContextMenuOpening

當項目上的任何內容功能表開啟時發生。Occurs when any context menu on the element is opened.

(繼承來源 FrameworkElement)
CopyingRowClipboardContent

發生於準備好預設資料列內容之後。Occurs after the default row content is prepared.

CurrentCellChanged

發生於 CurrentCell 屬性的值已變更時。Occurs when the value of the CurrentCell property has changed.

DataContextChanged

這個項目的資料內容變更時發生。Occurs when the data context for this element changes.

(繼承來源 FrameworkElement)
DragEnter

輸入系統報告其下以此項目作為拖曳目標的拖曳事件時發生。Occurs when the input system reports an underlying drag event with this element as the drag target.

(繼承來源 UIElement)
DragLeave

輸入系統報告其下以此項目作為拖曳來源的拖曳事件時發生。Occurs when the input system reports an underlying drag event with this element as the drag origin.

(繼承來源 UIElement)
DragOver

在輸入系統回報以此項目作為可能置放目標的基礎拖曳事件時發生。Occurs when the input system reports an underlying drag event with this element as the potential drop target.

(繼承來源 UIElement)
Drop

輸入系統報告其下以這個項目作為置放目標的置放事件時發生。Occurs when the input system reports an underlying drop event with this element as the drop target.

(繼承來源 UIElement)
FocusableChanged

發生於 Focusable 屬性的值變更時。Occurs when the value of the Focusable property changes.

(繼承來源 UIElement)
GiveFeedback

輸入系統報告其下牽涉此元素的拖放事件時發生。Occurs when the input system reports an underlying drag-and-drop event that involves this element.

(繼承來源 UIElement)
GotFocus

此元素取得邏輯焦點時發生。Occurs when this element gets logical focus.

(繼承來源 UIElement)
GotKeyboardFocus

鍵盤以此元素為焦點時發生。Occurs when the keyboard is focused on this element.

(繼承來源 UIElement)
GotMouseCapture

此元素擷取滑鼠時發生。Occurs when this element captures the mouse.

(繼承來源 UIElement)
GotStylusCapture

此元素擷取手寫筆時發生。Occurs when this element captures the stylus.

(繼承來源 UIElement)
GotTouchCapture

當觸控擷取至這個項目時發生。Occurs when a touch is captured to this element.

(繼承來源 UIElement)
Initialized

當這個 FrameworkElement 初始化時發生。Occurs when this FrameworkElement is initialized. 這個事件符合 IsInitialized 屬性值從 false (或未定義) 變更為 true 的案例。This event coincides with cases where the value of the IsInitialized property changes from false (or undefined) to true.

(繼承來源 FrameworkElement)
InitializingNewItem

發生於建立新項目時。Occurs when a new item is created.

IsEnabledChanged

當這個項目的 IsEnabled 屬性值變更時發生。Occurs when the value of the IsEnabled property on this element changes.

(繼承來源 UIElement)
IsHitTestVisibleChanged

當這個項目的 IsHitTestVisible 相依性屬性值變更時發生。Occurs when the value of the IsHitTestVisible dependency property changes on this element.

(繼承來源 UIElement)
IsKeyboardFocusedChanged

當這個項目的 IsKeyboardFocused 屬性值變更時發生。Occurs when the value of the IsKeyboardFocused property changes on this element.

(繼承來源 UIElement)
IsKeyboardFocusWithinChanged

當這個項目的 IsKeyboardFocusWithin 屬性值變更時發生。Occurs when the value of the IsKeyboardFocusWithin property changes on this element.

(繼承來源 UIElement)
IsMouseCapturedChanged

當這個項目的 IsMouseCaptured 屬性值變更時發生。Occurs when the value of the IsMouseCaptured property changes on this element.

(繼承來源 UIElement)
IsMouseCaptureWithinChanged

當這個項目的 IsMouseCaptureWithinProperty 值變更時發生。Occurs when the value of the IsMouseCaptureWithinProperty changes on this element.

(繼承來源 UIElement)
IsMouseDirectlyOverChanged

當這個項目的 IsMouseDirectlyOver 屬性值變更時發生。Occurs when the value of the IsMouseDirectlyOver property changes on this element.

(繼承來源 UIElement)
IsStylusCapturedChanged

當這個項目的 IsStylusCaptured 屬性值變更時發生。Occurs when the value of the IsStylusCaptured property changes on this element.

(繼承來源 UIElement)
IsStylusCaptureWithinChanged

當這個項目的 IsStylusCaptureWithin 屬性值變更時發生。Occurs when the value of the IsStylusCaptureWithin property changes on this element.

(繼承來源 UIElement)
IsStylusDirectlyOverChanged

當這個項目的 IsStylusDirectlyOver 屬性值變更時發生。Occurs when the value of the IsStylusDirectlyOver property changes on this element.

(繼承來源 UIElement)
IsVisibleChanged

當這個項目的 IsVisible 屬性值變更時發生。Occurs when the value of the IsVisible property changes on this element.

(繼承來源 UIElement)
KeyDown

焦點在這個項目上方且按下按鍵時發生。Occurs when a key is pressed while focus is on this element.

(繼承來源 UIElement)
KeyUp

焦點在這個項目上方且放開按鍵時發生。Occurs when a key is released while focus is on this element.

(繼承來源 UIElement)
LayoutUpdated

當目前 Dispatcher 的數個關聯視覺化項目的配置變更時發生。Occurs when the layout of the various visual elements associated with the current Dispatcher changes.

(繼承來源 UIElement)
Loaded

當項目已配置版面、呈現以及可以互動時發生。Occurs when the element is laid out, rendered, and ready for interaction.

(繼承來源 FrameworkElement)
LoadingRow

在具現化 (Instantiated) DataGridRow 之後發生,好讓您可以在使用它之前先加以自訂。Occurs after a DataGridRow is instantiated, so that you can customize it before it is used.

LoadingRowDetails

新資料列詳細資料範本套用至資料列時發生。Occurs when a new row details template is applied to a row.

LostFocus

此元素失去邏輯焦點時發生。Occurs when this element loses logical focus.

(繼承來源 UIElement)
LostKeyboardFocus

鍵盤不再以此項目為焦點時發生。Occurs when the keyboard is no longer focused on this element,.

(繼承來源 UIElement)
LostMouseCapture

此元素失去滑鼠擷取時發生。Occurs when this element loses mouse capture.

(繼承來源 UIElement)
LostStylusCapture

此元素失去手寫筆擷取時發生。Occurs when this element loses stylus capture.

(繼承來源 UIElement)
LostTouchCapture

當這個項目失去觸控擷取時發生。Occurs when this element loses a touch capture.

(繼承來源 UIElement)
ManipulationBoundaryFeedback

當操作遇到界限時發生。Occurs when the manipulation encounters a boundary.

(繼承來源 UIElement)
ManipulationCompleted

當對 UIElement 物件進行的操作和慣性完成時發生。Occurs when a manipulation and inertia on the UIElement object is complete.

(繼承來源 UIElement)
ManipulationDelta

輸入裝置在操作期間變更位置時發生。Occurs when the input device changes position during a manipulation.

(繼承來源 UIElement)
ManipulationInertiaStarting

當輸入裝置在操作期間失去和 UIElement 物件的通訊以及慣性開始時發生。Occurs when the input device loses contact with the UIElement object during a manipulation and inertia begins.

(繼承來源 UIElement)
ManipulationStarted

當輸入裝置開始對 UIElement 物件進行操作時發生。Occurs when an input device begins a manipulation on the UIElement object.

(繼承來源 UIElement)
ManipulationStarting

發生於第一次建立操作處理器時。Occurs when the manipulation processor is first created.

(繼承來源 UIElement)
MouseDoubleClick

發生於按兩下或更多下滑鼠按鈕時。Occurs when a mouse button is clicked two or more times.

(繼承來源 Control)
MouseDown

指標在此元素上方且按下任何滑鼠按鈕時發生。Occurs when any mouse button is pressed while the pointer is over this element.

(繼承來源 UIElement)
MouseEnter

滑鼠指標進入此元素的邊界時發生。Occurs when the mouse pointer enters the bounds of this element.

(繼承來源 UIElement)
MouseLeave

滑鼠指標離開此元素的邊界時發生。Occurs when the mouse pointer leaves the bounds of this element.

(繼承來源 UIElement)
MouseLeftButtonDown

滑鼠指標在此元素上方且按下滑鼠左按鈕時發生。Occurs when the left mouse button is pressed while the mouse pointer is over this element.

(繼承來源 UIElement)
MouseLeftButtonUp

滑鼠指標在此元素上方且放開滑鼠左按鈕時發生。Occurs when the left mouse button is released while the mouse pointer is over this element.

(繼承來源 UIElement)
MouseMove

滑鼠指標在此元素上方移動時發生。Occurs when the mouse pointer moves while over this element.

(繼承來源 UIElement)
MouseRightButtonDown

滑鼠指標在此元素上方且按下滑鼠右按鈕時發生。Occurs when the right mouse button is pressed while the mouse pointer is over this element.

(繼承來源 UIElement)
MouseRightButtonUp

滑鼠指標在此元素上方且放開滑鼠右按鈕時發生。Occurs when the right mouse button is released while the mouse pointer is over this element.

(繼承來源 UIElement)
MouseUp

在此元素上方放開任何滑鼠按鈕時發生。Occurs when any mouse button is released over this element.

(繼承來源 UIElement)
MouseWheel

滑鼠指標在此元素上方且使用者滾動滑鼠滾輪時發生。Occurs when the user rotates the mouse wheel while the mouse pointer is over this element.

(繼承來源 UIElement)
PreparingCellForEdit

發生於儲存格進入編輯模式時。Occurs when a cell enters edit mode.

PreviewDragEnter

輸入系統報告其下以此項目作為拖曳目標的拖曳事件時發生。Occurs when the input system reports an underlying drag event with this element as the drag target.

(繼承來源 UIElement)
PreviewDragLeave

輸入系統報告其下以此項目作為拖曳來源的拖曳事件時發生。Occurs when the input system reports an underlying drag event with this element as the drag origin.

(繼承來源 UIElement)
PreviewDragOver

在輸入系統回報以此項目作為可能置放目標的基礎拖曳事件時發生。Occurs when the input system reports an underlying drag event with this element as the potential drop target.

(繼承來源 UIElement)
PreviewDrop

輸入系統報告其下以這個項目作為置放目標的置放事件時發生。Occurs when the input system reports an underlying drop event with this element as the drop target.

(繼承來源 UIElement)
PreviewGiveFeedback

拖放操作開始時發生。Occurs when a drag-and-drop operation is started.

(繼承來源 UIElement)
PreviewGotKeyboardFocus

鍵盤以此元素為焦點時發生。Occurs when the keyboard is focused on this element.

(繼承來源 UIElement)
PreviewKeyDown

焦點在這個項目上方且按下按鍵時發生。Occurs when a key is pressed while focus is on this element.

(繼承來源 UIElement)
PreviewKeyUp

焦點在這個項目上方且放開按鍵時發生。Occurs when a key is released while focus is on this element.

(繼承來源 UIElement)
PreviewLostKeyboardFocus

鍵盤不再以此元素為焦點時發生。Occurs when the keyboard is no longer focused on this element.

(繼承來源 UIElement)
PreviewMouseDoubleClick

使用者按滑鼠按鈕超過兩下時發生。Occurs when a user clicks the mouse button two or more times.

(繼承來源 Control)
PreviewMouseDown

指標在此元素上方且按下任何滑鼠按鈕時發生。Occurs when any mouse button is pressed while the pointer is over this element.

(繼承來源 UIElement)
PreviewMouseLeftButtonDown

滑鼠指標在此元素上方且按下滑鼠左按鈕時發生。Occurs when the left mouse button is pressed while the mouse pointer is over this element.

(繼承來源 UIElement)
PreviewMouseLeftButtonUp

滑鼠指標在此元素上方且放開滑鼠左按鈕時發生。Occurs when the left mouse button is released while the mouse pointer is over this element.

(繼承來源 UIElement)
PreviewMouseMove

滑鼠指標在此元素上方且移動滑鼠指標時發生。Occurs when the mouse pointer moves while the mouse pointer is over this element.

(繼承來源 UIElement)
PreviewMouseRightButtonDown

滑鼠指標在此元素上方且按下滑鼠右按鈕時發生。Occurs when the right mouse button is pressed while the mouse pointer is over this element.

(繼承來源 UIElement)
PreviewMouseRightButtonUp

滑鼠指標在此元素上方且放開滑鼠右按鈕時發生。Occurs when the right mouse button is released while the mouse pointer is over this element.

(繼承來源 UIElement)
PreviewMouseUp

滑鼠指標在此元素上方且放開任何滑鼠按鈕時發生。Occurs when any mouse button is released while the mouse pointer is over this element.

(繼承來源 UIElement)
PreviewMouseWheel

滑鼠指標在此元素上方且使用者滾動滑鼠滾輪時發生。Occurs when the user rotates the mouse wheel while the mouse pointer is over this element.

(繼承來源 UIElement)
PreviewQueryContinueDrag

拖放操作期間,鍵盤或滑鼠按鈕狀態變更時發生。Occurs when there is a change in the keyboard or mouse button state during a drag-and-drop operation.

(繼承來源 UIElement)
PreviewStylusButtonDown

手寫筆指標在此元素上方且按下手寫筆按鈕時發生。Occurs when the stylus button is pressed while the pointer is over this element.

(繼承來源 UIElement)
PreviewStylusButtonUp

手寫筆指標在此元素上方且放開手寫筆按鈕時發生。Occurs when the stylus button is released while the pointer is over this element.

(繼承來源 UIElement)
PreviewStylusDown

手寫筆在此項目上方且碰觸數位板時發生。Occurs when the stylus touches the digitizer while it is over this element.

(繼承來源 UIElement)
PreviewStylusInAirMove

手寫筆在項目上方移動,但沒有真正碰觸數位板時發生。Occurs when the stylus moves over an element without actually touching the digitizer.

(繼承來源 UIElement)
PreviewStylusInRange

手寫筆在此項目上方,且夠靠近數位板而被偵測到時發生。Occurs when the stylus is close enough to the digitizer to be detected, while over this element.

(繼承來源 UIElement)
PreviewStylusMove

手寫筆在項目上方移動時發生。Occurs when the stylus moves while over the element. 手寫筆必須在受到數位板偵測時移動才能引發此事件,否則會改為引發 PreviewStylusInAirMoveThe stylus must move while being detected by the digitizer to raise this event, otherwise, PreviewStylusInAirMove is raised instead.

(繼承來源 UIElement)
PreviewStylusOutOfRange

手寫筆遠離數位板而無法被偵測到時發生。Occurs when the stylus is too far from the digitizer to be detected.

(繼承來源 UIElement)
PreviewStylusSystemGesture

使用者執行其中一種手寫筆筆勢時發生。Occurs when a user performs one of several stylus gestures.

(繼承來源 UIElement)
PreviewStylusUp

手寫筆在此項目上方,且使用者將手寫筆舉起離開數位板時發生。Occurs when the user raises the stylus off the digitizer while the stylus is over this element.

(繼承來源 UIElement)
PreviewTextInput

此元素以一種與裝置無關的方式取得文字時發生。Occurs when this element gets text in a device-independent manner.

(繼承來源 UIElement)
PreviewTouchDown

手指在這個項目上方且在螢幕上觸控時發生。Occurs when a finger touches the screen while the finger is over this element.

(繼承來源 UIElement)
PreviewTouchMove

手指在這個項目上方且在螢幕上移動時發生。Occurs when a finger moves on the screen while the finger is over this element.

(繼承來源 UIElement)
PreviewTouchUp

手指在這個項目上方且離開螢幕時發生。Occurs when a finger is raised off of the screen while the finger is over this element.

(繼承來源 UIElement)
QueryContinueDrag

拖放操作期間,鍵盤或滑鼠按鈕狀態變更時發生。Occurs when there is a change in the keyboard or mouse button state during a drag-and-drop operation.

(繼承來源 UIElement)
QueryCursor

要求顯示游標時發生。Occurs when the cursor is requested to display. 每當滑鼠指標移動至新位置時,都會引發此事件,這意謂游標物件可能會根據其新位置而變更。This event is raised on an element each time that the mouse pointer moves to a new location, which means the cursor object might need to be changed based on its new position.

(繼承來源 UIElement)
RequestBringIntoView

在這個項目上呼叫 BringIntoView(Rect) 時發生。Occurs when BringIntoView(Rect) is called on this element.

(繼承來源 FrameworkElement)
RowDetailsVisibilityChanged

資料列詳細資料項目的可視性變更時發生。Occurs when the visibility of a row details element changes.

RowEditEnding

在認可或取消資料列編輯之前發生。Occurs before a row edit is committed or canceled.

SelectedCellsChanged

發生於 SelectedCells 集合變更時。Occurs when the SelectedCells collection changes.

SelectionChanged

發生於 Selector 的選取範圍變更時。Occurs when the selection of a Selector changes.

(繼承來源 Selector)
SizeChanged

當這個項目的 ActualHeightActualWidth 屬性變更值時發生。Occurs when either the ActualHeight or the ActualWidth properties change value on this element.

(繼承來源 FrameworkElement)
Sorting

發生於正在排序資料行時。Occurs when a column is being sorted.

SourceUpdated

來源值因與此項目繫結的任何現有屬性變更時發生。Occurs when the source value changes for any existing property binding on this element.

(繼承來源 FrameworkElement)
StylusButtonDown

手寫筆指標在此元素上方且按下手寫筆按鈕時發生。Occurs when the stylus button is pressed while the pointer is over this element.

(繼承來源 UIElement)
StylusButtonUp

手寫筆指標在此元素上方且放開手寫筆按鈕時發生。Occurs when the stylus button is released while the pointer is over this element.

(繼承來源 UIElement)
StylusDown

手寫筆在此項目上方且碰觸數位板時發生。Occurs when the stylus touches the digitizer while the stylus is over this element.

(繼承來源 UIElement)
StylusEnter

手寫筆進入此元素的邊界時發生。Occurs when the stylus enters the bounds of this element.

(繼承來源 UIElement)
StylusInAirMove

手寫筆在項目上方移動,但沒有真正碰觸數位板時發生。Occurs when the stylus moves over an element without actually touching the digitizer.

(繼承來源 UIElement)
StylusInRange

手寫筆在此項目上方,且夠靠近數位板而被偵測到時發生。Occurs when the stylus is close enough to the digitizer to be detected, while over this element.

(繼承來源 UIElement)
StylusLeave

手寫筆離開元素的邊界時發生。Occurs when the stylus leaves the bounds of the element.

(繼承來源 UIElement)
StylusMove

當手寫筆移至此項目上方時發生。Occurs when the stylus moves over this element. 手寫筆在數位板上必須移動才會引發這個事件。The stylus must move while on the digitizer to raise this event. 否則,會改為引發 StylusInAirMoveOtherwise, StylusInAirMove is raised instead.

(繼承來源 UIElement)
StylusOutOfRange

手寫筆在此項目上方,且遠離數位板而無法被偵測到時發生。Occurs when the stylus is too far from the digitizer to be detected, while over this element.

(繼承來源 UIElement)
StylusSystemGesture

使用者執行其中一種手寫筆筆勢時發生。Occurs when a user performs one of several stylus gestures.

(繼承來源 UIElement)
StylusUp

手寫筆在此項目上方,且使用者將手寫筆舉起離開數位板時發生。Occurs when the user raises the stylus off the digitizer while it is over this element.

(繼承來源 UIElement)
TargetUpdated

這個項目上的任何屬性繫結的目標值變更時發生。Occurs when the target value changes for any property binding on this element.

(繼承來源 FrameworkElement)
TextInput

此元素以一種與裝置無關的方式取得文字時發生。Occurs when this element gets text in a device-independent manner.

(繼承來源 UIElement)
ToolTipClosing

在項目上的任何工具提示正要關閉之前發生。Occurs just before any tooltip on the element is closed.

(繼承來源 FrameworkElement)
ToolTipOpening

任何元素的工具提示開啟時發生。Occurs when any tooltip on the element is opened.

(繼承來源 FrameworkElement)
TouchDown

手指在這個項目上方且在螢幕上觸控時發生。Occurs when a finger touches the screen while the finger is over this element.

(繼承來源 UIElement)
TouchEnter

當觸控從這個項目的界限外部移至內部時發生。Occurs when a touch moves from outside to inside the bounds of this element.

(繼承來源 UIElement)
TouchLeave

當觸控從這個項目的界限內部移至外部時發生。Occurs when a touch moves from inside to outside the bounds of this element.

(繼承來源 UIElement)
TouchMove

手指在這個項目上方且在螢幕上移動時發生。Occurs when a finger moves on the screen while the finger is over this element.

(繼承來源 UIElement)
TouchUp

手指在這個項目上方且離開螢幕時發生。Occurs when a finger is raised off of the screen while the finger is over this element.

(繼承來源 UIElement)
Unloaded

當項目從已載入項目的項目樹狀結構中移除時發生。Occurs when the element is removed from within an element tree of loaded elements.

(繼承來源 FrameworkElement)
UnloadingRow

DataGridRow 物件可重複使用時發生。Occurs when a DataGridRow object becomes available for reuse.

UnloadingRowDetails

當資料列詳細資料項目可重複使用時發生。Occurs when a row details element becomes available for reuse.

明確介面實作

IAddChild.AddChild(Object)

這個成員支援 Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) 基礎結構,但是您不可以從程式碼直接使用它。This member supports the Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.

(繼承來源 ItemsControl)
IAddChild.AddText(String)

這個成員支援 Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) 基礎結構,但是您不可以從程式碼直接使用它。This member supports the Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.

(繼承來源 ItemsControl)
IContainItemStorage.Clear()

清除所有屬性關聯性。Clears all property associations.

(繼承來源 ItemsControl)
IContainItemStorage.ClearItemValue(Object, DependencyProperty)

移除指定項目和屬性之間的關聯性。Removes the association between the specified item and property.

(繼承來源 ItemsControl)
IContainItemStorage.ClearValue(DependencyProperty)

從所有屬性清單移除指定的屬性。Removes the specified property from all property lists.

(繼承來源 ItemsControl)
IContainItemStorage.ReadItemValue(Object, DependencyProperty)

傳回與指定的項目相關聯的指定的屬性其值。Returns the value of the specified property that is associated with the specified item.

(繼承來源 ItemsControl)
IContainItemStorage.StoreItemValue(Object, DependencyProperty, Object)

儲存指定的屬性和值,並建立它們與指定項目之間的關聯性。Stores the specified property and value and associates them with the specified item.

(繼承來源 ItemsControl)
IQueryAmbient.IsAmbientPropertyAvailable(String)

如需這個成員的描述,請參閱 IsAmbientPropertyAvailable(String) 方法。For a description of this member, see the IsAmbientPropertyAvailable(String) method.

(繼承來源 FrameworkElement)

適用於