Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Shared / MS / Internal / Generated / StretchValidation.cs / 1 / 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. //---------------------------------------------------------------------------- // //// 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
- CodeCastExpression.cs
- DesignerListAdapter.cs
- Thickness.cs
- IPAddress.cs
- ComNativeDescriptor.cs
- LogArchiveSnapshot.cs
- ValidationSummaryDesigner.cs
- CreateUserErrorEventArgs.cs
- LineSegment.cs
- ManagementQuery.cs
- GrammarBuilderBase.cs
- JoinQueryOperator.cs
- Header.cs
- ServiceProviders.cs
- ZipPackage.cs
- ListMarkerSourceInfo.cs
- DynamicValidator.cs
- SimpleHandlerBuildProvider.cs
- SqlOuterApplyReducer.cs
- ProviderBase.cs
- CryptoApi.cs
- FillBehavior.cs
- IndexerNameAttribute.cs
- RelationshipDetailsCollection.cs
- EventProviderWriter.cs
- TrustLevel.cs
- BrowserCapabilitiesCompiler.cs
- LongCountAggregationOperator.cs
- ResourceCollectionInfo.cs
- ReadOnlyDictionary.cs
- ListSurrogate.cs
- AdCreatedEventArgs.cs
- GatewayDefinition.cs
- GenerateTemporaryTargetAssembly.cs
- ScriptingProfileServiceSection.cs
- EntityTypeEmitter.cs
- _ConnectOverlappedAsyncResult.cs
- StringArrayConverter.cs
- XmlAtomErrorReader.cs
- XamlWriter.cs
- _TimerThread.cs
- WpfGeneratedKnownProperties.cs
- SqlEnums.cs
- ProtocolElement.cs
- TextHidden.cs
- MethodBuilder.cs
- MouseGestureValueSerializer.cs
- Stack.cs
- ReadOnlyPropertyMetadata.cs
- ClientSettingsStore.cs
- BitmapEffectGroup.cs
- OleDbSchemaGuid.cs
- SqlProvider.cs
- ManagementOperationWatcher.cs
- AnonymousIdentificationModule.cs
- NativeMethodsCLR.cs
- ReadOnlyDictionary.cs
- MultipartIdentifier.cs
- SecurityImpersonationBehavior.cs
- ResourceReader.cs
- MaxValueConverter.cs
- SecurityTokenParametersEnumerable.cs
- PartialCachingControl.cs
- SchemaImporterExtensionElementCollection.cs
- StrokeSerializer.cs
- SrgsElement.cs
- ParserExtension.cs
- ImageDesigner.cs
- ScriptManager.cs
- SiteOfOriginContainer.cs
- TableCell.cs
- LabelEditEvent.cs
- XmlBufferReader.cs
- SmtpException.cs
- NativeRecognizer.cs
- TextTreeTextElementNode.cs
- ICspAsymmetricAlgorithm.cs
- ADConnectionHelper.cs
- GridViewPageEventArgs.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- CngAlgorithmGroup.cs
- WebExceptionStatus.cs
- TabPage.cs
- OleDbFactory.cs
- LayoutTable.cs
- User.cs
- XmlSchemaImporter.cs
- BindingValueChangedEventArgs.cs
- HtmlTextArea.cs
- remotingproxy.cs
- CodeCompiler.cs
- ConsoleCancelEventArgs.cs
- XmlSchemaObjectCollection.cs
- XmlBoundElement.cs
- SqlProcedureAttribute.cs
- OleDbSchemaGuid.cs
- LicenseProviderAttribute.cs
- UpdatePanelTrigger.cs
- Filter.cs
- HtmlWindowCollection.cs