Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / Tools / System.Activities.Presentation / System / Activities / Presentation / Base / Documents / ViewManagerAttribute.cs / 1305376 / ViewManagerAttribute.cs
namespace System.Activities.Presentation.Documents { using System.Activities.Presentation; using System.Activities.Presentation.Internal.Properties; using System; using System.Globalization; ////// This attribute can be placed on the root of a model /// object graph to specify what view manager should be /// used to present the view. /// [AttributeUsage(AttributeTargets.Class, Inherited=true, AllowMultiple=false)] sealed class ViewManagerAttribute : Attribute { private Type _viewManagerType; ////// An empty ViewManagerAttribute allows you to "unset" the view manager from a base class. /// public ViewManagerAttribute() { } ////// Creates a new ViewManager attribute. /// /// The type of view manager to use. The type specified must derive from ViewManager. ///If viewManagerType is null. ///If viewManagerType does not specify a type that derives from ViewManager. public ViewManagerAttribute(Type viewManagerType) { if (viewManagerType == null) throw FxTrace.Exception.ArgumentNull("viewManagerType"); if (!typeof(ViewManager).IsAssignableFrom(viewManagerType)) { throw FxTrace.Exception.AsError(new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.Error_InvalidArgumentType, "viewManagerType", typeof(ViewManager).FullName))); } _viewManagerType = viewManagerType; } ////// The type of view manager to create for the model. /// public Type ViewManagerType { get { return _viewManagerType; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ListControlConvertEventArgs.cs
- Rect.cs
- ResourceAttributes.cs
- SapiRecoContext.cs
- HtmlGenericControl.cs
- LateBoundBitmapDecoder.cs
- Point3DCollection.cs
- Span.cs
- EraserBehavior.cs
- RadioButtonList.cs
- ToolStripProgressBar.cs
- TableAutomationPeer.cs
- RightNameExpirationInfoPair.cs
- Animatable.cs
- UnitySerializationHolder.cs
- DetailsViewInsertedEventArgs.cs
- WindowsScrollBar.cs
- XmlValueConverter.cs
- ProjectionCamera.cs
- HttpRuntimeSection.cs
- IDReferencePropertyAttribute.cs
- DataGridSortCommandEventArgs.cs
- VerificationAttribute.cs
- SystemIPv6InterfaceProperties.cs
- SmiConnection.cs
- OdbcFactory.cs
- _LazyAsyncResult.cs
- PassportAuthentication.cs
- DropDownList.cs
- ClientType.cs
- ToolStripRenderer.cs
- RunClient.cs
- ProtectedConfigurationProviderCollection.cs
- SchemaMapping.cs
- Misc.cs
- PolicyLevel.cs
- ButtonChrome.cs
- CodeArrayIndexerExpression.cs
- SecurityContextSecurityTokenResolver.cs
- SamlAdvice.cs
- OrElse.cs
- CapiHashAlgorithm.cs
- DeferredBinaryDeserializerExtension.cs
- IgnorePropertiesAttribute.cs
- AmbientLight.cs
- SqlCrossApplyToCrossJoin.cs
- Bits.cs
- ContentType.cs
- Size3DConverter.cs
- RenderingEventArgs.cs
- TreeViewHitTestInfo.cs
- EnterpriseServicesHelper.cs
- FrameworkElementFactoryMarkupObject.cs
- XmlQueryType.cs
- SwitchDesigner.xaml.cs
- XPathMultyIterator.cs
- ToolStripSettings.cs
- AsyncOperationManager.cs
- DataGridViewDataConnection.cs
- localization.cs
- DeploymentExceptionMapper.cs
- Suspend.cs
- RepeatBehavior.cs
- Monitor.cs
- PublishLicense.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- SmtpSection.cs
- NameObjectCollectionBase.cs
- EntityModelBuildProvider.cs
- DeflateStream.cs
- BinHexEncoding.cs
- PtsCache.cs
- Int64Converter.cs
- PngBitmapEncoder.cs
- RoutedCommand.cs
- CompressedStack.cs
- Configuration.cs
- MenuEventArgs.cs
- CompatibleComparer.cs
- autovalidator.cs
- MergeFilterQuery.cs
- KeyValueConfigurationElement.cs
- NameObjectCollectionBase.cs
- LinqMaximalSubtreeNominator.cs
- CharacterString.cs
- BulletedList.cs
- DrawingGroupDrawingContext.cs
- WebCategoryAttribute.cs
- TrackingExtract.cs
- CapabilitiesState.cs
- OdbcConnectionHandle.cs
- querybuilder.cs
- DataGridViewAutoSizeModeEventArgs.cs
- HtmlTableCellCollection.cs
- LoginUtil.cs
- listitem.cs
- XmlCharType.cs
- XmlSignatureManifest.cs
- JapaneseCalendar.cs
- DuplicateWaitObjectException.cs