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
- FormView.cs
- CompositeControl.cs
- SQLDouble.cs
- SelectedDatesCollection.cs
- PenThreadWorker.cs
- SessionState.cs
- StylusDownEventArgs.cs
- VirtualPathUtility.cs
- NameSpaceEvent.cs
- PageVisual.cs
- ClientScriptItem.cs
- Logging.cs
- UrlMappingsModule.cs
- FloatMinMaxAggregationOperator.cs
- XamlPointCollectionSerializer.cs
- EventDescriptor.cs
- SerialReceived.cs
- ListItemCollection.cs
- JoinGraph.cs
- COM2PictureConverter.cs
- EntityDataSourceDataSelectionPanel.cs
- QilBinary.cs
- DoubleAnimation.cs
- DoubleSumAggregationOperator.cs
- HyperLinkColumn.cs
- DeclaredTypeElement.cs
- DataComponentMethodGenerator.cs
- Application.cs
- StringAttributeCollection.cs
- TransactedBatchingBehavior.cs
- DataGridViewCellStyleConverter.cs
- PageWrapper.cs
- CompilationSection.cs
- AtomMaterializer.cs
- StructuralCache.cs
- RequestCacheValidator.cs
- CodeDOMProvider.cs
- _TimerThread.cs
- BufferedStream.cs
- CallTemplateAction.cs
- BamlResourceContent.cs
- Margins.cs
- CustomValidator.cs
- ConstNode.cs
- SqlProviderManifest.cs
- Matrix3D.cs
- GroupItem.cs
- OutputCacheProfileCollection.cs
- SecurityContext.cs
- wgx_render.cs
- InheritedPropertyChangedEventArgs.cs
- RoleGroupCollection.cs
- NullableConverter.cs
- GridEntryCollection.cs
- ProcessModelSection.cs
- XamlRtfConverter.cs
- Camera.cs
- IIS7WorkerRequest.cs
- DataControlButton.cs
- CompilerTypeWithParams.cs
- WarningException.cs
- FlagsAttribute.cs
- KeyFrames.cs
- RequestCachePolicy.cs
- ListViewItemEventArgs.cs
- CallTemplateAction.cs
- Panel.cs
- BoolLiteral.cs
- RegexParser.cs
- VectorCollectionValueSerializer.cs
- ScriptManagerProxy.cs
- ViewGenResults.cs
- SQLGuidStorage.cs
- RichTextBox.cs
- Point4DValueSerializer.cs
- Visitors.cs
- GPStream.cs
- SecurityElement.cs
- SystemKeyConverter.cs
- X509CertificateCollection.cs
- TriggerAction.cs
- UInt64Storage.cs
- SoapObjectWriter.cs
- GridPattern.cs
- XhtmlBasicFormAdapter.cs
- ColorInterpolationModeValidation.cs
- Pkcs7Signer.cs
- MessageBox.cs
- ISFClipboardData.cs
- PageThemeParser.cs
- WaveHeader.cs
- SqlBinder.cs
- TabControl.cs
- NavigationProgressEventArgs.cs
- ComplusTypeValidator.cs
- ContractHandle.cs
- LambdaCompiler.Logical.cs
- CertificateManager.cs
- MessageDescriptionCollection.cs
- Triplet.cs