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
- CompilerGeneratedAttribute.cs
- RuntimeConfigurationRecord.cs
- TokenBasedSetEnumerator.cs
- HtmlSelect.cs
- _WebProxyDataBuilder.cs
- SocketAddress.cs
- AutomationElement.cs
- TraceSection.cs
- ExceptionValidationRule.cs
- KeyValueConfigurationCollection.cs
- __Error.cs
- HyperlinkAutomationPeer.cs
- RadialGradientBrush.cs
- TrackBarRenderer.cs
- TypedReference.cs
- TextPattern.cs
- MobileRedirect.cs
- FrameworkRichTextComposition.cs
- HashHelpers.cs
- Material.cs
- WebPartCollection.cs
- XPathLexer.cs
- InitializationEventAttribute.cs
- ControlBuilderAttribute.cs
- CompressStream.cs
- CompilerHelpers.cs
- Timer.cs
- UniqueID.cs
- CodeMemberMethod.cs
- WebPartManagerInternals.cs
- InternalEnumValidatorAttribute.cs
- DomainConstraint.cs
- XsltArgumentList.cs
- SystemIPGlobalStatistics.cs
- CrossContextChannel.cs
- UIntPtr.cs
- HitTestResult.cs
- ControlUtil.cs
- SqlBuffer.cs
- Matrix3DConverter.cs
- SecurityRuntime.cs
- BitmapSourceSafeMILHandle.cs
- IriParsingElement.cs
- ReadWriteSpinLock.cs
- FontWeight.cs
- DateTimeValueSerializerContext.cs
- Row.cs
- ModuleConfigurationInfo.cs
- RefType.cs
- _SecureChannel.cs
- httpapplicationstate.cs
- LayoutEvent.cs
- RuleValidation.cs
- PropertyChangeTracker.cs
- SmiContext.cs
- WorkflowShape.cs
- ContentFilePart.cs
- HttpCapabilitiesEvaluator.cs
- GetWinFXPath.cs
- ColorTranslator.cs
- ManipulationPivot.cs
- ValidationResult.cs
- columnmapfactory.cs
- SpecialNameAttribute.cs
- ConfigXmlElement.cs
- XmlNodeChangedEventManager.cs
- ConditionBrowserDialog.cs
- EncryptedType.cs
- OutputCacheSettings.cs
- ScriptReferenceBase.cs
- DataIdProcessor.cs
- ScriptingProfileServiceSection.cs
- AggregateNode.cs
- CustomCategoryAttribute.cs
- Array.cs
- MenuItemStyle.cs
- SqlUtils.cs
- CustomAttributeSerializer.cs
- Substitution.cs
- Int32Collection.cs
- InputScopeManager.cs
- DrawingContext.cs
- XpsS0ValidatingLoader.cs
- SuspendDesigner.cs
- BehaviorService.cs
- RelationalExpressions.cs
- TypeElement.cs
- DataServiceSaveChangesEventArgs.cs
- ClientConfigPaths.cs
- TaiwanCalendar.cs
- Thread.cs
- BindingListCollectionView.cs
- HttpProtocolReflector.cs
- Msec.cs
- Button.cs
- ReadOnlyCollectionBase.cs
- GetPageCompletedEventArgs.cs
- PolyBezierSegment.cs
- InertiaTranslationBehavior.cs
- AudioDeviceOut.cs