Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Data / FilterEventArgs.cs / 1305600 / FilterEventArgs.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: Filter event arguments // // Specs: http://avalon/connecteddata/Specs/CollectionViewSource.mht // //--------------------------------------------------------------------------- using System; namespace System.Windows.Data { ////// Arguments for the Filter event. /// ////// public class FilterEventArgs : EventArgs { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- internal FilterEventArgs(object item) { _item = item; _accepted = true; } //------------------------------------------------------ // // Public Properties // //----------------------------------------------------- ///The event receiver should set Accepted to true if the item /// passes the filter, or false if it fails.
////// The object to be tested by the filter. /// public object Item { get { return _item; } } ////// The return value of the filter. /// public bool Accepted { get { return _accepted; } set { _accepted = value; } } //------------------------------------------------------ // // Private Fields // //------------------------------------------------------ private object _item; private bool _accepted; } ////// The delegate to use for handlers that receive FilterEventArgs. /// public delegate void FilterEventHandler(object sender, FilterEventArgs e); } // 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
- CommandSet.cs
- ToolStripOverflowButton.cs
- ArgumentsParser.cs
- WindowsAuthenticationEventArgs.cs
- SqlMetaData.cs
- SqlCharStream.cs
- FieldTemplateUserControl.cs
- StringArrayConverter.cs
- TextDecoration.cs
- XmlWellformedWriter.cs
- FileIOPermission.cs
- ChangeTracker.cs
- ToolboxComponentsCreatingEventArgs.cs
- SingleBodyParameterMessageFormatter.cs
- ApplicationBuildProvider.cs
- SystemWebExtensionsSectionGroup.cs
- MetadataPropertyCollection.cs
- GridViewDeletedEventArgs.cs
- ProxyWebPartManagerDesigner.cs
- AndCondition.cs
- TemplateParser.cs
- RoleService.cs
- SchemaCollectionCompiler.cs
- CodeLabeledStatement.cs
- PeerNearMe.cs
- HealthMonitoringSectionHelper.cs
- CharacterMetrics.cs
- MenuBindingsEditorForm.cs
- Pointer.cs
- WorkflowInstance.cs
- ParsedAttributeCollection.cs
- WindowsListBox.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- WindowsFormsHostPropertyMap.cs
- OutgoingWebResponseContext.cs
- WorkflowTerminatedException.cs
- DataColumnChangeEvent.cs
- MatrixAnimationUsingPath.cs
- ExpanderAutomationPeer.cs
- RunInstallerAttribute.cs
- PartitionResolver.cs
- DesignerAttribute.cs
- BindingCompleteEventArgs.cs
- ErrorsHelper.cs
- BehaviorEditorPart.cs
- COM2PropertyBuilderUITypeEditor.cs
- WaveHeader.cs
- XmlMtomReader.cs
- CheckoutException.cs
- UndoEngine.cs
- Filter.cs
- UniqueTransportManagerRegistration.cs
- CodeCompileUnit.cs
- InputLanguage.cs
- PrintEvent.cs
- StylusPointDescription.cs
- CommandDesigner.cs
- SelectManyQueryOperator.cs
- HttpRuntimeSection.cs
- Menu.cs
- SmtpNtlmAuthenticationModule.cs
- TimelineClockCollection.cs
- TokenBasedSet.cs
- MemoryMappedView.cs
- AsymmetricAlgorithm.cs
- securitycriticaldataformultiplegetandset.cs
- ClientOperationFormatterProvider.cs
- ListViewInsertedEventArgs.cs
- MSAAWinEventWrap.cs
- UnsafeNativeMethods.cs
- TextViewSelectionProcessor.cs
- DateTimeStorage.cs
- UIPropertyMetadata.cs
- MtomMessageEncoder.cs
- HierarchicalDataBoundControlAdapter.cs
- LogReservationCollection.cs
- documentsequencetextview.cs
- HyperlinkAutomationPeer.cs
- FontResourceCache.cs
- GeneralTransform3DTo2D.cs
- PageCodeDomTreeGenerator.cs
- EffectiveValueEntry.cs
- ControlParameter.cs
- ExpressionVisitorHelpers.cs
- WeakReference.cs
- HtmlUtf8RawTextWriter.cs
- ToolStripSeparator.cs
- _SslSessionsCache.cs
- QuotedPrintableStream.cs
- ReflectionUtil.cs
- Track.cs
- TrustLevelCollection.cs
- EncryptedData.cs
- SizeF.cs
- WpfWebRequestHelper.cs
- RelatedEnd.cs
- COAUTHINFO.cs
- TimeSpanSecondsConverter.cs
- UnaryExpression.cs
- Run.cs