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
- BitmapEffectGroup.cs
- FormsAuthenticationUserCollection.cs
- SmtpMail.cs
- StrongNamePublicKeyBlob.cs
- ShapingWorkspace.cs
- TextLineBreak.cs
- BindToObject.cs
- UserControlBuildProvider.cs
- PropertySourceInfo.cs
- CacheDependency.cs
- JoinCqlBlock.cs
- DataSourceView.cs
- RoutedCommand.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- SoapExtensionTypeElementCollection.cs
- Propagator.JoinPropagator.cs
- WebPartConnectionsCloseVerb.cs
- UnsafeNativeMethodsPenimc.cs
- XmlTextReaderImplHelpers.cs
- WebException.cs
- ProcessModule.cs
- BamlLocalizationDictionary.cs
- StylusDownEventArgs.cs
- ShaderEffect.cs
- MonthCalendar.cs
- SQLGuid.cs
- TabOrder.cs
- HtmlWindow.cs
- IIS7UserPrincipal.cs
- AsyncOperationContext.cs
- DtrList.cs
- FormatException.cs
- IconConverter.cs
- XslCompiledTransform.cs
- PartitionerQueryOperator.cs
- JsonSerializer.cs
- StrokeIntersection.cs
- FrameDimension.cs
- WebHttpBehavior.cs
- VirtualDirectoryMappingCollection.cs
- WithStatement.cs
- ControlParser.cs
- ObjectAnimationUsingKeyFrames.cs
- WebSysDisplayNameAttribute.cs
- UIElementHelper.cs
- CodeParameterDeclarationExpressionCollection.cs
- SoapObjectInfo.cs
- URLMembershipCondition.cs
- MasterPageCodeDomTreeGenerator.cs
- cookie.cs
- TableLayoutStyleCollection.cs
- DataGridItemEventArgs.cs
- X509CertificateInitiatorClientCredential.cs
- BuildProvider.cs
- DecimalConstantAttribute.cs
- CheckBoxPopupAdapter.cs
- AuthenticationService.cs
- RecognizerInfo.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- AsymmetricKeyExchangeDeformatter.cs
- SafeBitVector32.cs
- DataSetViewSchema.cs
- DbConnectionClosed.cs
- HiddenField.cs
- OleDbConnectionFactory.cs
- TitleStyle.cs
- AliasExpr.cs
- DragStartedEventArgs.cs
- JsonCollectionDataContract.cs
- ControlIdConverter.cs
- XmlSchemaElement.cs
- CompilerInfo.cs
- OrderedDictionaryStateHelper.cs
- Brush.cs
- Repeater.cs
- MsmqInputChannelListener.cs
- DashStyle.cs
- PackageDigitalSignature.cs
- RequiredAttributeAttribute.cs
- TextDecoration.cs
- DelegateSerializationHolder.cs
- TracePayload.cs
- NativeMethods.cs
- ToolboxItemAttribute.cs
- DescriptionAttribute.cs
- TableColumn.cs
- ColorTransform.cs
- DbConnectionInternal.cs
- HttpValueCollection.cs
- AtomServiceDocumentSerializer.cs
- SqlUnionizer.cs
- RegexMatch.cs
- BitmapPalette.cs
- ObjectQuery_EntitySqlExtensions.cs
- UndirectedGraph.cs
- BeginStoryboard.cs
- FullTrustAssembly.cs
- ObjectDataSourceSelectingEventArgs.cs
- WindowsRichEdit.cs
- SafeViewOfFileHandle.cs