Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------------- // //// 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
- AutomationElementCollection.cs
- SettingsSection.cs
- ListBindingHelper.cs
- TableSectionStyle.cs
- HttpRequest.cs
- DataRelationCollection.cs
- ToolStripItemDataObject.cs
- UIElement.cs
- ListViewContainer.cs
- MetaColumn.cs
- EdmFunction.cs
- DES.cs
- ScriptBehaviorDescriptor.cs
- Material.cs
- AuthorizationRuleCollection.cs
- Point.cs
- WrappedIUnknown.cs
- GatewayIPAddressInformationCollection.cs
- ServiceRoute.cs
- BitSet.cs
- DBConcurrencyException.cs
- FlowDecision.cs
- ContainerUIElement3D.cs
- XmlSchemaSimpleContent.cs
- XmlILTrace.cs
- AsyncDataRequest.cs
- XmlSchemaAnnotated.cs
- TransportationConfigurationTypeInstallComponent.cs
- XPathNodeInfoAtom.cs
- StreamAsIStream.cs
- EngineSiteSapi.cs
- fixedPageContentExtractor.cs
- Run.cs
- FloaterParaClient.cs
- WSIdentityFaultException.cs
- GridViewEditEventArgs.cs
- RequestResizeEvent.cs
- Command.cs
- NamespaceCollection.cs
- SafeArrayTypeMismatchException.cs
- EventHandlingScope.cs
- FunctionQuery.cs
- DbConnectionPoolIdentity.cs
- MimeTypePropertyAttribute.cs
- XmlNodeReader.cs
- ThrowHelper.cs
- PersistStreamTypeWrapper.cs
- EmptyQuery.cs
- typedescriptorpermission.cs
- SoapTypeAttribute.cs
- HttpProfileGroupBase.cs
- DataGridViewCellStateChangedEventArgs.cs
- TextBox.cs
- UniqueEventHelper.cs
- FirstMatchCodeGroup.cs
- Fonts.cs
- PropertyMetadata.cs
- TagMapInfo.cs
- Attachment.cs
- CodeTypeParameter.cs
- DataServiceRequestOfT.cs
- TextElementEnumerator.cs
- HttpModuleAction.cs
- RuleSetDialog.cs
- DataPagerFieldCollection.cs
- XPathNavigatorKeyComparer.cs
- SapiInterop.cs
- MsmqProcessProtocolHandler.cs
- Point3DKeyFrameCollection.cs
- PolyBezierSegment.cs
- PropertyGroupDescription.cs
- HttpWebRequestElement.cs
- SerTrace.cs
- XhtmlMobileTextWriter.cs
- OneOf.cs
- LogAppendAsyncResult.cs
- WebPartAuthorizationEventArgs.cs
- AutoResizedEvent.cs
- DataGridViewRowConverter.cs
- MILUtilities.cs
- TextRangeProviderWrapper.cs
- AlphaSortedEnumConverter.cs
- AnnotationHelper.cs
- DataObject.cs
- ScopelessEnumAttribute.cs
- DataSourceControl.cs
- RotateTransform3D.cs
- FileLevelControlBuilderAttribute.cs
- AssemblySettingAttributes.cs
- EllipseGeometry.cs
- SqlColumnizer.cs
- IsolationInterop.cs
- ControlBuilder.cs
- PageScaling.cs
- Panel.cs
- CatalogPartChrome.cs
- ColumnTypeConverter.cs
- BlurEffect.cs
- CodeTypeReferenceCollection.cs
- ExclusiveTcpListener.cs