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
- RelationshipConverter.cs
- CharUnicodeInfo.cs
- Scheduling.cs
- PingReply.cs
- NativeMethods.cs
- LocalizationCodeDomSerializer.cs
- RuntimeWrappedException.cs
- CompiledRegexRunnerFactory.cs
- DetailsViewDeleteEventArgs.cs
- EntityType.cs
- WindowsServiceCredential.cs
- StandardRuntimeEnumValidatorAttribute.cs
- FtpWebResponse.cs
- BitmapPalette.cs
- Vector3D.cs
- DataGridItemAttachedStorage.cs
- XmlSchemaChoice.cs
- TextElementCollection.cs
- CopyAttributesAction.cs
- WarningException.cs
- TextEndOfLine.cs
- metadatamappinghashervisitor.cs
- KerberosTicketHashIdentifierClause.cs
- SubpageParaClient.cs
- DataGridViewCellEventArgs.cs
- entityreference_tresulttype.cs
- Button.cs
- InvokeFunc.cs
- RadioButtonStandardAdapter.cs
- AppSettingsSection.cs
- SettingsPropertyValue.cs
- SqlVisitor.cs
- dbenumerator.cs
- CellLabel.cs
- ConnectionManagementElement.cs
- TypeInfo.cs
- WindowsImpersonationContext.cs
- FontDialog.cs
- EntityConnectionStringBuilder.cs
- PageCodeDomTreeGenerator.cs
- X509DefaultServiceCertificateElement.cs
- ViewValidator.cs
- EdmError.cs
- NameSpaceEvent.cs
- NativeActivity.cs
- TableSectionStyle.cs
- HelpFileFileNameEditor.cs
- DataGridViewTopLeftHeaderCell.cs
- SuppressMessageAttribute.cs
- Parser.cs
- ListViewEditEventArgs.cs
- DecimalStorage.cs
- XmlArrayItemAttributes.cs
- ExtensionWindowResizeGrip.cs
- MenuItemBinding.cs
- RegularExpressionValidator.cs
- CuspData.cs
- TdsParserHelperClasses.cs
- ArglessEventHandlerProxy.cs
- ClientRolePrincipal.cs
- IERequestCache.cs
- XmlSchemaSimpleType.cs
- UnknownBitmapEncoder.cs
- ReservationNotFoundException.cs
- SspiWrapper.cs
- SymLanguageVendor.cs
- CompiledIdentityConstraint.cs
- AttachedAnnotation.cs
- MetadataCache.cs
- KeyFrames.cs
- listitem.cs
- BaseAsyncResult.cs
- PlatformNotSupportedException.cs
- CompilerLocalReference.cs
- SqlHelper.cs
- PageCodeDomTreeGenerator.cs
- VisualProxy.cs
- StylusPointCollection.cs
- EdmEntityTypeAttribute.cs
- OwnerDrawPropertyBag.cs
- CacheOutputQuery.cs
- TcpTransportSecurityElement.cs
- CFStream.cs
- RecommendedAsConfigurableAttribute.cs
- RunClient.cs
- CheckBox.cs
- ItemContainerPattern.cs
- FrameworkElementAutomationPeer.cs
- ConfigurationPropertyAttribute.cs
- LoginUtil.cs
- Bits.cs
- DefaultSerializationProviderAttribute.cs
- WebReferencesBuildProvider.cs
- TextDocumentView.cs
- DrawingAttributesDefaultValueFactory.cs
- PhoneCallDesigner.cs
- EventManager.cs
- SafeLibraryHandle.cs
- JoinSymbol.cs
- BoundColumn.cs