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
- OdbcConnection.cs
- ApplicationManager.cs
- StyleConverter.cs
- ResourceKey.cs
- TdsParserStateObject.cs
- RequestCacheValidator.cs
- SqlBulkCopyColumnMappingCollection.cs
- PropertyChangingEventArgs.cs
- FigureParaClient.cs
- XmlText.cs
- CustomLineCap.cs
- ConfigPathUtility.cs
- TextSelectionProcessor.cs
- CounterSample.cs
- DictionaryMarkupSerializer.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- SessionSwitchEventArgs.cs
- DataListItem.cs
- IsolatedStoragePermission.cs
- RadioButtonList.cs
- SmtpNetworkElement.cs
- TextBox.cs
- CssStyleCollection.cs
- TextTreeText.cs
- UpdatePanelTrigger.cs
- InputMethodStateTypeInfo.cs
- DataRow.cs
- RoleGroup.cs
- DesignerVerb.cs
- QuaternionAnimation.cs
- OuterProxyWrapper.cs
- QueryOutputWriter.cs
- QueryAccessibilityHelpEvent.cs
- DataMisalignedException.cs
- UIElement3DAutomationPeer.cs
- XmlSignatureManifest.cs
- HttpException.cs
- CryptoHandle.cs
- DesignerSerializationVisibilityAttribute.cs
- MatrixStack.cs
- InputMethodStateChangeEventArgs.cs
- DtrList.cs
- DataGridViewToolTip.cs
- DocumentViewerHelper.cs
- ReferencedAssembly.cs
- KnownIds.cs
- TraceData.cs
- ReliableSessionBindingElementImporter.cs
- WindowsGraphicsWrapper.cs
- Enlistment.cs
- HandleCollector.cs
- PathSegmentCollection.cs
- ClearTypeHintValidation.cs
- ResXFileRef.cs
- PropertyItemInternal.cs
- ModelTreeManager.cs
- ConnectionPoint.cs
- CacheSection.cs
- ValidationPropertyAttribute.cs
- ReliabilityContractAttribute.cs
- SqlDataSourceCustomCommandPanel.cs
- HyperLinkField.cs
- GridToolTip.cs
- LayoutExceptionEventArgs.cs
- ToolStripMenuItemDesigner.cs
- XmlResolver.cs
- Part.cs
- OperandQuery.cs
- UidPropertyAttribute.cs
- TraceListener.cs
- MembershipValidatePasswordEventArgs.cs
- Label.cs
- EditingScope.cs
- AssemblyBuilder.cs
- SrgsDocument.cs
- DesignerActionGlyph.cs
- TraceRecords.cs
- IntegerValidatorAttribute.cs
- CategoryState.cs
- XmlStreamStore.cs
- XmlDocumentType.cs
- StateWorkerRequest.cs
- XmlNullResolver.cs
- PersonalizationAdministration.cs
- ByteStreamMessageEncoder.cs
- hresults.cs
- ParseNumbers.cs
- SpeechEvent.cs
- ListDictionaryInternal.cs
- WebEventCodes.cs
- SQLConvert.cs
- Oid.cs
- StateMachineSubscription.cs
- CallbackHandler.cs
- LocalFileSettingsProvider.cs
- FixedHyperLink.cs
- LocalizeDesigner.cs
- COM2ExtendedTypeConverter.cs
- GiveFeedbackEvent.cs
- MetadataItem_Static.cs