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
- TransformValueSerializer.cs
- ReadOnlyPropertyMetadata.cs
- AudioException.cs
- FixedSOMPage.cs
- DataGridComboBoxColumn.cs
- UnauthorizedWebPart.cs
- AlphaSortedEnumConverter.cs
- CustomWebEventKey.cs
- SessionStateModule.cs
- HttpProfileGroupBase.cs
- ToolStrip.cs
- BackStopAuthenticationModule.cs
- ParserStack.cs
- InkPresenterAutomationPeer.cs
- WebConfigurationManager.cs
- CatalogZoneBase.cs
- PrintPreviewControl.cs
- Span.cs
- ColumnResizeUndoUnit.cs
- CommandDevice.cs
- ConfigurationLocation.cs
- LoginNameDesigner.cs
- NumericUpDownAccelerationCollection.cs
- DataGridViewCellLinkedList.cs
- ResXFileRef.cs
- InvokeHandlers.cs
- UpdateInfo.cs
- DataTableClearEvent.cs
- FieldBuilder.cs
- sqlpipe.cs
- XmlCustomFormatter.cs
- ExpandedWrapper.cs
- ScrollBar.cs
- StorageModelBuildProvider.cs
- Triangle.cs
- DataGridViewAdvancedBorderStyle.cs
- X509InitiatorCertificateServiceElement.cs
- ValidatedControlConverter.cs
- QueryOutputWriterV1.cs
- AnimationLayer.cs
- FormsAuthenticationUser.cs
- SHA384Managed.cs
- IChannel.cs
- TextEditorTyping.cs
- UncommonField.cs
- IISUnsafeMethods.cs
- RoleManagerSection.cs
- Win32Native.cs
- ProviderManager.cs
- EntityContainerRelationshipSetEnd.cs
- WebPartDisplayModeEventArgs.cs
- hresults.cs
- EnumValAlphaComparer.cs
- EventLogTraceListener.cs
- Color.cs
- Directory.cs
- TextElementAutomationPeer.cs
- DataListComponentEditor.cs
- DateTimeValueSerializer.cs
- isolationinterop.cs
- XmlSchemaAnnotated.cs
- DeleteMemberBinder.cs
- glyphs.cs
- CheckPair.cs
- HostedBindingBehavior.cs
- AcceleratedTokenProvider.cs
- SoapEnumAttribute.cs
- SqlFunctions.cs
- Decoder.cs
- Highlights.cs
- XmlQueryType.cs
- shaper.cs
- PathGradientBrush.cs
- AccessDataSource.cs
- FormattedText.cs
- XmlBinaryReaderSession.cs
- QueryOpcode.cs
- WorkflowTransactionService.cs
- ItemType.cs
- ClusterSafeNativeMethods.cs
- ReadContentAsBinaryHelper.cs
- ContentDisposition.cs
- Shape.cs
- LayoutEngine.cs
- OutputCacheSettings.cs
- XmlResolver.cs
- Array.cs
- RoamingStoreFile.cs
- ValidationPropertyAttribute.cs
- SQLUtility.cs
- NotSupportedException.cs
- Environment.cs
- UriWriter.cs
- CustomError.cs
- TreeNodeStyleCollection.cs
- ControllableStoryboardAction.cs
- SystemResourceKey.cs
- OptimizerPatterns.cs
- Constraint.cs
- NameTable.cs