Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Shared / MS / Internal / Generated / BitmapScalingModeValidation.cs / 2 / BitmapScalingModeValidation.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 IsBitmapScalingModeValid(object valueObject) { BitmapScalingMode value = (BitmapScalingMode) valueObject; return (value == BitmapScalingMode.Unspecified) || (value == BitmapScalingMode.LowQuality) || (value == BitmapScalingMode.HighQuality) || (value == BitmapScalingMode.Linear) || (value == BitmapScalingMode.Fant) || (value == BitmapScalingMode.NearestNeighbor); } } } // 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 IsBitmapScalingModeValid(object valueObject) { BitmapScalingMode value = (BitmapScalingMode) valueObject; return (value == BitmapScalingMode.Unspecified) || (value == BitmapScalingMode.LowQuality) || (value == BitmapScalingMode.HighQuality) || (value == BitmapScalingMode.Linear) || (value == BitmapScalingMode.Fant) || (value == BitmapScalingMode.NearestNeighbor); } } } // 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
- BaseTemplateParser.cs
- DesignerProperties.cs
- _Semaphore.cs
- PeerInvitationResponse.cs
- BrushConverter.cs
- TemplateXamlParser.cs
- XmlSchemaSet.cs
- Transform.cs
- MultiSelector.cs
- EncodingStreamWrapper.cs
- Block.cs
- ObjectDataSource.cs
- ExpressionEvaluator.cs
- HtmlFormWrapper.cs
- XmlAtomicValue.cs
- PrintPageEvent.cs
- BinaryKeyIdentifierClause.cs
- QueryPageSettingsEventArgs.cs
- Funcletizer.cs
- GridViewCancelEditEventArgs.cs
- Utils.cs
- HighlightVisual.cs
- TextOutput.cs
- StaticContext.cs
- StringExpressionSet.cs
- ConfigurationLoaderException.cs
- WhitespaceRule.cs
- PropertyStore.cs
- Size3D.cs
- NonParentingControl.cs
- XamlReader.cs
- RepeaterDesigner.cs
- DocumentViewerBase.cs
- EventDescriptorCollection.cs
- WebContext.cs
- ForAllOperator.cs
- ConnectionOrientedTransportElement.cs
- WindowsRegion.cs
- EventEntry.cs
- TabControlCancelEvent.cs
- EntityTransaction.cs
- ThicknessAnimationBase.cs
- ObjectCloneHelper.cs
- KeyConverter.cs
- CompositionAdorner.cs
- AuthenticatingEventArgs.cs
- Vector3DCollectionValueSerializer.cs
- DateTimeConstantAttribute.cs
- MenuItemAutomationPeer.cs
- RevocationPoint.cs
- XmlSchemaExternal.cs
- LongTypeConverter.cs
- TemplateApplicationHelper.cs
- EntityStoreSchemaFilterEntry.cs
- SQLDoubleStorage.cs
- MediaScriptCommandRoutedEventArgs.cs
- ObjRef.cs
- SqlInternalConnectionTds.cs
- Normalization.cs
- LinqDataSourceInsertEventArgs.cs
- __Filters.cs
- ConstNode.cs
- RelationshipConstraintValidator.cs
- DiscoveryClientOutputChannel.cs
- SqlComparer.cs
- RequestCache.cs
- XmlElement.cs
- ReaderWriterLockWrapper.cs
- ImageProxy.cs
- TextLineResult.cs
- BreakSafeBase.cs
- SemanticTag.cs
- ScriptControlDescriptor.cs
- NativeMethods.cs
- Point4D.cs
- SymbolType.cs
- Stylesheet.cs
- AlternateView.cs
- SafeNativeMethods.cs
- TextSelection.cs
- BindingNavigator.cs
- SplineKeyFrames.cs
- Matrix3DStack.cs
- QilFunction.cs
- EventLogPermissionEntryCollection.cs
- CodeIdentifier.cs
- WinInetCache.cs
- BamlLocalizer.cs
- RayHitTestParameters.cs
- SqlDependencyListener.cs
- JsonFaultDetail.cs
- Condition.cs
- ClientCultureInfo.cs
- ValueTable.cs
- Deflater.cs
- TableItemPatternIdentifiers.cs
- SemanticTag.cs
- Splitter.cs
- WindowCollection.cs
- SessionPageStatePersister.cs