Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / TileModeValidation.cs / 1305600 / TileModeValidation.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 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. //---------------------------------------------------------------------------- // //// 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 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
- Point3DValueSerializer.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- Application.cs
- KeyFrames.cs
- ToolStripDesignerUtils.cs
- shaperfactory.cs
- Utils.cs
- Focus.cs
- XmlSerializableWriter.cs
- TextHintingModeValidation.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- DeadCharTextComposition.cs
- ConfigurationSection.cs
- ValueCollectionParameterReader.cs
- Control.cs
- ScrollBarRenderer.cs
- TraceListener.cs
- xsdvalidator.cs
- DocobjHost.cs
- ListSortDescriptionCollection.cs
- DataGridViewLinkCell.cs
- ArrangedElement.cs
- Debug.cs
- DocumentReference.cs
- TraceHandlerErrorFormatter.cs
- ModifierKeysValueSerializer.cs
- Util.cs
- AssemblyAttributesGoHere.cs
- ListChangedEventArgs.cs
- ArrayHelper.cs
- BrushValueSerializer.cs
- ProtocolReflector.cs
- ParameterCollectionEditorForm.cs
- StartUpEventArgs.cs
- Socket.cs
- NumericUpDown.cs
- QuaternionKeyFrameCollection.cs
- DataSourceProvider.cs
- TracingConnectionInitiator.cs
- WpfGeneratedKnownProperties.cs
- TextServicesCompartmentEventSink.cs
- RequestBringIntoViewEventArgs.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- TranslateTransform.cs
- NameScopePropertyAttribute.cs
- coordinator.cs
- ProtocolsConfiguration.cs
- GeometryConverter.cs
- SamlSerializer.cs
- ReachFixedPageSerializer.cs
- PositiveTimeSpanValidatorAttribute.cs
- BamlVersionHeader.cs
- Currency.cs
- WebPartConnectionsEventArgs.cs
- RunWorkerCompletedEventArgs.cs
- Char.cs
- SmtpFailedRecipientException.cs
- AutoResetEvent.cs
- UpdateRecord.cs
- FactoryRecord.cs
- MenuItem.cs
- SqlCrossApplyToCrossJoin.cs
- CorrelationKeyCalculator.cs
- WebSysDescriptionAttribute.cs
- PageSetupDialog.cs
- UnmanagedBitmapWrapper.cs
- GridViewDeleteEventArgs.cs
- EnvelopeVersion.cs
- FormViewUpdatedEventArgs.cs
- InheritanceContextChangedEventManager.cs
- DetailsViewPageEventArgs.cs
- ResXFileRef.cs
- WebReferenceOptions.cs
- CollectionView.cs
- ImageField.cs
- Quad.cs
- KeyToListMap.cs
- ArraySet.cs
- ExceptionUtil.cs
- TemplateControlCodeDomTreeGenerator.cs
- Error.cs
- DataGridRow.cs
- DataMisalignedException.cs
- RoleBoolean.cs
- Set.cs
- ViewBox.cs
- ClassicBorderDecorator.cs
- AvTraceDetails.cs
- _OverlappedAsyncResult.cs
- XmlCharCheckingWriter.cs
- CompositionAdorner.cs
- KeySplineConverter.cs
- validationstate.cs
- ACE.cs
- Color.cs
- StaticSiteMapProvider.cs
- ConfigUtil.cs
- DataGridViewCellStateChangedEventArgs.cs
- FragmentQueryProcessor.cs
- Int16AnimationUsingKeyFrames.cs