Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- MulticastDelegate.cs
- DataGridViewRowCollection.cs
- ButtonFieldBase.cs
- HyperLinkStyle.cs
- DateTimeValueSerializer.cs
- LocatorPart.cs
- AssemblyBuilder.cs
- MessageEventSubscriptionService.cs
- SafeTokenHandle.cs
- HttpRuntime.cs
- NamespaceEmitter.cs
- MenuTracker.cs
- CreateUserWizardAutoFormat.cs
- AnimationStorage.cs
- XpsFilter.cs
- TraceListeners.cs
- SqlDataSourceQueryEditorForm.cs
- SerializationAttributes.cs
- StorageBasedPackageProperties.cs
- BitmapCache.cs
- MarginsConverter.cs
- PropertyValueUIItem.cs
- List.cs
- FieldDescriptor.cs
- X509Utils.cs
- COAUTHINFO.cs
- DataSourceHelper.cs
- Expressions.cs
- ArglessEventHandlerProxy.cs
- BulletedListEventArgs.cs
- AppSettingsSection.cs
- Timer.cs
- ListViewItemSelectionChangedEvent.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- FileChangesMonitor.cs
- CodeDirectiveCollection.cs
- ScaleTransform3D.cs
- WSHttpBindingCollectionElement.cs
- SignatureHelper.cs
- SystemIPGlobalProperties.cs
- DropDownButton.cs
- ISCIIEncoding.cs
- EntityContainerEmitter.cs
- X509Extension.cs
- SqlSupersetValidator.cs
- ListBase.cs
- DataGridViewButtonColumn.cs
- _LocalDataStoreMgr.cs
- Array.cs
- RSAPKCS1KeyExchangeFormatter.cs
- ProgressBarRenderer.cs
- StyleSheetDesigner.cs
- TemplateControlCodeDomTreeGenerator.cs
- SQLByteStorage.cs
- JulianCalendar.cs
- MailMessage.cs
- PointLight.cs
- SocketElement.cs
- MeasureData.cs
- ProgressBar.cs
- TypefaceMetricsCache.cs
- InputDevice.cs
- SystemIPGlobalStatistics.cs
- InitializationEventAttribute.cs
- XmlException.cs
- DispatchWrapper.cs
- CaseInsensitiveComparer.cs
- DataTableNameHandler.cs
- _ContextAwareResult.cs
- ComponentEditorPage.cs
- ProtocolsConfigurationEntry.cs
- EncoderNLS.cs
- ClickablePoint.cs
- dataprotectionpermission.cs
- CodeDelegateInvokeExpression.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- ItemChangedEventArgs.cs
- PeerToPeerException.cs
- EventHandlersStore.cs
- HttpFileCollection.cs
- regiisutil.cs
- WindowPattern.cs
- TypeDependencyAttribute.cs
- HostSecurityManager.cs
- TextFormatterContext.cs
- SettingsPropertyCollection.cs
- GlobalAclOperationRequirement.cs
- DuplicateDetector.cs
- ColorMap.cs
- Encoding.cs
- OdbcInfoMessageEvent.cs
- Label.cs
- DynamicDiscoSearcher.cs
- SpotLight.cs
- RijndaelManagedTransform.cs
- ManagementClass.cs
- XmlSerializerFactory.cs
- TemplateControlParser.cs
- NonClientArea.cs
- StdRegProviderWrapper.cs