Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- TraceHandlerErrorFormatter.cs
- LineBreak.cs
- NetSectionGroup.cs
- DataGridViewRowCancelEventArgs.cs
- XmlWrappingWriter.cs
- Point3DIndependentAnimationStorage.cs
- CodeTypeReferenceExpression.cs
- OleDbPropertySetGuid.cs
- AxisAngleRotation3D.cs
- EntityDataSourceDesignerHelper.cs
- XPathExpr.cs
- Inline.cs
- OutputCacheModule.cs
- MonthChangedEventArgs.cs
- HttpContext.cs
- Cell.cs
- DefaultValueAttribute.cs
- SimpleTypeResolver.cs
- Int32Collection.cs
- FormViewUpdateEventArgs.cs
- DataControlImageButton.cs
- ButtonPopupAdapter.cs
- CompositionAdorner.cs
- DiagnosticTraceSchemas.cs
- ShapingEngine.cs
- BamlBinaryReader.cs
- TimelineGroup.cs
- XmlnsCompatibleWithAttribute.cs
- WebBrowsableAttribute.cs
- COM2ExtendedTypeConverter.cs
- ProxyHelper.cs
- UnsafeNativeMethods.cs
- WorkflowDebuggerSteppingAttribute.cs
- ChameleonKey.cs
- SharedHttpsTransportManager.cs
- ISAPIRuntime.cs
- Content.cs
- AssemblyFilter.cs
- OAVariantLib.cs
- NumericExpr.cs
- IndexedEnumerable.cs
- Part.cs
- ConstraintEnumerator.cs
- SqlCaseSimplifier.cs
- QilUnary.cs
- DataBoundControlAdapter.cs
- ComponentSerializationService.cs
- ThemeDirectoryCompiler.cs
- HttpListenerResponse.cs
- SubMenuStyle.cs
- PropertyChangedEventManager.cs
- ReverseInheritProperty.cs
- FixedSOMLineCollection.cs
- ECDiffieHellmanCng.cs
- AbstractExpressions.cs
- ConstraintCollection.cs
- LateBoundBitmapDecoder.cs
- IdnMapping.cs
- ClientTargetCollection.cs
- FillBehavior.cs
- WebContext.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- TriggerAction.cs
- SuppressIldasmAttribute.cs
- CfgSemanticTag.cs
- BasicHttpBindingElement.cs
- XpsSerializerWriter.cs
- EditingCoordinator.cs
- ScriptResourceHandler.cs
- AccessKeyManager.cs
- SchemaNotation.cs
- PrimaryKeyTypeConverter.cs
- SqlClientWrapperSmiStream.cs
- XmlIlVisitor.cs
- ArgumentException.cs
- PiiTraceSource.cs
- TableAdapterManagerGenerator.cs
- SpellerHighlightLayer.cs
- DiscoveryServerProtocol.cs
- VideoDrawing.cs
- DelayedRegex.cs
- TextBoxBase.cs
- InfoCardBaseException.cs
- PlatformCulture.cs
- WebPartMenuStyle.cs
- DrawingBrush.cs
- InvalidEnumArgumentException.cs
- GroupBoxDesigner.cs
- Parameter.cs
- InputLanguage.cs
- TdsParser.cs
- VideoDrawing.cs
- PocoEntityKeyStrategy.cs
- Not.cs
- UniqueID.cs
- JpegBitmapEncoder.cs
- PriorityRange.cs
- StringFunctions.cs
- GenerateScriptTypeAttribute.cs
- _DigestClient.cs