Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Controls / DataGridCellEditEndingEventArgs.cs / 1305600 / DataGridCellEditEndingEventArgs.cs
//---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System; using System.Windows; using System.Windows.Input; namespace System.Windows.Controls { ////// Provides information just before a cell exits edit mode. /// public class DataGridCellEditEndingEventArgs : EventArgs { ////// Instantiates a new instance of this class. /// /// The column of the cell that is about to exit edit mode. /// The row container of the cell container that is about to exit edit mode. /// The editing element within the cell. /// The editing unit that is about to leave edit mode. public DataGridCellEditEndingEventArgs(DataGridColumn column, DataGridRow row, FrameworkElement editingElement, DataGridEditAction editAction) { _dataGridColumn = column; _dataGridRow = row; _editingElement = editingElement; _editAction = editAction; } ////// When true, prevents the cell from exiting edit mode. /// public bool Cancel { get { return _cancel; } set { _cancel = value; } } ////// The column of the cell that is about to exit edit mode. /// public DataGridColumn Column { get { return _dataGridColumn; } } ////// The row container of the cell container that is about to exit edit mode. /// public DataGridRow Row { get { return _dataGridRow; } } ////// The editing element within the cell. /// public FrameworkElement EditingElement { get { return _editingElement; } } ////// The edit action when leave edit mode. /// public DataGridEditAction EditAction { get { return _editAction; } } private bool _cancel; private DataGridColumn _dataGridColumn; private DataGridRow _dataGridRow; private FrameworkElement _editingElement; private DataGridEditAction _editAction; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System; using System.Windows; using System.Windows.Input; namespace System.Windows.Controls { ////// Provides information just before a cell exits edit mode. /// public class DataGridCellEditEndingEventArgs : EventArgs { ////// Instantiates a new instance of this class. /// /// The column of the cell that is about to exit edit mode. /// The row container of the cell container that is about to exit edit mode. /// The editing element within the cell. /// The editing unit that is about to leave edit mode. public DataGridCellEditEndingEventArgs(DataGridColumn column, DataGridRow row, FrameworkElement editingElement, DataGridEditAction editAction) { _dataGridColumn = column; _dataGridRow = row; _editingElement = editingElement; _editAction = editAction; } ////// When true, prevents the cell from exiting edit mode. /// public bool Cancel { get { return _cancel; } set { _cancel = value; } } ////// The column of the cell that is about to exit edit mode. /// public DataGridColumn Column { get { return _dataGridColumn; } } ////// The row container of the cell container that is about to exit edit mode. /// public DataGridRow Row { get { return _dataGridRow; } } ////// The editing element within the cell. /// public FrameworkElement EditingElement { get { return _editingElement; } } ////// The edit action when leave edit mode. /// public DataGridEditAction EditAction { get { return _editAction; } } private bool _cancel; private DataGridColumn _dataGridColumn; private DataGridRow _dataGridRow; private FrameworkElement _editingElement; private DataGridEditAction _editAction; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StylusSystemGestureEventArgs.cs
- XmlValueConverter.cs
- GroupLabel.cs
- ListViewGroupItemCollection.cs
- PeerEndPoint.cs
- NetworkInformationException.cs
- MDIWindowDialog.cs
- ComponentCache.cs
- ExpressionVisitor.cs
- SerializerDescriptor.cs
- ImageListStreamer.cs
- LockCookie.cs
- prefixendpointaddressmessagefilter.cs
- XmlNodeChangedEventArgs.cs
- DataTableMappingCollection.cs
- _DigestClient.cs
- Command.cs
- DbConnectionStringCommon.cs
- SynchronizedDisposablePool.cs
- OleDbError.cs
- ControlAdapter.cs
- SizeChangedInfo.cs
- XmlC14NWriter.cs
- Fonts.cs
- BaseAddressElementCollection.cs
- Sql8ExpressionRewriter.cs
- BitmapEffectDrawingContextState.cs
- DbConnectionFactory.cs
- ConditionBrowserDialog.cs
- ArrayConverter.cs
- WebPartEditorOkVerb.cs
- FactoryGenerator.cs
- Win32SafeHandles.cs
- Light.cs
- LoadMessageLogger.cs
- ResourceDefaultValueAttribute.cs
- TraceFilter.cs
- IDataContractSurrogate.cs
- TypefaceMetricsCache.cs
- PbrsForward.cs
- HealthMonitoringSection.cs
- XhtmlTextWriter.cs
- AssemblyHash.cs
- TdsParserSessionPool.cs
- QilValidationVisitor.cs
- SmiRequestExecutor.cs
- MediaTimeline.cs
- TransformerConfigurationWizardBase.cs
- HitTestWithPointDrawingContextWalker.cs
- LessThan.cs
- dsa.cs
- WindowsIPAddress.cs
- X509UI.cs
- TdsParserSessionPool.cs
- HttpRawResponse.cs
- Fonts.cs
- ItemType.cs
- DefaultBinder.cs
- DBParameter.cs
- XamlReaderHelper.cs
- EdmRelationshipRoleAttribute.cs
- SqlSupersetValidator.cs
- ValidateNames.cs
- DynamicMethod.cs
- TreeBuilderXamlTranslator.cs
- NominalTypeEliminator.cs
- ToolStripManager.cs
- CharacterString.cs
- MetadataProperty.cs
- ScriptingRoleServiceSection.cs
- XmlNamespaceMappingCollection.cs
- ASCIIEncoding.cs
- mda.cs
- ContextProperty.cs
- PartialClassGenerationTaskInternal.cs
- ResizeGrip.cs
- _ChunkParse.cs
- XslException.cs
- InlineUIContainer.cs
- IsolatedStorageFilePermission.cs
- DataGridSortCommandEventArgs.cs
- PropertyFilter.cs
- SafeLibraryHandle.cs
- WebPartMinimizeVerb.cs
- Condition.cs
- HttpListenerPrefixCollection.cs
- MenuTracker.cs
- InputLanguageSource.cs
- ColumnCollection.cs
- LabelLiteral.cs
- SynthesizerStateChangedEventArgs.cs
- BehaviorEditorPart.cs
- DataControlFieldCollection.cs
- ReferentialConstraint.cs
- CompleteWizardStep.cs
- RegistryPermission.cs
- InstanceDataCollection.cs
- ButtonColumn.cs
- RevocationPoint.cs
- ParameterReplacerVisitor.cs