Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DropShadowBitmapEffect.cs
- Grant.cs
- BitArray.cs
- SmtpMail.cs
- TdsParameterSetter.cs
- HMACSHA384.cs
- Popup.cs
- ApplicationFileParser.cs
- Crypto.cs
- ActiveDocumentEvent.cs
- mediaclock.cs
- UrlPropertyAttribute.cs
- TextProperties.cs
- DoWorkEventArgs.cs
- WebPartTransformerCollection.cs
- MailHeaderInfo.cs
- ComponentResourceKeyConverter.cs
- Binding.cs
- ScalarType.cs
- CodeCatchClause.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- TreeViewAutomationPeer.cs
- RowUpdatedEventArgs.cs
- ArrayElementGridEntry.cs
- MouseDevice.cs
- RbTree.cs
- ZipPackage.cs
- PointKeyFrameCollection.cs
- ActivationServices.cs
- AssemblyBuilder.cs
- EntityConnection.cs
- TextElement.cs
- Misc.cs
- SafeLibraryHandle.cs
- RecordConverter.cs
- RichTextBox.cs
- WebPartsSection.cs
- UrlEncodedParameterWriter.cs
- SlipBehavior.cs
- XPathDescendantIterator.cs
- NumberFunctions.cs
- FontResourceCache.cs
- RadialGradientBrush.cs
- LastQueryOperator.cs
- OutputCacheModule.cs
- GeometryModel3D.cs
- OverrideMode.cs
- ItemDragEvent.cs
- Calendar.cs
- RNGCryptoServiceProvider.cs
- WebPartAddingEventArgs.cs
- ZipIOLocalFileBlock.cs
- Style.cs
- PagedDataSource.cs
- OdbcError.cs
- DetailsViewUpdatedEventArgs.cs
- ISO2022Encoding.cs
- HttpProtocolReflector.cs
- Win32MouseDevice.cs
- WebErrorHandler.cs
- ComplusEndpointConfigContainer.cs
- ConfigurationStrings.cs
- CheckableControlBaseAdapter.cs
- GroupBoxRenderer.cs
- Property.cs
- PropertyAccessVisitor.cs
- CapabilitiesSection.cs
- ExpressionBuilder.cs
- XPathDescendantIterator.cs
- RegistryConfigurationProvider.cs
- MiniCustomAttributeInfo.cs
- DragEvent.cs
- ControlUtil.cs
- AttachmentService.cs
- PerformanceCounterPermission.cs
- BoolExpr.cs
- WinFormsSecurity.cs
- ClientApiGenerator.cs
- RuleInfoComparer.cs
- GenericAuthenticationEventArgs.cs
- RelationshipNavigation.cs
- TextStore.cs
- MenuEventArgs.cs
- RelationshipDetailsRow.cs
- GatewayDefinition.cs
- SystemFonts.cs
- Signature.cs
- ConfigXmlCDataSection.cs
- XmlSchemaObject.cs
- SequenceNumber.cs
- TreeWalker.cs
- AdCreatedEventArgs.cs
- DependencyPropertyChangedEventArgs.cs
- Int64AnimationUsingKeyFrames.cs
- ProcessModelSection.cs
- UnaryNode.cs
- XmlSerializableReader.cs
- TextServicesDisplayAttributePropertyRanges.cs
- Trace.cs
- TypeUtil.cs