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
- XsltCompileContext.cs
- Window.cs
- HttpRuntimeSection.cs
- MachineKeyConverter.cs
- WebPartZoneDesigner.cs
- DataGridToolTip.cs
- ReferenceConverter.cs
- OracleNumber.cs
- WizardSideBarListControlItem.cs
- HttpContext.cs
- RichTextBox.cs
- BamlTreeNode.cs
- ControlEvent.cs
- RightNameExpirationInfoPair.cs
- UnsafeNativeMethods.cs
- VisualStyleElement.cs
- OutputScopeManager.cs
- ReturnType.cs
- XmlC14NWriter.cs
- MessageBox.cs
- GenericWebPart.cs
- XmlNamespaceMappingCollection.cs
- SecurityPolicySection.cs
- UnsafeNativeMethods.cs
- HttpResponseHeader.cs
- SafeLibraryHandle.cs
- MethodRental.cs
- TransportBindingElement.cs
- DbDataReader.cs
- LoginCancelEventArgs.cs
- SettingsPropertyValue.cs
- CompilationLock.cs
- HtmlInputSubmit.cs
- ObjectStateEntry.cs
- X509ImageLogo.cs
- DefaultIfEmptyQueryOperator.cs
- TreeNodeSelectionProcessor.cs
- EmptyEnumerator.cs
- BuildManager.cs
- ConfigurationManager.cs
- DataGridBoolColumn.cs
- DataSetFieldSchema.cs
- IntSecurity.cs
- Error.cs
- XmlSchemaDocumentation.cs
- ReflectTypeDescriptionProvider.cs
- HtmlInputButton.cs
- RsaSecurityKey.cs
- EncryptedData.cs
- CodeFieldReferenceExpression.cs
- EntityTransaction.cs
- PipeStream.cs
- SurrogateSelector.cs
- ResourceKey.cs
- AttributeParameterInfo.cs
- Size.cs
- EdmProviderManifest.cs
- NetStream.cs
- SpinWait.cs
- ValidationSummary.cs
- Registry.cs
- GregorianCalendarHelper.cs
- AssemblyNameProxy.cs
- ComponentCommands.cs
- MetabaseSettingsIis7.cs
- AccessViolationException.cs
- InstanceDataCollection.cs
- SqlFunctionAttribute.cs
- DataGrid.cs
- AsymmetricSignatureDeformatter.cs
- Canvas.cs
- GetRecipientRequest.cs
- DataControlFieldHeaderCell.cs
- COM2PictureConverter.cs
- ReadContentAsBinaryHelper.cs
- FileUtil.cs
- DataContract.cs
- TransformProviderWrapper.cs
- IISUnsafeMethods.cs
- SkewTransform.cs
- InstanceDataCollectionCollection.cs
- FreezableDefaultValueFactory.cs
- Scripts.cs
- SerializationStore.cs
- Help.cs
- dtdvalidator.cs
- SiteMapNodeCollection.cs
- OleDragDropHandler.cs
- Guid.cs
- MILUtilities.cs
- Util.cs
- PeerToPeerException.cs
- XmlSchemaSimpleTypeRestriction.cs
- ContentElement.cs
- Translator.cs
- ToolStripComboBox.cs
- QueryResultOp.cs
- XmlSchemaAppInfo.cs
- AnnotationMap.cs
- _StreamFramer.cs