Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- HighlightVisual.cs
- StateMachine.cs
- XamlPointCollectionSerializer.cs
- MultiPartWriter.cs
- ArrangedElement.cs
- KnownTypesProvider.cs
- TextDecoration.cs
- Models.cs
- Calendar.cs
- EntityType.cs
- HtmlEncodedRawTextWriter.cs
- WindowsSysHeader.cs
- MachineKeyConverter.cs
- AddInAttribute.cs
- DateTimeConverter.cs
- SmtpAuthenticationManager.cs
- ToolStripProgressBar.cs
- WebPermission.cs
- dataobject.cs
- MulticastDelegate.cs
- InstanceContextMode.cs
- SystemIPv6InterfaceProperties.cs
- SiteMapNodeItem.cs
- NoneExcludedImageIndexConverter.cs
- PropertyPushdownHelper.cs
- PrintEvent.cs
- ExtenderProvidedPropertyAttribute.cs
- RenderingBiasValidation.cs
- GZipStream.cs
- ModuleBuilderData.cs
- IdnMapping.cs
- ChannelServices.cs
- RootBuilder.cs
- InvalidOperationException.cs
- ConnectorDragDropGlyph.cs
- ChangeTracker.cs
- ConfigurationPropertyAttribute.cs
- TreeNodeConverter.cs
- TreeView.cs
- OleDbStruct.cs
- WorkflowRuntimeSection.cs
- ObjectDataSourceEventArgs.cs
- SemanticBasicElement.cs
- MimeMapping.cs
- XmlSchemaImport.cs
- LogReserveAndAppendState.cs
- XmlSerializableWriter.cs
- HtmlImageAdapter.cs
- SqlConnectionString.cs
- SingleResultAttribute.cs
- GestureRecognitionResult.cs
- XmlBinaryReaderSession.cs
- AutomationEvent.cs
- AnnotationResourceChangedEventArgs.cs
- ArgumentsParser.cs
- EmptyEnumerable.cs
- baseaxisquery.cs
- SystemColors.cs
- RawUIStateInputReport.cs
- XmlSchemaExternal.cs
- StringArrayConverter.cs
- XmlAttributeCache.cs
- CrossContextChannel.cs
- WebPartEditorApplyVerb.cs
- VBCodeProvider.cs
- FormViewInsertedEventArgs.cs
- RuntimeCompatibilityAttribute.cs
- SequenceNumber.cs
- DetailsViewDeleteEventArgs.cs
- PropertyDescriptorGridEntry.cs
- UserValidatedEventArgs.cs
- WebPartUserCapability.cs
- SettingsProviderCollection.cs
- RubberbandSelector.cs
- PersonalizationState.cs
- ExcCanonicalXml.cs
- PageParser.cs
- RsaKeyGen.cs
- DateTimeFormatInfo.cs
- BindingCompleteEventArgs.cs
- PenThreadPool.cs
- ErrorHandler.cs
- AlternateViewCollection.cs
- XmlWrappingReader.cs
- ApplicationSecurityManager.cs
- OdbcEnvironment.cs
- SoapAttributeOverrides.cs
- ISAPIApplicationHost.cs
- GuidelineCollection.cs
- ControlBuilder.cs
- SynchronizingStream.cs
- EdmComplexPropertyAttribute.cs
- KeyValueConfigurationElement.cs
- AuthenticationService.cs
- TextRunTypographyProperties.cs
- Point.cs
- MutexSecurity.cs
- TableLayout.cs
- SerializationEventsCache.cs
- PropertyMapper.cs