Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Framework / System / Windows / Data / FilterEventArgs.cs / 1 / 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. //---------------------------------------------------------------------------- // //// 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
- CompiledQueryCacheEntry.cs
- _Rfc2616CacheValidators.cs
- WebScriptMetadataMessageEncodingBindingElement.cs
- RoutedCommand.cs
- MediaTimeline.cs
- ChannelSinkStacks.cs
- SchemeSettingElementCollection.cs
- SelectingProviderEventArgs.cs
- ConnectionPoint.cs
- CodeCastExpression.cs
- DesignSurfaceServiceContainer.cs
- TerminatorSinks.cs
- unsafeIndexingFilterStream.cs
- GeneralTransform3DCollection.cs
- RelatedImageListAttribute.cs
- WebPartDisplayModeCancelEventArgs.cs
- SqlFunctionAttribute.cs
- SrgsDocumentParser.cs
- versioninfo.cs
- IconConverter.cs
- Animatable.cs
- ReflectionTypeLoadException.cs
- _SafeNetHandles.cs
- VisualCollection.cs
- EditingCoordinator.cs
- CodeSubDirectory.cs
- ListParaClient.cs
- ObjectDataSourceView.cs
- dataprotectionpermission.cs
- CellCreator.cs
- SerializableAttribute.cs
- FragmentNavigationEventArgs.cs
- ServiceDescriptionData.cs
- XmlQueryOutput.cs
- ClrPerspective.cs
- DelegateSerializationHolder.cs
- SecurityTokenInclusionMode.cs
- XPathSelfQuery.cs
- FixedSOMLineCollection.cs
- CodeObject.cs
- Point3DCollection.cs
- __Filters.cs
- KeyedHashAlgorithm.cs
- DiscoveryClientProtocol.cs
- ImpersonationContext.cs
- CodeRegionDirective.cs
- VersionValidator.cs
- DataGridViewCell.cs
- ViewSimplifier.cs
- SessionSwitchEventArgs.cs
- LoginName.cs
- Tile.cs
- TraceLevelStore.cs
- ToolboxDataAttribute.cs
- SubclassTypeValidatorAttribute.cs
- VerificationAttribute.cs
- ContextMenu.cs
- UseLicense.cs
- ImagingCache.cs
- XpsSerializationException.cs
- ProcessActivityTreeOptions.cs
- KeyFrames.cs
- CodeTryCatchFinallyStatement.cs
- HtmlTitle.cs
- httpserverutility.cs
- OdbcEnvironmentHandle.cs
- DoubleCollectionValueSerializer.cs
- ByteConverter.cs
- ByteStreamGeometryContext.cs
- ToggleButton.cs
- BrowserDefinitionCollection.cs
- CleanUpVirtualizedItemEventArgs.cs
- PropertyGrid.cs
- AppDomain.cs
- Selection.cs
- DesignColumnCollection.cs
- PixelShader.cs
- DelegatedStream.cs
- SettingsPropertyValue.cs
- DataGridViewCellEventArgs.cs
- Rotation3DAnimation.cs
- ReadOnlyMetadataCollection.cs
- PropertyDescriptorCollection.cs
- SrgsNameValueTag.cs
- XmlUTF8TextWriter.cs
- FileCodeGroup.cs
- PropertyContainer.cs
- SafeArrayRankMismatchException.cs
- Tablet.cs
- Ray3DHitTestResult.cs
- EdmConstants.cs
- LifetimeServices.cs
- AssemblyCache.cs
- SurrogateEncoder.cs
- HttpRawResponse.cs
- TraceInternal.cs
- ProtocolsConfiguration.cs
- ComponentRenameEvent.cs
- DocumentPage.cs
- PageCatalogPart.cs