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
- CharEntityEncoderFallback.cs
- AnnotationElement.cs
- KeyToListMap.cs
- ParameterBuilder.cs
- TablePattern.cs
- SignedXml.cs
- SimpleFieldTemplateFactory.cs
- XmlAttributes.cs
- InputManager.cs
- TimeoutValidationAttribute.cs
- Duration.cs
- FileCodeGroup.cs
- EntityProviderFactory.cs
- Command.cs
- MonthChangedEventArgs.cs
- EdmProviderManifest.cs
- FieldToken.cs
- NetPipeSection.cs
- MeshGeometry3D.cs
- FrameworkElement.cs
- InsufficientMemoryException.cs
- ConditionalAttribute.cs
- mediaclock.cs
- ArrangedElementCollection.cs
- DataObjectPastingEventArgs.cs
- ObjectConverter.cs
- RepeaterItemEventArgs.cs
- ParserContext.cs
- DocumentSequenceHighlightLayer.cs
- IndentTextWriter.cs
- Clipboard.cs
- FamilyCollection.cs
- DelayLoadType.cs
- DataObjectFieldAttribute.cs
- WebServiceTypeData.cs
- HtmlValidationSummaryAdapter.cs
- WorkflowViewElement.cs
- UInt32Converter.cs
- IsolationInterop.cs
- RoutedUICommand.cs
- TiffBitmapDecoder.cs
- Site.cs
- ConnectionStringSettingsCollection.cs
- MsmqMessage.cs
- ProtectedConfiguration.cs
- ButtonBaseAutomationPeer.cs
- ListBase.cs
- NameValueCollection.cs
- EmptyStringExpandableObjectConverter.cs
- PointLightBase.cs
- GeneratedContractType.cs
- SqlGenericUtil.cs
- HtmlForm.cs
- RotateTransform3D.cs
- ApplicationServicesHostFactory.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- StringConcat.cs
- JumpPath.cs
- SqlClientPermission.cs
- IChannel.cs
- WindowsTab.cs
- ApplicationServicesHostFactory.cs
- SchemaObjectWriter.cs
- SerialPinChanges.cs
- PersonalizationStateQuery.cs
- SchemaElementLookUpTable.cs
- SystemColors.cs
- WeakReferenceList.cs
- JsonServiceDocumentSerializer.cs
- SqlVisitor.cs
- EntityCommandExecutionException.cs
- WeakRefEnumerator.cs
- BamlWriter.cs
- DependencyPropertyAttribute.cs
- BitmapEffectInputData.cs
- ResXBuildProvider.cs
- QilList.cs
- DataControlField.cs
- Helper.cs
- XmlCodeExporter.cs
- HandledEventArgs.cs
- SqlFunctionAttribute.cs
- SystemIcmpV4Statistics.cs
- ContentValidator.cs
- ListCollectionView.cs
- DependentList.cs
- InvokePattern.cs
- WizardPanelChangingEventArgs.cs
- FlowDocument.cs
- TraceLevelStore.cs
- SinglePageViewer.cs
- MessageDescription.cs
- GridView.cs
- ColorMatrix.cs
- DynamicValidatorEventArgs.cs
- IssuanceLicense.cs
- IntranetCredentialPolicy.cs
- ResXBuildProvider.cs
- SponsorHelper.cs
- KnownIds.cs