Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Shared / MS / Internal / Generated / BrushMappingModeValidation.cs / 1 / 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
- BinaryObjectReader.cs
- BevelBitmapEffect.cs
- SchemaTypeEmitter.cs
- MatrixUtil.cs
- MessagePartDescription.cs
- DataGridViewSortCompareEventArgs.cs
- SqlTypesSchemaImporter.cs
- EntityViewGenerator.cs
- TargetFrameworkUtil.cs
- RayMeshGeometry3DHitTestResult.cs
- AsyncResult.cs
- TableFieldsEditor.cs
- ServiceModelPerformanceCounters.cs
- Positioning.cs
- DataListItemCollection.cs
- GregorianCalendar.cs
- UITypeEditor.cs
- RectKeyFrameCollection.cs
- BuildProvidersCompiler.cs
- FixUp.cs
- Literal.cs
- Visual3DCollection.cs
- Console.cs
- SiteMapNode.cs
- CommandHelper.cs
- JoinSymbol.cs
- GridViewRowCollection.cs
- validation.cs
- ToolStripTextBox.cs
- DefaultShape.cs
- UxThemeWrapper.cs
- DesignerVerb.cs
- FileDialogCustomPlacesCollection.cs
- XmlDocumentSurrogate.cs
- SqlDataSourceDesigner.cs
- IODescriptionAttribute.cs
- CloudCollection.cs
- GridViewRowPresenterBase.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- XPathDocumentIterator.cs
- XhtmlBasicListAdapter.cs
- AppDomainUnloadedException.cs
- ResourceDictionary.cs
- loginstatus.cs
- FormViewPageEventArgs.cs
- SerializationInfoEnumerator.cs
- ProviderCommandInfoUtils.cs
- DecimalConverter.cs
- InstanceNormalEvent.cs
- TextElementCollection.cs
- SQLChars.cs
- ListViewItemSelectionChangedEvent.cs
- ContextProperty.cs
- GridLengthConverter.cs
- WSDualHttpBindingCollectionElement.cs
- HostedElements.cs
- PermissionListSet.cs
- EnvelopedPkcs7.cs
- StyleModeStack.cs
- MoveSizeWinEventHandler.cs
- ScriptManager.cs
- CoreSwitches.cs
- ClickablePoint.cs
- PrimitiveXmlSerializers.cs
- RuntimeConfigLKG.cs
- BStrWrapper.cs
- DropDownButton.cs
- FlatButtonAppearance.cs
- ClientSideQueueItem.cs
- CryptoApi.cs
- PasswordTextNavigator.cs
- ActivityStateRecord.cs
- ListViewItemSelectionChangedEvent.cs
- PathFigureCollectionValueSerializer.cs
- ManipulationDevice.cs
- RepeatInfo.cs
- BufferedReadStream.cs
- CellPartitioner.cs
- CollectionViewGroupInternal.cs
- DefaultBinder.cs
- ConfigPathUtility.cs
- SapiRecoInterop.cs
- OrderedDictionaryStateHelper.cs
- ComplexType.cs
- Trustee.cs
- CodeCastExpression.cs
- XmlDictionaryString.cs
- LinkLabelLinkClickedEvent.cs
- ListenerConnectionDemuxer.cs
- XPathDocumentBuilder.cs
- TrackingWorkflowEventArgs.cs
- MetafileHeaderWmf.cs
- SHA256CryptoServiceProvider.cs
- EventManager.cs
- SystemTcpStatistics.cs
- CodeTypeDeclaration.cs
- FragmentNavigationEventArgs.cs
- CreateUserErrorEventArgs.cs
- MatrixConverter.cs
- ByteStreamMessage.cs