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
- TextShapeableCharacters.cs
- OleDbFactory.cs
- DisplayInformation.cs
- DbDataAdapter.cs
- TypeDescriptionProviderAttribute.cs
- DataControlButton.cs
- DataSourceControlBuilder.cs
- DispatcherObject.cs
- GridViewCancelEditEventArgs.cs
- ScriptResourceAttribute.cs
- XPathScanner.cs
- ArraySet.cs
- ValueTable.cs
- TreeView.cs
- GenericEnumerator.cs
- TypeBrowser.xaml.cs
- Input.cs
- DecoderFallback.cs
- HtmlElementCollection.cs
- EditorServiceContext.cs
- BoundingRectTracker.cs
- TypeElement.cs
- AppDomainResourcePerfCounters.cs
- Transform3DGroup.cs
- MemberCollection.cs
- ApplicationCommands.cs
- HwndStylusInputProvider.cs
- LinqDataSourceValidationException.cs
- XPathNodeIterator.cs
- Subtree.cs
- exports.cs
- MiniAssembly.cs
- CreateUserWizardStep.cs
- TextBoxAutoCompleteSourceConverter.cs
- SourceSwitch.cs
- HandleCollector.cs
- PartManifestEntry.cs
- XmlHierarchicalEnumerable.cs
- FormViewModeEventArgs.cs
- SplitterPanel.cs
- XmlSecureResolver.cs
- PageAsyncTask.cs
- CharacterHit.cs
- CustomAttributeBuilder.cs
- IPGlobalProperties.cs
- SystemResourceHost.cs
- BindUriHelper.cs
- HttpConfigurationSystem.cs
- CollectionEditorDialog.cs
- BuildProvidersCompiler.cs
- StrokeCollection2.cs
- XmlDataLoader.cs
- ISO2022Encoding.cs
- AdvancedBindingPropertyDescriptor.cs
- Transactions.cs
- DisplayInformation.cs
- Queue.cs
- SHA256Managed.cs
- ClientFormsIdentity.cs
- XmlSchemaAttributeGroup.cs
- ExpressionNormalizer.cs
- HwndProxyElementProvider.cs
- ReadOnlyDataSource.cs
- PageVisual.cs
- SystemIPInterfaceProperties.cs
- RequestCachingSection.cs
- SmiSettersStream.cs
- Delegate.cs
- Size.cs
- RuntimeVariablesExpression.cs
- DateTimeParse.cs
- ControllableStoryboardAction.cs
- CheckBoxFlatAdapter.cs
- ErrorHandler.cs
- XmlSchemaValidator.cs
- SafeThemeHandle.cs
- SpecialNameAttribute.cs
- base64Transforms.cs
- XNodeNavigator.cs
- UnsafeNativeMethods.cs
- UnauthorizedWebPart.cs
- FormatConvertedBitmap.cs
- XsltInput.cs
- Timer.cs
- RootAction.cs
- SvcMapFileLoader.cs
- KerberosRequestorSecurityToken.cs
- XomlCompiler.cs
- ActiveDocumentEvent.cs
- EntityCodeGenerator.cs
- TextSelectionProcessor.cs
- BreadCrumbTextConverter.cs
- SelectionPattern.cs
- FeatureManager.cs
- CompositeControl.cs
- Fault.cs
- ReadOnlyHierarchicalDataSourceView.cs
- CultureTable.cs
- InstanceDataCollection.cs
- QuaternionAnimationUsingKeyFrames.cs