Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / Tools / System.Activities.Presentation / System / Activities / Presentation / Base / Interaction / Services / ViewService.cs / 1305376 / ViewService.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Activities.Presentation.Services { using System; using System.Windows; using System.Activities.Presentation.Model; ////// This service allows you to move between the model and the view. /// public abstract class ViewService { ////// Constructs a new ViewService. /// protected ViewService() { } ////// Returns the model corresponding to the view, or null if /// there is no model matching the view. /// /// /// The view object you wish to find the model for. /// ////// The corresponding model, or null if there is no model for the /// given view object. /// ///if view is null. public abstract ModelItem GetModel(DependencyObject view); ////// Returns the view corresponding to the given model. This /// can return null if there is no view for the model. /// /// /// The model to return the view object for. /// ////// The view for this model, or null if there is no view. /// ///if model is null. ///if model does not represent a valid model for this service. public abstract DependencyObject GetView(ModelItem model); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Activities.Presentation.Services { using System; using System.Windows; using System.Activities.Presentation.Model; ////// This service allows you to move between the model and the view. /// public abstract class ViewService { ////// Constructs a new ViewService. /// protected ViewService() { } ////// Returns the model corresponding to the view, or null if /// there is no model matching the view. /// /// /// The view object you wish to find the model for. /// ////// The corresponding model, or null if there is no model for the /// given view object. /// ///if view is null. public abstract ModelItem GetModel(DependencyObject view); ////// Returns the view corresponding to the given model. This /// can return null if there is no view for the model. /// /// /// The model to return the view object for. /// ////// The view for this model, or null if there is no view. /// ///if model is null. ///if model does not represent a valid model for this service. public abstract DependencyObject GetView(ModelItem model); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FileSystemWatcher.cs
- oledbmetadatacolumnnames.cs
- HttpRawResponse.cs
- TreeIterators.cs
- TdsParser.cs
- CharAnimationBase.cs
- DataSourceConverter.cs
- IEnumerable.cs
- OrCondition.cs
- DataListAutoFormat.cs
- XmlSequenceWriter.cs
- SerialPort.cs
- GcHandle.cs
- AnonymousIdentificationSection.cs
- XamlSerializerUtil.cs
- UnaryNode.cs
- SqlTypeConverter.cs
- CharAnimationBase.cs
- ByteConverter.cs
- MarkupCompilePass2.cs
- TableLayoutRowStyleCollection.cs
- ItemCollection.cs
- ScriptDescriptor.cs
- DbConnectionOptions.cs
- XmlnsDictionary.cs
- OleDbRowUpdatedEvent.cs
- TileBrush.cs
- DefinitionBase.cs
- ToolStripRendererSwitcher.cs
- MouseEventArgs.cs
- RegisteredScript.cs
- ObjectDataSourceFilteringEventArgs.cs
- ShutDownListener.cs
- BuildManager.cs
- CryptoKeySecurity.cs
- ConfigurationConverterBase.cs
- Label.cs
- XmlSchemaSubstitutionGroup.cs
- PaintEvent.cs
- WebUtility.cs
- XamlBrushSerializer.cs
- BufferedReceiveElement.cs
- PartManifestEntry.cs
- AppDomainAttributes.cs
- XmlNullResolver.cs
- ReachDocumentPageSerializer.cs
- RegionData.cs
- ExpressionParser.cs
- WindowsAuthenticationEventArgs.cs
- AssemblyBuilder.cs
- Query.cs
- SignatureGenerator.cs
- RelationshipEndMember.cs
- XmlDomTextWriter.cs
- MsmqTransportSecurityElement.cs
- Cursor.cs
- XmlName.cs
- ComponentCodeDomSerializer.cs
- RuntimeWrappedException.cs
- AddInAdapter.cs
- ByteStreamGeometryContext.cs
- ProfileProvider.cs
- BamlRecordReader.cs
- SecurityContextSecurityTokenAuthenticator.cs
- ResourceDescriptionAttribute.cs
- OdbcErrorCollection.cs
- RenderData.cs
- ThreadExceptionEvent.cs
- AspNetHostingPermission.cs
- ToolStripItemClickedEventArgs.cs
- XhtmlBasicCalendarAdapter.cs
- ViewStateAttachedPropertyFeature.cs
- ColumnWidthChangingEvent.cs
- AppliedDeviceFiltersEditor.cs
- ComponentManagerBroker.cs
- LocatorBase.cs
- SecurityStateEncoder.cs
- _DigestClient.cs
- DataObjectAttribute.cs
- CheckableControlBaseAdapter.cs
- DecoderNLS.cs
- EventHandlerList.cs
- WebPartMinimizeVerb.cs
- ToolStripContainer.cs
- OutputWindow.cs
- ValueType.cs
- FastEncoder.cs
- UIElementParagraph.cs
- TrackingStringDictionary.cs
- GroupBoxRenderer.cs
- UInt64Storage.cs
- SchemaTableColumn.cs
- DefaultDiscoveryService.cs
- BStrWrapper.cs
- TransactionOptions.cs
- ObjectQuery_EntitySqlExtensions.cs
- SqlServer2KCompatibilityCheck.cs
- XmlSchemaElement.cs
- RequestStatusBarUpdateEventArgs.cs
- BaseValidator.cs