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
- CodeCatchClause.cs
- TypeCodeDomSerializer.cs
- Compiler.cs
- followingquery.cs
- TypeInfo.cs
- RangeValuePattern.cs
- WizardForm.cs
- CustomAttributeSerializer.cs
- _ConnectOverlappedAsyncResult.cs
- ImageAnimator.cs
- CounterSampleCalculator.cs
- DropShadowBitmapEffect.cs
- Currency.cs
- XpsFontSerializationService.cs
- X509CertificateChain.cs
- DataBindingValueUIHandler.cs
- Rect3D.cs
- CodeMethodInvokeExpression.cs
- WebBrowserNavigatingEventHandler.cs
- CommandValueSerializer.cs
- ToolStripContentPanel.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- BindingsCollection.cs
- ContextStaticAttribute.cs
- NumberSubstitution.cs
- HtmlString.cs
- AssociationSet.cs
- NameTable.cs
- CheckBox.cs
- MasterPageCodeDomTreeGenerator.cs
- DataAccessor.cs
- PropertyOverridesTypeEditor.cs
- Typeface.cs
- TransactionContext.cs
- ContextMenuStripGroup.cs
- LinkAreaEditor.cs
- PropertyConverter.cs
- Material.cs
- ControlBuilder.cs
- ProjectedSlot.cs
- Rule.cs
- TransportChannelFactory.cs
- HtmlInputFile.cs
- DataViewListener.cs
- SecurityTokenTypes.cs
- InternalRelationshipCollection.cs
- SuppressIldasmAttribute.cs
- DataGridViewComboBoxCell.cs
- SerializeAbsoluteContext.cs
- DataSourceView.cs
- ButtonPopupAdapter.cs
- MimeParameters.cs
- SafeRightsManagementQueryHandle.cs
- ExpressionBuilder.cs
- LockedAssemblyCache.cs
- safelinkcollection.cs
- Drawing.cs
- RegisteredExpandoAttribute.cs
- RouteTable.cs
- CapabilitiesAssignment.cs
- Message.cs
- BitConverter.cs
- entityreference_tresulttype.cs
- DoubleIndependentAnimationStorage.cs
- HyperlinkAutomationPeer.cs
- XmlQueryType.cs
- ResXFileRef.cs
- WindowsListViewGroupHelper.cs
- sqlnorm.cs
- ListBindingHelper.cs
- IPPacketInformation.cs
- HtmlInputHidden.cs
- DragCompletedEventArgs.cs
- TreeNode.cs
- AuthenticationConfig.cs
- SystemIPv6InterfaceProperties.cs
- TypeExtensionConverter.cs
- Transform3D.cs
- ActivityCodeDomSerializationManager.cs
- XpsFilter.cs
- ContentHostHelper.cs
- MatrixCamera.cs
- XmlAggregates.cs
- XmlSignificantWhitespace.cs
- RestHandlerFactory.cs
- Size3DValueSerializer.cs
- PrintingPermission.cs
- MetadataCollection.cs
- Header.cs
- PlanCompilerUtil.cs
- WMICapabilities.cs
- Parallel.cs
- WhiteSpaceTrimStringConverter.cs
- AccessibleObject.cs
- ActivityWithResultValueSerializer.cs
- XmlBufferReader.cs
- BulletDecorator.cs
- AttributeEmitter.cs
- Point3DCollection.cs
- PageAsyncTask.cs