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
- OleDbConnectionFactory.cs
- PolicyLevel.cs
- ClaimComparer.cs
- EventBuilder.cs
- LocalizationCodeDomSerializer.cs
- TraceContextRecord.cs
- WebHttpSecurity.cs
- DelegateBodyWriter.cs
- MessageHeaders.cs
- MappingMetadataHelper.cs
- ProbeMatchesMessage11.cs
- PipelineModuleStepContainer.cs
- XhtmlBasicValidationSummaryAdapter.cs
- UnmanagedBitmapWrapper.cs
- HMACMD5.cs
- Visitor.cs
- RegistrationContext.cs
- FactoryGenerator.cs
- TraceSwitch.cs
- ProfileInfo.cs
- DockPattern.cs
- SiteMapDataSourceView.cs
- HWStack.cs
- ExtendedProtectionPolicyTypeConverter.cs
- ClientFormsIdentity.cs
- WaitHandle.cs
- CanonicalFontFamilyReference.cs
- PointCollection.cs
- SmtpAuthenticationManager.cs
- HelpKeywordAttribute.cs
- ECDiffieHellmanCng.cs
- DataGridRow.cs
- DataColumnMapping.cs
- XmlAnyElementAttributes.cs
- TemplatePropertyEntry.cs
- ToolTipService.cs
- SmtpNtlmAuthenticationModule.cs
- UserControlBuildProvider.cs
- XmlSchema.cs
- DataGridViewCellLinkedList.cs
- PeerObject.cs
- SQLDecimal.cs
- SystemColorTracker.cs
- IDispatchConstantAttribute.cs
- ApplyHostConfigurationBehavior.cs
- PolicyImporterElement.cs
- HScrollProperties.cs
- AttachedPropertyDescriptor.cs
- ExpressionBinding.cs
- StreamSecurityUpgradeInitiatorBase.cs
- MessageFilterException.cs
- IgnoreFlushAndCloseStream.cs
- SimpleRecyclingCache.cs
- CheckedPointers.cs
- SqlUserDefinedAggregateAttribute.cs
- BitmapEffectDrawingContextWalker.cs
- DesignRelationCollection.cs
- CollectionBuilder.cs
- ValidationRule.cs
- SafeNativeMethods.cs
- ClaimSet.cs
- _AcceptOverlappedAsyncResult.cs
- RegexParser.cs
- BuildManagerHost.cs
- FrameworkElement.cs
- MinMaxParagraphWidth.cs
- DependencyPropertyKind.cs
- PropertyTab.cs
- AcceleratedTokenProvider.cs
- AssemblyInfo.cs
- CollectionViewGroupRoot.cs
- ShaperBuffers.cs
- CursorInteropHelper.cs
- StreamGeometry.cs
- WSSecurityPolicy.cs
- CredentialCache.cs
- PowerStatus.cs
- _ListenerRequestStream.cs
- CodeArrayCreateExpression.cs
- EditorPartChrome.cs
- FileRegion.cs
- BindingExpression.cs
- MenuItemAutomationPeer.cs
- CodeDirectiveCollection.cs
- VisualStateChangedEventArgs.cs
- ItemsChangedEventArgs.cs
- PackageRelationship.cs
- MSAAWinEventWrap.cs
- CodeDOMProvider.cs
- ImageAutomationPeer.cs
- GroupQuery.cs
- InstancePersistenceException.cs
- RemotingException.cs
- IPGlobalProperties.cs
- TextTreeObjectNode.cs
- SendAgentStatusRequest.cs
- Transform.cs
- SafeHandles.cs
- _NegotiateClient.cs
- CompiledXpathExpr.cs