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
- WebPermission.cs
- XpsLiterals.cs
- DataGridAddNewRow.cs
- SmiRequestExecutor.cs
- StylusPoint.cs
- ObjectFullSpanRewriter.cs
- RegionInfo.cs
- LoopExpression.cs
- ValueType.cs
- TrustExchangeException.cs
- ScriptResourceInfo.cs
- Point3D.cs
- BrowserCapabilitiesFactory.cs
- DrawingContextWalker.cs
- DelegateCompletionCallbackWrapper.cs
- CompoundFileReference.cs
- PopupEventArgs.cs
- ConnectivityStatus.cs
- Label.cs
- DefaultCompensation.cs
- Accessors.cs
- FunctionParameter.cs
- ControlSerializer.cs
- AdvancedBindingEditor.cs
- WindowInteractionStateTracker.cs
- SafeArrayTypeMismatchException.cs
- Operator.cs
- Attributes.cs
- TemplatePartAttribute.cs
- ListControlDesigner.cs
- ObservableDictionary.cs
- ConfigurationManagerInternalFactory.cs
- CachedFontFace.cs
- ValueChangedEventManager.cs
- GridViewSelectEventArgs.cs
- WebPartVerbsEventArgs.cs
- WSTrustFeb2005.cs
- RootNamespaceAttribute.cs
- NetworkStream.cs
- Message.cs
- CookielessHelper.cs
- DataGridViewCellValidatingEventArgs.cs
- ConnectionPoolManager.cs
- LambdaReference.cs
- TextPatternIdentifiers.cs
- AnnotationDocumentPaginator.cs
- BitmapMetadata.cs
- _SSPIWrapper.cs
- RTLAwareMessageBox.cs
- TerminateDesigner.cs
- BufferBuilder.cs
- webclient.cs
- FrameworkContextData.cs
- ContextQuery.cs
- Frame.cs
- ProgramPublisher.cs
- SchemaTableColumn.cs
- IndexedEnumerable.cs
- CodeAttachEventStatement.cs
- RotateTransform.cs
- CustomAttribute.cs
- HttpListenerContext.cs
- FileCodeGroup.cs
- HtmlUtf8RawTextWriter.cs
- TypefaceMap.cs
- MultiByteCodec.cs
- TimeSpanStorage.cs
- ParameterEditorUserControl.cs
- Border.cs
- HideDisabledControlAdapter.cs
- DrawListViewSubItemEventArgs.cs
- DataComponentNameHandler.cs
- StylusPointPropertyInfo.cs
- ContextMenuService.cs
- EnterpriseServicesHelper.cs
- SinglePageViewer.cs
- Profiler.cs
- ValueTypePropertyReference.cs
- XmlSchemaAll.cs
- JumpTask.cs
- EntityDataSourceSelectedEventArgs.cs
- ASCIIEncoding.cs
- PrivateFontCollection.cs
- CancellationState.cs
- NonBatchDirectoryCompiler.cs
- MessagePropertyFilter.cs
- FunctionQuery.cs
- TextParaClient.cs
- ImageButton.cs
- JoinElimination.cs
- ToolStripContentPanelDesigner.cs
- ResourceWriter.cs
- Style.cs
- FormView.cs
- SqlAliaser.cs
- Filter.cs
- EmptyEnumerator.cs
- BuildProviderCollection.cs
- ProtocolsSection.cs
- DbConnectionStringBuilder.cs