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
- RunClient.cs
- XPathItem.cs
- Utils.cs
- ReflectionTypeLoadException.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- Image.cs
- WindowsSlider.cs
- JsonReader.cs
- QilName.cs
- RepeaterCommandEventArgs.cs
- SubMenuStyle.cs
- GridViewRowPresenter.cs
- DataGridViewAccessibleObject.cs
- StylusEditingBehavior.cs
- ServiceModelEnumValidatorAttribute.cs
- XmlDigitalSignatureProcessor.cs
- mda.cs
- IgnoreDataMemberAttribute.cs
- CriticalExceptions.cs
- UnsafeNativeMethods.cs
- ListItemCollection.cs
- AssertSection.cs
- DbConnectionPoolGroupProviderInfo.cs
- HwndSource.cs
- WindowsSspiNegotiation.cs
- GiveFeedbackEvent.cs
- QueryOperationResponseOfT.cs
- ThreadExceptionDialog.cs
- SiteMapNodeItemEventArgs.cs
- ApplicationServiceManager.cs
- xmlglyphRunInfo.cs
- Stacktrace.cs
- MultiBinding.cs
- SAPIEngineTypes.cs
- GetPageCompletedEventArgs.cs
- ExpressionDumper.cs
- DataTableCollection.cs
- Win32.cs
- JobCollate.cs
- NativeBuffer.cs
- PathGradientBrush.cs
- SyntaxCheck.cs
- StatusStrip.cs
- PropertyItem.cs
- ExpressionEditorAttribute.cs
- Hex.cs
- EndPoint.cs
- RootAction.cs
- BoundingRectTracker.cs
- QilNode.cs
- Size.cs
- InvalidCommandTreeException.cs
- Operator.cs
- StateChangeEvent.cs
- XmlDictionary.cs
- PatternMatcher.cs
- BindValidator.cs
- AdRotatorDesigner.cs
- HitTestResult.cs
- ListBase.cs
- ParameterCollection.cs
- SqlDataSourceView.cs
- PrintEvent.cs
- ToolTipService.cs
- ContainerParaClient.cs
- IgnorePropertiesAttribute.cs
- PersonalizationAdministration.cs
- NativeMethods.cs
- CanonicalFontFamilyReference.cs
- RouteValueExpressionBuilder.cs
- ApplicationId.cs
- Substitution.cs
- DataServiceRequestException.cs
- CodeDirectionExpression.cs
- SqlServer2KCompatibilityCheck.cs
- ValidatorAttribute.cs
- XmlDocumentType.cs
- TextOnlyOutput.cs
- GridView.cs
- MediaTimeline.cs
- ClientRolePrincipal.cs
- RtfToXamlReader.cs
- ReadOnlyDictionary.cs
- DashStyle.cs
- Solver.cs
- AttachmentCollection.cs
- ErrorRuntimeConfig.cs
- SQLBoolean.cs
- SystemInfo.cs
- xml.cs
- Misc.cs
- BinaryConverter.cs
- XmlQueryCardinality.cs
- Brushes.cs
- SqlVisitor.cs
- AuthenticationServiceManager.cs
- CacheEntry.cs
- WebServiceAttribute.cs
- CodeGen.cs
- ModelPerspective.cs