Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Shared / MS / Internal / Generated / TileModeValidation.cs / 1 / TileModeValidation.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 IsTileModeValid(object valueObject)
{
TileMode value = (TileMode) valueObject;
return (value == TileMode.None) ||
(value == TileMode.Tile) ||
(value == TileMode.FlipX) ||
(value == TileMode.FlipY) ||
(value == TileMode.FlipXY);
}
}
}
// 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
- BrowserCapabilitiesCompiler.cs
- FunctionImportElement.cs
- GridView.cs
- SrgsDocument.cs
- DifferencingCollection.cs
- SAPIEngineTypes.cs
- ArrayConverter.cs
- CryptoStream.cs
- WorkflowMarkupElementEventArgs.cs
- DoubleAnimationUsingKeyFrames.cs
- WorkerRequest.cs
- ConfigurationCollectionAttribute.cs
- ModulesEntry.cs
- VirtualPath.cs
- IssuanceLicense.cs
- DnsEndpointIdentity.cs
- HostSecurityManager.cs
- Triplet.cs
- DllNotFoundException.cs
- OperationAbortedException.cs
- HtmlHead.cs
- Descriptor.cs
- CheckBoxList.cs
- Point.cs
- CLRBindingWorker.cs
- MediaPlayer.cs
- AndCondition.cs
- RequestStatusBarUpdateEventArgs.cs
- ExtensibleClassFactory.cs
- TableCellAutomationPeer.cs
- HelpEvent.cs
- HwndSourceKeyboardInputSite.cs
- RegexCompilationInfo.cs
- ReadOnlyDataSource.cs
- QueryOperatorEnumerator.cs
- Storyboard.cs
- COM2PropertyDescriptor.cs
- Model3D.cs
- ContentType.cs
- XmlDocumentSerializer.cs
- BitmapCodecInfo.cs
- FlagsAttribute.cs
- sqlser.cs
- Pen.cs
- CodeNamespaceImportCollection.cs
- AbsoluteQuery.cs
- RC2CryptoServiceProvider.cs
- Encoder.cs
- ConnectionManagementSection.cs
- BasicHttpMessageSecurityElement.cs
- SplitterPanel.cs
- ModuleBuilder.cs
- ProtectedConfiguration.cs
- DbParameterHelper.cs
- GridLength.cs
- PropertyKey.cs
- MetadataUtilsSmi.cs
- TypedTableBaseExtensions.cs
- DBSqlParserTable.cs
- DecryptRequest.cs
- BitHelper.cs
- SqlConnectionString.cs
- UriTemplateQueryValue.cs
- AnonymousIdentificationModule.cs
- SimpleBitVector32.cs
- DataGridViewMethods.cs
- MenuCommandsChangedEventArgs.cs
- UnknownWrapper.cs
- PropertyConverter.cs
- QueryableDataSourceEditData.cs
- SortKey.cs
- SafeSecurityHandles.cs
- DeploymentSection.cs
- Misc.cs
- SettingsPropertyCollection.cs
- ProfilePropertySettingsCollection.cs
- Msmq4PoisonHandler.cs
- Quack.cs
- HttpAsyncResult.cs
- XmlSchemaExporter.cs
- DesignerActionKeyboardBehavior.cs
- X509CertificateCollection.cs
- HostProtectionException.cs
- TableColumnCollection.cs
- CallContext.cs
- HitTestParameters.cs
- ConfigurationValue.cs
- SqlCommandBuilder.cs
- KeyFrames.cs
- OutputCacheSection.cs
- GridToolTip.cs
- ContentPathSegment.cs
- ConfigurationPropertyCollection.cs
- HtmlLiteralTextAdapter.cs
- CompilationLock.cs
- ResourceCategoryAttribute.cs
- ListViewUpdatedEventArgs.cs
- FileLogRecord.cs
- XmlDocumentSchema.cs
- Util.cs