Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ConnectionConsumerAttribute.cs
- BinaryCommonClasses.cs
- CopyCodeAction.cs
- HasCopySemanticsAttribute.cs
- LayoutEvent.cs
- CodeSubDirectoriesCollection.cs
- WebBrowserPermission.cs
- InvalidComObjectException.cs
- BinaryConverter.cs
- SqlUDTStorage.cs
- NumericExpr.cs
- PackageRelationship.cs
- VisualCollection.cs
- XmlDigitalSignatureProcessor.cs
- TreeViewCancelEvent.cs
- SafeRightsManagementEnvironmentHandle.cs
- TextTreeExtractElementUndoUnit.cs
- SymbolPair.cs
- HtmlElementErrorEventArgs.cs
- SqlInfoMessageEvent.cs
- PolyLineSegment.cs
- DataGridSortCommandEventArgs.cs
- Token.cs
- NavigationWindowAutomationPeer.cs
- MethodAccessException.cs
- MenuItem.cs
- CounterCreationData.cs
- TextStore.cs
- OutputCacheSettingsSection.cs
- ListBoxAutomationPeer.cs
- IgnoreSection.cs
- ControlCodeDomSerializer.cs
- HwndSourceParameters.cs
- PageCatalogPartDesigner.cs
- FixedPageAutomationPeer.cs
- ObjectConverter.cs
- ProjectionCamera.cs
- BufferCache.cs
- Base64Stream.cs
- ChannelEndpointElementCollection.cs
- Input.cs
- ConfigXmlComment.cs
- Int32.cs
- OdbcPermission.cs
- DetailsViewRow.cs
- PropertyReferenceSerializer.cs
- StrokeNodeData.cs
- HostSecurityManager.cs
- Storyboard.cs
- ByteArrayHelperWithString.cs
- InlinedAggregationOperatorEnumerator.cs
- ExpandCollapseProviderWrapper.cs
- PointAnimationBase.cs
- UInt16.cs
- PropertyValue.cs
- SamlAssertionKeyIdentifierClause.cs
- OneToOneMappingSerializer.cs
- SourceElementsCollection.cs
- EdmConstants.cs
- HelpEvent.cs
- MulticastNotSupportedException.cs
- ExpressionBinding.cs
- FlowLayoutSettings.cs
- LinqDataSourceValidationException.cs
- BooleanProjectedSlot.cs
- InputEventArgs.cs
- StrongBox.cs
- Propagator.cs
- RSAPKCS1KeyExchangeFormatter.cs
- XmlIlGenerator.cs
- HttpResponseHeader.cs
- SupportingTokenParameters.cs
- FixedFlowMap.cs
- FieldCollectionEditor.cs
- XmlQueryCardinality.cs
- ButtonChrome.cs
- AdapterSwitches.cs
- CurrentChangedEventManager.cs
- RandomDelayQueuedSendsAsyncResult.cs
- XmlWellformedWriter.cs
- Permission.cs
- HttpValueCollection.cs
- Attributes.cs
- HttpListener.cs
- ChtmlSelectionListAdapter.cs
- FrameworkElementFactory.cs
- FilterElement.cs
- WhitespaceRule.cs
- WebPartUtil.cs
- EnumerableCollectionView.cs
- TransformValueSerializer.cs
- KeyboardEventArgs.cs
- VectorKeyFrameCollection.cs
- TypeElement.cs
- TransformerInfo.cs
- PeerNameRecord.cs
- AxHost.cs
- TextReader.cs
- StylusButtonEventArgs.cs
- ScriptRef.cs