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
- CollectionContainer.cs
- SqlUdtInfo.cs
- TextServicesManager.cs
- ProcessRequestArgs.cs
- PageParserFilter.cs
- PlanCompilerUtil.cs
- ExeConfigurationFileMap.cs
- DataRecordInternal.cs
- ApplicationContext.cs
- SqlLiftWhereClauses.cs
- XmlSerializationWriter.cs
- XPathDocument.cs
- DocumentStream.cs
- DeferredReference.cs
- DataServiceProviderWrapper.cs
- UInt16Converter.cs
- PrintController.cs
- SqlMethods.cs
- BigInt.cs
- InputProcessorProfiles.cs
- DesignerCommandAdapter.cs
- CustomCategoryAttribute.cs
- SecurityHeaderLayout.cs
- EUCJPEncoding.cs
- ObjectReaderCompiler.cs
- UserPreferenceChangingEventArgs.cs
- InstanceView.cs
- XmlEnumAttribute.cs
- EntityType.cs
- Binding.cs
- WinFormsComponentEditor.cs
- XdrBuilder.cs
- HttpHandlersSection.cs
- MustUnderstandBehavior.cs
- util.cs
- DefaultSection.cs
- ToolStripItemCollection.cs
- GlyphTypeface.cs
- MimeBasePart.cs
- PropertyChangedEventManager.cs
- SmiTypedGetterSetter.cs
- AnchoredBlock.cs
- Facet.cs
- BrowsableAttribute.cs
- CollaborationHelperFunctions.cs
- GeneralTransform2DTo3D.cs
- WebBrowser.cs
- RegexWorker.cs
- Trace.cs
- ParameterElementCollection.cs
- WebBrowsableAttribute.cs
- StorageSetMapping.cs
- ProtocolsSection.cs
- InputProcessorProfilesLoader.cs
- Wizard.cs
- LowerCaseStringConverter.cs
- WeakReference.cs
- OracleNumber.cs
- MessageDesigner.cs
- DataRelationCollection.cs
- QueryRewriter.cs
- SecurityDocument.cs
- ReachSerializableProperties.cs
- PropertyMapper.cs
- UrlPath.cs
- ReadOnlyDataSourceView.cs
- FontUnitConverter.cs
- ReverseInheritProperty.cs
- PeerIPHelper.cs
- StopRoutingHandler.cs
- TextBox.cs
- Stack.cs
- XmlnsDictionary.cs
- RelationshipEnd.cs
- RestHandlerFactory.cs
- RemoteWebConfigurationHost.cs
- FactoryMaker.cs
- ProfilePropertySettingsCollection.cs
- SqlDataSourceStatusEventArgs.cs
- TreeBuilderXamlTranslator.cs
- WebEventCodes.cs
- StringToken.cs
- EncodingTable.cs
- WorkflowTimerService.cs
- OutputScope.cs
- InternalConfigEventArgs.cs
- Control.cs
- sqlnorm.cs
- XPathCompiler.cs
- AsyncPostBackErrorEventArgs.cs
- Schema.cs
- EditorOptionAttribute.cs
- Evidence.cs
- TextDecorationLocationValidation.cs
- ScriptServiceAttribute.cs
- SystemException.cs
- QueueSurrogate.cs
- ValueQuery.cs
- KeyNotFoundException.cs
- TCPClient.cs