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
- FloatUtil.cs
- ListControlActionList.cs
- ConnectionManagementElement.cs
- XmlArrayItemAttributes.cs
- CodeMethodInvokeExpression.cs
- RewritingValidator.cs
- _LocalDataStoreMgr.cs
- MultiDataTrigger.cs
- TextViewSelectionProcessor.cs
- Rotation3D.cs
- ContractCodeDomInfo.cs
- SqlConnectionStringBuilder.cs
- oledbmetadatacolumnnames.cs
- Imaging.cs
- Condition.cs
- shaperfactoryquerycacheentry.cs
- InitializerFacet.cs
- NotFiniteNumberException.cs
- FreezableOperations.cs
- TypeLibConverter.cs
- FormViewDeletedEventArgs.cs
- Columns.cs
- TemplateManager.cs
- HttpInputStream.cs
- InkCanvas.cs
- _TLSstream.cs
- DetailsViewDeletedEventArgs.cs
- AsymmetricAlgorithm.cs
- sqlcontext.cs
- ListBase.cs
- RoutedEventArgs.cs
- HtmlTableCell.cs
- JapaneseLunisolarCalendar.cs
- CodePropertyReferenceExpression.cs
- ProxyWebPartConnectionCollection.cs
- MenuItemBinding.cs
- UseLicense.cs
- SourceFileInfo.cs
- CfgSemanticTag.cs
- PcmConverter.cs
- XsltQilFactory.cs
- MergeFailedEvent.cs
- FixedTextSelectionProcessor.cs
- EntityCollection.cs
- PolyBezierSegment.cs
- ArrayConverter.cs
- WebPartTransformer.cs
- DataGridViewCellValueEventArgs.cs
- TraceContextRecord.cs
- SafeRightsManagementSessionHandle.cs
- DataRowCollection.cs
- MimeBasePart.cs
- BindingCollection.cs
- OleDbRowUpdatedEvent.cs
- SelectionPattern.cs
- JavaScriptObjectDeserializer.cs
- RemoveStoryboard.cs
- File.cs
- AbstractDataSvcMapFileLoader.cs
- WindowsSysHeader.cs
- Boolean.cs
- ContextMenu.cs
- MemberProjectionIndex.cs
- ToolStripComboBox.cs
- WebPartUserCapability.cs
- _AuthenticationState.cs
- ControllableStoryboardAction.cs
- SharedTcpTransportManager.cs
- DocumentSchemaValidator.cs
- CellParaClient.cs
- QilLoop.cs
- AssemblyCollection.cs
- ScriptingJsonSerializationSection.cs
- DateTimeOffset.cs
- WebPartsSection.cs
- HelpProvider.cs
- ClientOptions.cs
- ElementNotEnabledException.cs
- ListControlActionList.cs
- FolderBrowserDialog.cs
- BooleanStorage.cs
- PermissionToken.cs
- NameSpaceExtractor.cs
- MulticastNotSupportedException.cs
- HandlerMappingMemo.cs
- OutputWindow.cs
- TypeConverterAttribute.cs
- EmptyQuery.cs
- ObjectDataSourceEventArgs.cs
- dbdatarecord.cs
- UpdatePanelControlTrigger.cs
- TableLayoutCellPaintEventArgs.cs
- RoamingStoreFileUtility.cs
- X509SecurityTokenProvider.cs
- httpapplicationstate.cs
- __Filters.cs
- SpeechRecognizer.cs
- XmlUnspecifiedAttribute.cs
- ObjectViewQueryResultData.cs
- Int64.cs