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
- XpsSerializationManagerAsync.cs
- PrinterResolution.cs
- PrePrepareMethodAttribute.cs
- RoutedEvent.cs
- SqlDataSourceStatusEventArgs.cs
- JournalEntryStack.cs
- updateconfighost.cs
- xamlnodes.cs
- VisualProxy.cs
- Viewport3DAutomationPeer.cs
- ZeroOpNode.cs
- XmlSecureResolver.cs
- TreeNodeMouseHoverEvent.cs
- GraphicsPath.cs
- OleStrCAMarshaler.cs
- dataprotectionpermission.cs
- KeyInterop.cs
- ACL.cs
- TypeTypeConverter.cs
- SchemaImporterExtensionElement.cs
- ConfigurationManagerInternalFactory.cs
- DateRangeEvent.cs
- DelegatingConfigHost.cs
- Latin1Encoding.cs
- ValueConversionAttribute.cs
- odbcmetadatafactory.cs
- SignatureGenerator.cs
- DesignerActionTextItem.cs
- Span.cs
- QilCloneVisitor.cs
- InvokeWebServiceDesigner.cs
- CalendarItem.cs
- Authorization.cs
- ButtonStandardAdapter.cs
- CompilationUnit.cs
- SortAction.cs
- DispatcherHooks.cs
- ZipIOLocalFileHeader.cs
- GlyphRunDrawing.cs
- XsltLoader.cs
- ManagedWndProcTracker.cs
- Point3DCollection.cs
- RawStylusInputCustomData.cs
- httpapplicationstate.cs
- ResourcePool.cs
- RegistrySecurity.cs
- PolicyManager.cs
- AsyncParams.cs
- HttpListenerResponse.cs
- ListControlConvertEventArgs.cs
- ModuleBuilder.cs
- ScriptManagerProxy.cs
- BasicViewGenerator.cs
- ButtonBase.cs
- WebReferencesBuildProvider.cs
- DataColumn.cs
- TypeElement.cs
- HtmlMeta.cs
- SequentialActivityDesigner.cs
- ExtendedPropertyDescriptor.cs
- ResourceType.cs
- MatrixCamera.cs
- ImageAttributes.cs
- DockProviderWrapper.cs
- TreeIterator.cs
- TemplateColumn.cs
- ToolStripItemEventArgs.cs
- BatchServiceHost.cs
- ObjectSecurity.cs
- ColumnCollection.cs
- Touch.cs
- ProjectionCamera.cs
- CustomPopupPlacement.cs
- DesignBindingPropertyDescriptor.cs
- LinkConverter.cs
- SessionStateContainer.cs
- XamlDesignerSerializationManager.cs
- COM2ICategorizePropertiesHandler.cs
- TimeIntervalCollection.cs
- DesignerForm.cs
- OlePropertyStructs.cs
- SpeakInfo.cs
- FileLevelControlBuilderAttribute.cs
- ConstructorExpr.cs
- DecimalAnimationUsingKeyFrames.cs
- MatrixAnimationUsingPath.cs
- ObjectQuery.cs
- ConcurrentBag.cs
- EventItfInfo.cs
- TableRow.cs
- BamlCollectionHolder.cs
- TextEditorMouse.cs
- MailWriter.cs
- DataTransferEventArgs.cs
- DataControlPagerLinkButton.cs
- JavascriptCallbackMessageInspector.cs
- WindowVisualStateTracker.cs
- Part.cs
- SiteMapDataSourceView.cs
- SecurityTokenResolver.cs