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
- Trace.cs
- ObjectDisposedException.cs
- Column.cs
- LinkConverter.cs
- ExpressionHelper.cs
- ComMethodElement.cs
- COM2ExtendedTypeConverter.cs
- ParallelEnumerable.cs
- SharedStatics.cs
- ResourceIDHelper.cs
- SimpleLine.cs
- ImplicitInputBrush.cs
- DataSourceCacheDurationConverter.cs
- HitTestDrawingContextWalker.cs
- QilStrConcat.cs
- ListItem.cs
- PointAnimationUsingPath.cs
- DiagnosticsConfiguration.cs
- DateTimeFormatInfo.cs
- Canvas.cs
- FormattedTextSymbols.cs
- WorkflowElementDialog.cs
- ModuleBuilderData.cs
- SortDescription.cs
- recordstatescratchpad.cs
- XPathNodeInfoAtom.cs
- QueryParameter.cs
- InkCanvas.cs
- ServerIdentity.cs
- RelationshipDetailsCollection.cs
- COM2ExtendedBrowsingHandler.cs
- MonikerBuilder.cs
- WebServiceTypeData.cs
- TextSelectionProcessor.cs
- RelatedEnd.cs
- SessionPageStateSection.cs
- Container.cs
- BreakRecordTable.cs
- OraclePermissionAttribute.cs
- PolicyStatement.cs
- GC.cs
- CheckBox.cs
- TextParentUndoUnit.cs
- HtmlObjectListAdapter.cs
- ComponentConverter.cs
- TypefaceMetricsCache.cs
- DrawingContextWalker.cs
- UdpReplyToBehavior.cs
- SerTrace.cs
- MonthChangedEventArgs.cs
- ArgumentOutOfRangeException.cs
- SQLInt64Storage.cs
- EditorPart.cs
- GroupItem.cs
- SmtpNegotiateAuthenticationModule.cs
- ObjectRef.cs
- MenuEventArgs.cs
- OdbcConnectionStringbuilder.cs
- CodeThrowExceptionStatement.cs
- MonthChangedEventArgs.cs
- AdministrationHelpers.cs
- SvcMapFileSerializer.cs
- ReadOnlyDataSourceView.cs
- Double.cs
- NumericUpDownAccelerationCollection.cs
- FontStretches.cs
- GenerateScriptTypeAttribute.cs
- Guid.cs
- PathData.cs
- FontInfo.cs
- ArrangedElementCollection.cs
- SafeProcessHandle.cs
- TextDpi.cs
- TouchesOverProperty.cs
- ComponentEditorPage.cs
- TextHintingModeValidation.cs
- WinHttpWebProxyFinder.cs
- CompModSwitches.cs
- RuntimeEnvironment.cs
- RtfFormatStack.cs
- Propagator.Evaluator.cs
- MulticastOption.cs
- EditorZone.cs
- LinqToSqlWrapper.cs
- SQLDouble.cs
- SoapSchemaMember.cs
- ReliableSessionElement.cs
- XmlUtil.cs
- AttributeXamlType.cs
- COM2PictureConverter.cs
- BackStopAuthenticationModule.cs
- TemplateParser.cs
- HintTextConverter.cs
- PathGradientBrush.cs
- SeekableReadStream.cs
- RadioButtonStandardAdapter.cs
- Rule.cs
- OrderPreservingPipeliningMergeHelper.cs
- XmlTextEncoder.cs
- DTCTransactionManager.cs