Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- AssemblyContextControlItem.cs
- ToolBarPanel.cs
- HyperLinkStyle.cs
- EditBehavior.cs
- MouseActionConverter.cs
- Composition.cs
- DynamicHyperLink.cs
- MailAddress.cs
- Pkcs7Recipient.cs
- HandoffBehavior.cs
- MultilineStringConverter.cs
- LostFocusEventManager.cs
- FreeFormDesigner.cs
- CodeComment.cs
- StringUtil.cs
- SAPIEngineTypes.cs
- SafeNativeMethods.cs
- SimpleApplicationHost.cs
- DataTableCollection.cs
- GeneralTransformGroup.cs
- UpDownBaseDesigner.cs
- ConnectionStringsExpressionBuilder.cs
- RenamedEventArgs.cs
- ExitEventArgs.cs
- MouseEvent.cs
- storepermission.cs
- AssemblyFilter.cs
- DragDropManager.cs
- Substitution.cs
- VisualCollection.cs
- DataGridColumnCollectionEditor.cs
- DataRow.cs
- Effect.cs
- PrivilegeNotHeldException.cs
- XamlStream.cs
- WebBrowserHelper.cs
- XPathAncestorIterator.cs
- MulticastOption.cs
- HttpContextWrapper.cs
- KeySplineConverter.cs
- StickyNoteHelper.cs
- EncodingTable.cs
- _ConnectionGroup.cs
- PenThreadWorker.cs
- XmlElementCollection.cs
- MenuItemBinding.cs
- Command.cs
- EntitySet.cs
- Debugger.cs
- GridLengthConverter.cs
- HtmlUtf8RawTextWriter.cs
- SizeChangedEventArgs.cs
- SimpleTypeResolver.cs
- ActivityDesigner.cs
- XhtmlConformanceSection.cs
- XomlSerializationHelpers.cs
- DecimalAnimationUsingKeyFrames.cs
- ParseElement.cs
- ParseNumbers.cs
- MemoryStream.cs
- MinimizableAttributeTypeConverter.cs
- DefaultExpressionVisitor.cs
- ListBox.cs
- SafeArrayRankMismatchException.cs
- Timer.cs
- WpfPayload.cs
- ContextStaticAttribute.cs
- BypassElement.cs
- AttributeUsageAttribute.cs
- BypassElementCollection.cs
- PtsCache.cs
- XpsFilter.cs
- StateFinalizationActivity.cs
- Quaternion.cs
- BufferAllocator.cs
- Size3D.cs
- Unit.cs
- AddInDeploymentState.cs
- OracleTimeSpan.cs
- ApplicationId.cs
- MediaSystem.cs
- ArgIterator.cs
- mediaeventshelper.cs
- IriParsingElement.cs
- StateMachineSubscription.cs
- SmtpTransport.cs
- CodeNamespaceCollection.cs
- AccessibleObject.cs
- ValidatorUtils.cs
- RandomNumberGenerator.cs
- ImportCatalogPart.cs
- Helper.cs
- DrawingCollection.cs
- WeakReference.cs
- RouteItem.cs
- GenerateScriptTypeAttribute.cs
- SchemaElementLookUpTable.cs
- COM2Properties.cs
- UInt32Storage.cs
- HttpInputStream.cs