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
- LayoutManager.cs
- MouseGestureConverter.cs
- ElementUtil.cs
- Trigger.cs
- querybuilder.cs
- WebException.cs
- FontSourceCollection.cs
- StringFormat.cs
- ManagementDateTime.cs
- WS2007FederationHttpBinding.cs
- QuotedStringWriteStateInfo.cs
- Privilege.cs
- AttachedPropertyBrowsableAttribute.cs
- HttpBufferlessInputStream.cs
- XmlTextAttribute.cs
- ValidationErrorCollection.cs
- DataExpression.cs
- Gdiplus.cs
- WebControl.cs
- XmlSerializerVersionAttribute.cs
- TextStore.cs
- UriTemplateEquivalenceComparer.cs
- SQLDateTime.cs
- MetadataItemEmitter.cs
- WebSysDisplayNameAttribute.cs
- NameNode.cs
- DispatchChannelSink.cs
- Helpers.cs
- Crc32.cs
- XhtmlBasicTextViewAdapter.cs
- CompilerGlobalScopeAttribute.cs
- TextStore.cs
- IQueryable.cs
- GetWinFXPath.cs
- DesignConnectionCollection.cs
- DataError.cs
- XsltException.cs
- RSACryptoServiceProvider.cs
- DesignerVerbCollection.cs
- sitestring.cs
- PageContentCollection.cs
- TextRangeEditLists.cs
- DbConnectionStringCommon.cs
- NumericUpDownAccelerationCollection.cs
- OracleParameterCollection.cs
- InvalidMessageContractException.cs
- ApplicationTrust.cs
- VerificationException.cs
- KnownTypesProvider.cs
- WinFormsSpinner.cs
- TextShapeableCharacters.cs
- ToolStripDropDownItem.cs
- SponsorHelper.cs
- TokenCreationParameter.cs
- WebContext.cs
- InertiaExpansionBehavior.cs
- HttpPostClientProtocol.cs
- ContainerUtilities.cs
- DCSafeHandle.cs
- _LocalDataStoreMgr.cs
- WebScriptMetadataFormatter.cs
- CoreSwitches.cs
- ScaleTransform.cs
- InputChannelBinder.cs
- InputLanguageCollection.cs
- Blend.cs
- CodeParameterDeclarationExpression.cs
- DataGridViewRowEventArgs.cs
- TextLineResult.cs
- GeneralTransformGroup.cs
- Solver.cs
- RectangleConverter.cs
- BrowserDefinitionCollection.cs
- StringComparer.cs
- AtomServiceDocumentSerializer.cs
- RangeValuePattern.cs
- EventHandlingScope.cs
- XmlWrappingWriter.cs
- LinearKeyFrames.cs
- ToolStripSeparatorRenderEventArgs.cs
- basecomparevalidator.cs
- SqlCaseSimplifier.cs
- SqlTypesSchemaImporter.cs
- DownloadProgressEventArgs.cs
- ObjectViewFactory.cs
- BoundingRectTracker.cs
- XmlNavigatorFilter.cs
- DataObjectMethodAttribute.cs
- PrincipalPermission.cs
- PublisherIdentityPermission.cs
- ClientSettingsStore.cs
- FacetEnabledSchemaElement.cs
- OdbcErrorCollection.cs
- SoapAttributeAttribute.cs
- SelectionHighlightInfo.cs
- BookmarkEventArgs.cs
- SafeNativeMethods.cs
- WebPartConnectionsEventArgs.cs
- StringValueSerializer.cs
- CodeDefaultValueExpression.cs