Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Shared / MS / Internal / Generated / StretchValidation.cs / 1 / StretchValidation.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // This file was generated, please do not edit it directly. // // Please see [....]/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
- RegexCharClass.cs
- RepeaterItemCollection.cs
- MouseBinding.cs
- ErrorWebPart.cs
- TileModeValidation.cs
- Helpers.cs
- Binding.cs
- MasterPageBuildProvider.cs
- LinkDescriptor.cs
- StartUpEventArgs.cs
- CompositeCollection.cs
- TransactionManager.cs
- ToolStripDropDownClosingEventArgs.cs
- UserNameSecurityTokenAuthenticator.cs
- XmlHierarchyData.cs
- WindowsStartMenu.cs
- ColumnTypeConverter.cs
- ConfigurationManager.cs
- DllNotFoundException.cs
- TrackPointCollection.cs
- ConfigurationElementCollection.cs
- RelationshipManager.cs
- FrameSecurityDescriptor.cs
- WebPartDescriptionCollection.cs
- DecoderFallback.cs
- TextTreeDeleteContentUndoUnit.cs
- EndpointAddressElementBase.cs
- SoapCodeExporter.cs
- RegistryDataKey.cs
- RoutedEventConverter.cs
- DtdParser.cs
- SettingsAttributes.cs
- EntityDataSourceColumn.cs
- ReferenceTypeElement.cs
- ChangeNode.cs
- DistributedTransactionPermission.cs
- RC2CryptoServiceProvider.cs
- HTTPNotFoundHandler.cs
- XmlNamespaceMapping.cs
- CodeDirectionExpression.cs
- dbenumerator.cs
- SqlAliasesReferenced.cs
- IPEndPoint.cs
- CodeCommentStatementCollection.cs
- SqlParameter.cs
- DeleteHelper.cs
- SecurityManager.cs
- ParallelLoopState.cs
- Column.cs
- GridErrorDlg.cs
- ChannelAcceptor.cs
- Substitution.cs
- SmiMetaDataProperty.cs
- EncodingTable.cs
- OrthographicCamera.cs
- DefaultWorkflowTransactionService.cs
- CroppedBitmap.cs
- TextServicesCompartment.cs
- Point3DAnimationBase.cs
- ErrorProvider.cs
- ServiceModelStringsVersion1.cs
- CdpEqualityComparer.cs
- CacheRequest.cs
- RegionIterator.cs
- MulticastDelegate.cs
- RoleBoolean.cs
- ListControlDataBindingHandler.cs
- CompModSwitches.cs
- XmlNotation.cs
- WebPartEditorOkVerb.cs
- AvTraceFormat.cs
- XmlSerializerAssemblyAttribute.cs
- ObjectDataSourceFilteringEventArgs.cs
- DrawingAttributeSerializer.cs
- FormattedTextSymbols.cs
- AnnotationObservableCollection.cs
- ByteRangeDownloader.cs
- OutputWindow.cs
- GeneralTransform3DTo2D.cs
- Visual3D.cs
- MasterPageCodeDomTreeGenerator.cs
- HandledEventArgs.cs
- Scene3D.cs
- MessageSecurityException.cs
- StickyNoteHelper.cs
- PrefixQName.cs
- ArgIterator.cs
- BitStream.cs
- RotateTransform3D.cs
- KerberosTicketHashIdentifierClause.cs
- DataProtection.cs
- InstanceKey.cs
- TypeRestriction.cs
- CodeAccessSecurityEngine.cs
- WrappedReader.cs
- ProfileManager.cs
- BinaryNode.cs
- CfgParser.cs
- CachedRequestParams.cs
- ValidationContext.cs