Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / StretchValidation.cs / 1305600 / StretchValidation.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // This file was generated, please do not edit it directly. // // Please see http://wiki/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information. // //--------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Runtime.InteropServices; using MS.Internal.PresentationCore; #if PRESENTATION_CORE using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; #else using SR=System.Windows.SR; using SRID=System.Windows.SRID; #endif namespace System.Windows.Media { internal static partial class ValidateEnums { ////// Returns whether or not an enumeration instance a valid value. /// This method is designed to be used with ValidateValueCallback, and thus /// matches it's prototype. /// /// /// Enumeration value to validate. /// ///'true' if the enumeration contains a valid value, 'false' otherwise. public static bool IsStretchValid(object valueObject) { Stretch value = (Stretch) valueObject; return (value == Stretch.None) || (value == Stretch.Fill) || (value == Stretch.Uniform) || (value == Stretch.UniformToFill); } } } // 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
- SerializationSectionGroup.cs
- AnimationException.cs
- TransformerConfigurationWizardBase.cs
- MetadataUtilsSmi.cs
- DeleteStoreRequest.cs
- PlainXmlDeserializer.cs
- Transform3D.cs
- TypeUtils.cs
- SignatureToken.cs
- ToolStripStatusLabel.cs
- SmtpNetworkElement.cs
- DataGridColumnsPage.cs
- DependencyPropertyValueSerializer.cs
- TagMapCollection.cs
- GeneralTransform.cs
- SiteMapDesignerDataSourceView.cs
- HttpWriter.cs
- NameValuePermission.cs
- QueryAccessibilityHelpEvent.cs
- WinFormsSecurity.cs
- ErrorWebPart.cs
- UdpDiscoveryMessageFilter.cs
- RegexNode.cs
- BasicCommandTreeVisitor.cs
- SignedXml.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- FixedHyperLink.cs
- TraceUtility.cs
- TextContainerChangedEventArgs.cs
- RNGCryptoServiceProvider.cs
- WpfKnownMemberInvoker.cs
- XslCompiledTransform.cs
- ImageSourceValueSerializer.cs
- DebugManager.cs
- ContentType.cs
- WindowsAuthenticationModule.cs
- _CacheStreams.cs
- TextTreeExtractElementUndoUnit.cs
- CrossAppDomainChannel.cs
- GuidelineCollection.cs
- UrlMapping.cs
- RewritingProcessor.cs
- odbcmetadatacollectionnames.cs
- GenericEnumConverter.cs
- ReverseInheritProperty.cs
- Keywords.cs
- SettingsPropertyIsReadOnlyException.cs
- PropertyToken.cs
- CmsInterop.cs
- DynamicDataResources.Designer.cs
- OdbcConnectionHandle.cs
- Variant.cs
- OdbcConnectionHandle.cs
- DbMetaDataCollectionNames.cs
- DataGridColumnCollectionEditor.cs
- AssociationTypeEmitter.cs
- Baml6ConstructorInfo.cs
- SpecularMaterial.cs
- TemplateManager.cs
- BooleanConverter.cs
- IdentityNotMappedException.cs
- OracleCommand.cs
- FamilyMapCollection.cs
- RoleGroupCollection.cs
- GcHandle.cs
- SizeAnimationBase.cs
- ArgumentException.cs
- OleAutBinder.cs
- DataMisalignedException.cs
- FederatedMessageSecurityOverHttp.cs
- PersonalizationDictionary.cs
- RepeaterItemCollection.cs
- Authorization.cs
- Roles.cs
- RegexMatch.cs
- SynchronizationLockException.cs
- XmlDocumentFragment.cs
- ExtendedProtectionPolicy.cs
- XmlSchemaSubstitutionGroup.cs
- DataControlFieldCell.cs
- StorageAssociationSetMapping.cs
- XmlAttributeProperties.cs
- RNGCryptoServiceProvider.cs
- ChangePasswordDesigner.cs
- ZeroOpNode.cs
- WebBrowserDocumentCompletedEventHandler.cs
- SerializationStore.cs
- TrackingServices.cs
- ToolboxSnapDragDropEventArgs.cs
- TextSimpleMarkerProperties.cs
- SQLBytesStorage.cs
- CommonDialog.cs
- RectKeyFrameCollection.cs
- MouseOverProperty.cs
- RequestCachingSection.cs
- StrokeCollection.cs
- SeparatorAutomationPeer.cs
- ComponentCache.cs
- DataBoundControl.cs
- SerTrace.cs