Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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 [....]/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
- SystemIPInterfaceProperties.cs
- EncryptedPackageFilter.cs
- ToolBar.cs
- PropertySegmentSerializer.cs
- HtmlTitle.cs
- HtmlProps.cs
- InProcStateClientManager.cs
- Compiler.cs
- DetailsViewUpdateEventArgs.cs
- PathFigureCollectionConverter.cs
- MissingMemberException.cs
- XmlExceptionHelper.cs
- IIS7WorkerRequest.cs
- FileLoadException.cs
- EncoderExceptionFallback.cs
- WebServiceEnumData.cs
- AttributeCallbackBuilder.cs
- InternalEnumValidatorAttribute.cs
- DataGridState.cs
- ColorTransformHelper.cs
- XmlException.cs
- ComplexBindingPropertiesAttribute.cs
- Cursor.cs
- XmlChildEnumerator.cs
- FontConverter.cs
- Vector.cs
- DataGridCellEditEndingEventArgs.cs
- NativeMethods.cs
- Timer.cs
- SqlRecordBuffer.cs
- Flowchart.cs
- GuidelineCollection.cs
- AnnotationService.cs
- EncryptedKeyIdentifierClause.cs
- ObjectContext.cs
- ContentHostHelper.cs
- DataTableTypeConverter.cs
- ObjectDataProvider.cs
- DBPropSet.cs
- SafePEFileHandle.cs
- SqlConnectionStringBuilder.cs
- BindingContext.cs
- TreeNodeBindingCollection.cs
- PcmConverter.cs
- DragCompletedEventArgs.cs
- User.cs
- FolderBrowserDialog.cs
- EdgeModeValidation.cs
- SimpleType.cs
- CompositeFontInfo.cs
- UICuesEvent.cs
- FormatVersion.cs
- CodeTypeMemberCollection.cs
- ChtmlCalendarAdapter.cs
- DetailsViewUpdateEventArgs.cs
- Double.cs
- GroupDescription.cs
- PartBasedPackageProperties.cs
- HtmlTableCellCollection.cs
- GregorianCalendarHelper.cs
- MapPathBasedVirtualPathProvider.cs
- TextPattern.cs
- messageonlyhwndwrapper.cs
- NestedContainer.cs
- SettingsProperty.cs
- CoTaskMemHandle.cs
- XPathScanner.cs
- BufferedGraphics.cs
- ProjectionCamera.cs
- PrincipalPermission.cs
- DriveInfo.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- EventLogPermission.cs
- ToolboxControl.cs
- SqlLiftIndependentRowExpressions.cs
- FormatSettings.cs
- CultureInfoConverter.cs
- RadioButtonPopupAdapter.cs
- TiffBitmapDecoder.cs
- Sentence.cs
- Point4DConverter.cs
- VirtualDirectoryMappingCollection.cs
- ColumnWidthChangedEvent.cs
- Selector.cs
- XmlAttributeOverrides.cs
- CreateUserWizardStep.cs
- InternalTypeHelper.cs
- PipeSecurity.cs
- CodeRemoveEventStatement.cs
- _ConnectStream.cs
- DataListItemEventArgs.cs
- BindingCompleteEventArgs.cs
- SqlParameterCollection.cs
- AccessibleObject.cs
- RectangleF.cs
- NoneExcludedImageIndexConverter.cs
- SafeEventLogWriteHandle.cs
- TemplateXamlTreeBuilder.cs
- LockedHandleGlyph.cs
- DataConnectionHelper.cs