Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Data / FilterEventArgs.cs / 1 / FilterEventArgs.cs
//----------------------------------------------------------------------------
//
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
//
// Description: Filter event arguments
//
// Specs: [....]/connecteddata/Specs/CollectionViewSource.mht
//
//---------------------------------------------------------------------------
using System;
namespace System.Windows.Data
{
///
/// Arguments for the Filter event.
///
///
/// The event receiver should set Accepted to true if the item
/// passes the filter, or false if it fails.
///
public class FilterEventArgs : EventArgs
{
//-----------------------------------------------------
//
// Constructors
//
//-----------------------------------------------------
internal FilterEventArgs(object item)
{
_item = item;
_accepted = true;
}
//------------------------------------------------------
//
// Public Properties
//
//-----------------------------------------------------
///
/// 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
- PreservationFileWriter.cs
- ToolStripItemImageRenderEventArgs.cs
- datacache.cs
- XmlHierarchyData.cs
- DeflateStream.cs
- baseaxisquery.cs
- SocketAddress.cs
- PeerNearMe.cs
- PaperSize.cs
- LabelEditEvent.cs
- ThumbAutomationPeer.cs
- infer.cs
- IsolatedStorageFileStream.cs
- ModifyActivitiesPropertyDescriptor.cs
- Property.cs
- BuildProviderAppliesToAttribute.cs
- State.cs
- WebScriptClientGenerator.cs
- DataErrorValidationRule.cs
- PropertyTab.cs
- WinFormsSecurity.cs
- MultitargetUtil.cs
- safelinkcollection.cs
- ListViewGroup.cs
- WindowsStreamSecurityBindingElement.cs
- InProcStateClientManager.cs
- SoapIncludeAttribute.cs
- ObjRef.cs
- HelpInfo.cs
- SpellCheck.cs
- RightsManagementInformation.cs
- OdbcErrorCollection.cs
- MultiSelectRootGridEntry.cs
- QueryExpr.cs
- CommonProperties.cs
- ResourceProviderFactory.cs
- Material.cs
- MultilineStringConverter.cs
- If.cs
- DataSourceXmlTextReader.cs
- CompilationUnit.cs
- EmptyElement.cs
- TriggerActionCollection.cs
- SqlDataSourceQuery.cs
- ZoneMembershipCondition.cs
- EndpointFilterProvider.cs
- PrefixHandle.cs
- ScopeElementCollection.cs
- InputChannel.cs
- WebPartDisplayMode.cs
- MemberCollection.cs
- XmlArrayItemAttribute.cs
- sqlmetadatafactory.cs
- PartialTrustVisibleAssemblyCollection.cs
- ColorTypeConverter.cs
- BufferedGraphicsManager.cs
- BeginStoryboard.cs
- CodeDomSerializationProvider.cs
- XPathAncestorIterator.cs
- HtmlValidatorAdapter.cs
- HScrollBar.cs
- XmlReaderSettings.cs
- WorkflowApplicationIdleEventArgs.cs
- IntSecurity.cs
- xmlsaver.cs
- HttpWebRequest.cs
- EditorZone.cs
- SoapClientMessage.cs
- DataObject.cs
- Size3DValueSerializer.cs
- QuaternionRotation3D.cs
- LightweightEntityWrapper.cs
- ipaddressinformationcollection.cs
- ContainerAction.cs
- MachineKey.cs
- XmlExceptionHelper.cs
- cookieexception.cs
- ModelServiceImpl.cs
- PageThemeBuildProvider.cs
- ButtonFieldBase.cs
- ValueQuery.cs
- ValidationErrorEventArgs.cs
- TemplateBamlTreeBuilder.cs
- Padding.cs
- EntitySqlQueryCacheEntry.cs
- HostingPreferredMapPath.cs
- GregorianCalendar.cs
- DescendantBaseQuery.cs
- DbConnectionOptions.cs
- BinarySerializer.cs
- CanonicalFontFamilyReference.cs
- PropertyEmitterBase.cs
- SemaphoreFullException.cs
- BindingOperations.cs
- OverflowException.cs
- ADRoleFactory.cs
- BlurBitmapEffect.cs
- IPPacketInformation.cs
- RuleInfoComparer.cs
- SafeIUnknown.cs