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
- DependsOnAttribute.cs
- CompilerLocalReference.cs
- input.cs
- TemplateKeyConverter.cs
- HierarchicalDataTemplate.cs
- EmptyStringExpandableObjectConverter.cs
- XmlAutoDetectWriter.cs
- PersonalizationStateInfoCollection.cs
- DynamicRouteExpression.cs
- AddingNewEventArgs.cs
- TemplateBindingExtensionConverter.cs
- PageThemeCodeDomTreeGenerator.cs
- DesignDataSource.cs
- FrameworkElement.cs
- _CacheStreams.cs
- EventProviderWriter.cs
- XmlNavigatorFilter.cs
- DependencyPropertyChangedEventArgs.cs
- NativeMethods.cs
- PhysicalOps.cs
- CompatibleComparer.cs
- MetadataItem_Static.cs
- InstanceHandleConflictException.cs
- InputMethod.cs
- PageBuildProvider.cs
- XmlBoundElement.cs
- StorageMappingItemLoader.cs
- LineMetrics.cs
- followingsibling.cs
- ToolBarButtonClickEvent.cs
- KeySpline.cs
- MemoryPressure.cs
- PieceNameHelper.cs
- DataErrorValidationRule.cs
- RawStylusSystemGestureInputReport.cs
- SafeThreadHandle.cs
- returneventsaver.cs
- TargetInvocationException.cs
- DataGridViewCellStyleEditor.cs
- PartBasedPackageProperties.cs
- DrawingAttributesDefaultValueFactory.cs
- CollectionType.cs
- AmbientProperties.cs
- WebPartConnectVerb.cs
- EventRouteFactory.cs
- GroupItem.cs
- ChooseAction.cs
- ProgressBar.cs
- StylusSystemGestureEventArgs.cs
- SchemaImporterExtensionElement.cs
- CompiledQueryCacheEntry.cs
- HttpContextServiceHost.cs
- TraceSwitch.cs
- _TimerThread.cs
- ColorDialog.cs
- CalendarBlackoutDatesCollection.cs
- BrowserDefinitionCollection.cs
- ToolbarAUtomationPeer.cs
- ControlOperationBehavior.cs
- FunctionCommandText.cs
- IncrementalHitTester.cs
- EmbeddedObject.cs
- UIElement3DAutomationPeer.cs
- CorrelationManager.cs
- AutoCompleteStringCollection.cs
- EmbeddedMailObject.cs
- ClientRoleProvider.cs
- _SslStream.cs
- PostBackTrigger.cs
- _DomainName.cs
- NativeCppClassAttribute.cs
- COM2ExtendedBrowsingHandler.cs
- figurelengthconverter.cs
- SystemBrushes.cs
- TemplateAction.cs
- EntityDataSourceValidationException.cs
- FrugalMap.cs
- TemplateBindingExpressionConverter.cs
- FormatterConverter.cs
- XmlDeclaration.cs
- OleDbDataAdapter.cs
- XmlSchemaProviderAttribute.cs
- HwndMouseInputProvider.cs
- SectionInput.cs
- Int32Rect.cs
- IPEndPoint.cs
- SapiRecognizer.cs
- ADRoleFactory.cs
- StylusEditingBehavior.cs
- WhitespaceRuleLookup.cs
- SqlUdtInfo.cs
- SoapMessage.cs
- ScrollBar.cs
- AutoResetEvent.cs
- CacheDependency.cs
- UnsafeNativeMethods.cs
- ResourcesChangeInfo.cs
- WebServiceTypeData.cs
- CDSsyncETWBCLProvider.cs
- SchemaNotation.cs