Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / BrushMappingModeValidation.cs / 1305600 / BrushMappingModeValidation.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 IsBrushMappingModeValid(object valueObject) { BrushMappingMode value = (BrushMappingMode) valueObject; return (value == BrushMappingMode.Absolute) || (value == BrushMappingMode.RelativeToBoundingBox); } } } // 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 IsBrushMappingModeValid(object valueObject) { BrushMappingMode value = (BrushMappingMode) valueObject; return (value == BrushMappingMode.Absolute) || (value == BrushMappingMode.RelativeToBoundingBox); } } } // 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
- RequiredFieldValidator.cs
- IndexedString.cs
- BackStopAuthenticationModule.cs
- ToolZone.cs
- PartitionResolver.cs
- Vector3DAnimationBase.cs
- DbDataRecord.cs
- WebPartDisplayModeEventArgs.cs
- FileDataSourceCache.cs
- StylusTouchDevice.cs
- XXXInfos.cs
- InvalidComObjectException.cs
- DataSetMappper.cs
- Assembly.cs
- GenericTypeParameterConverter.cs
- Helper.cs
- SerializationInfo.cs
- HttpModuleActionCollection.cs
- SuppressIldasmAttribute.cs
- QueuedDeliveryRequirementsMode.cs
- WindowsRebar.cs
- Vector3DAnimationUsingKeyFrames.cs
- MouseWheelEventArgs.cs
- CollectionViewSource.cs
- KeyInstance.cs
- XmlElementAttributes.cs
- RemotingConfiguration.cs
- XamlSerializationHelper.cs
- ColorMap.cs
- ZipIOCentralDirectoryBlock.cs
- SettingsBindableAttribute.cs
- UTF7Encoding.cs
- StatusBarItemAutomationPeer.cs
- HttpCachePolicyElement.cs
- PseudoWebRequest.cs
- File.cs
- ExtensionQuery.cs
- URLMembershipCondition.cs
- FacetEnabledSchemaElement.cs
- GridViewUpdateEventArgs.cs
- SimpleTextLine.cs
- CharUnicodeInfo.cs
- SerializerProvider.cs
- DecimalAnimation.cs
- ObjectQuery_EntitySqlExtensions.cs
- FigureParagraph.cs
- FreezableCollection.cs
- MatrixUtil.cs
- ErrorWebPart.cs
- XmlAttributeAttribute.cs
- ToolStripItemTextRenderEventArgs.cs
- ElementHostPropertyMap.cs
- CodeIdentifier.cs
- XmlSchemaInclude.cs
- ComAwareEventInfo.cs
- ObjectTag.cs
- TreeNodeClickEventArgs.cs
- Unit.cs
- SystemNetworkInterface.cs
- NumericUpDownAccelerationCollection.cs
- FixedTextSelectionProcessor.cs
- TextContainerHelper.cs
- PromptEventArgs.cs
- Missing.cs
- elementinformation.cs
- ExpressionBuilderCollection.cs
- Parser.cs
- XmlAutoDetectWriter.cs
- Compiler.cs
- SoapAttributeAttribute.cs
- CryptoApi.cs
- Win32KeyboardDevice.cs
- AdCreatedEventArgs.cs
- VerificationException.cs
- GridEntryCollection.cs
- TraceUtils.cs
- FixedFlowMap.cs
- HitTestResult.cs
- SynchronizedPool.cs
- HexParser.cs
- XmlQueryRuntime.cs
- SelectionHighlightInfo.cs
- HyperlinkAutomationPeer.cs
- DataSetMappper.cs
- UpdateInfo.cs
- DiscoveryCallbackBehavior.cs
- SqlAliaser.cs
- MemberInfoSerializationHolder.cs
- ResourceSet.cs
- BufferedStream2.cs
- CodeExpressionCollection.cs
- Unit.cs
- ExpressionLexer.cs
- FilterableAttribute.cs
- BinarySerializer.cs
- TrackingStringDictionary.cs
- ResumeStoryboard.cs
- WorkflowPersistenceService.cs
- BigInt.cs
- TreeNodeStyle.cs