Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / StretchValidation.cs / 1305600 / StretchValidation.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 IsStretchValid(object valueObject) { Stretch value = (Stretch) valueObject; return (value == Stretch.None) || (value == Stretch.Fill) || (value == Stretch.Uniform) || (value == Stretch.UniformToFill); } } } // 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 IsStretchValid(object valueObject) { Stretch value = (Stretch) valueObject; return (value == Stretch.None) || (value == Stretch.Fill) || (value == Stretch.Uniform) || (value == Stretch.UniformToFill); } } } // 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
- EmbossBitmapEffect.cs
- XmlAttributeOverrides.cs
- _IPv4Address.cs
- FrameDimension.cs
- WebPartZoneBase.cs
- TransformationRules.cs
- AttributeCallbackBuilder.cs
- QilGenerator.cs
- JsonServiceDocumentSerializer.cs
- MasterPageParser.cs
- MenuItem.cs
- DetailsViewUpdateEventArgs.cs
- PrivacyNoticeBindingElementImporter.cs
- GridPattern.cs
- GraphicsPath.cs
- FontUnit.cs
- SqlInternalConnectionSmi.cs
- XmlTextWriter.cs
- SqlConnectionString.cs
- SafeHandle.cs
- FormsIdentity.cs
- TextServicesDisplayAttribute.cs
- LineUtil.cs
- OAVariantLib.cs
- UserUseLicenseDictionaryLoader.cs
- StrongNameIdentityPermission.cs
- XmlSchemaParticle.cs
- SerialPort.cs
- XmlTextWriter.cs
- XmlSchemaAll.cs
- UshortList2.cs
- SettingsPropertyIsReadOnlyException.cs
- ServicePoint.cs
- ProtocolsConfigurationHandler.cs
- HttpHandlerAction.cs
- Tuple.cs
- XmlIlGenerator.cs
- TextTabProperties.cs
- Convert.cs
- DataServiceSaveChangesEventArgs.cs
- Model3D.cs
- SessionPageStateSection.cs
- WindowsRebar.cs
- WebPartAddingEventArgs.cs
- ReadOnlyDataSourceView.cs
- WebPartVerb.cs
- HttpContext.cs
- EntityKeyElement.cs
- Internal.cs
- ToolBarButtonClickEvent.cs
- WindowsListViewItem.cs
- HttpResponseHeader.cs
- TraceRecord.cs
- SqlClientWrapperSmiStreamChars.cs
- ConsoleCancelEventArgs.cs
- PersonalizableAttribute.cs
- RTLAwareMessageBox.cs
- ArgumentOutOfRangeException.cs
- Debug.cs
- ComponentEditorPage.cs
- HtmlInputText.cs
- Root.cs
- XmlSchemaInclude.cs
- HttpSocketManager.cs
- ServicePointManagerElement.cs
- SafeEventLogWriteHandle.cs
- WindowsIPAddress.cs
- GeneratedCodeAttribute.cs
- Pair.cs
- WorkflowExecutor.cs
- SetStateDesigner.cs
- SR.cs
- ReverseInheritProperty.cs
- RuntimeConfig.cs
- SafeBitVector32.cs
- PackageDigitalSignatureManager.cs
- RelatedEnd.cs
- HostedNamedPipeTransportManager.cs
- HealthMonitoringSection.cs
- VariableQuery.cs
- KnownIds.cs
- TraceUtility.cs
- UniqueConstraint.cs
- EventProxy.cs
- TextEditorParagraphs.cs
- SqlDependencyListener.cs
- securitycriticaldataClass.cs
- SupportsEventValidationAttribute.cs
- TrackingConditionCollection.cs
- SystemIcons.cs
- TextBoxAutomationPeer.cs
- CompileXomlTask.cs
- AffineTransform3D.cs
- TextRunCacheImp.cs
- WebBrowserDocumentCompletedEventHandler.cs
- MailWebEventProvider.cs
- XmlText.cs
- XmlEventCache.cs
- MergeLocalizationDirectives.cs
- XmlWellformedWriter.cs