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
- ClientWindowsAuthenticationMembershipProvider.cs
- ScriptManagerProxy.cs
- CachedFontFace.cs
- AnonymousIdentificationSection.cs
- ButtonFieldBase.cs
- OperationInvokerBehavior.cs
- InsufficientMemoryException.cs
- DataSourceCacheDurationConverter.cs
- NotFiniteNumberException.cs
- SlipBehavior.cs
- LinqDataView.cs
- ServiceTimeoutsBehavior.cs
- CellParaClient.cs
- SourceFilter.cs
- RowToFieldTransformer.cs
- JumpItem.cs
- ScriptMethodAttribute.cs
- PermissionSetTriple.cs
- ListViewAutomationPeer.cs
- StreamingContext.cs
- XmlElementAttributes.cs
- RelationshipEndMember.cs
- SingleConverter.cs
- CompiledRegexRunnerFactory.cs
- CheckBoxDesigner.cs
- DirectoryLocalQuery.cs
- StdValidatorsAndConverters.cs
- SafeRightsManagementQueryHandle.cs
- x509utils.cs
- SqlWebEventProvider.cs
- CallbackValidatorAttribute.cs
- SubclassTypeValidator.cs
- SchemaRegistration.cs
- GroupItemAutomationPeer.cs
- GestureRecognitionResult.cs
- WindowsFormsSectionHandler.cs
- ContentControl.cs
- FeatureSupport.cs
- ModelPropertyImpl.cs
- TextRangeBase.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- Zone.cs
- NameTable.cs
- DefaultTextStore.cs
- Registry.cs
- Geometry3D.cs
- SpeechSeg.cs
- CredentialCache.cs
- ListControlConvertEventArgs.cs
- ContentDisposition.cs
- RegistryExceptionHelper.cs
- WriteTimeStream.cs
- ValidationHelper.cs
- SendActivity.cs
- Substitution.cs
- ServiceRouteHandler.cs
- SoapUnknownHeader.cs
- XsdDuration.cs
- FactoryId.cs
- LinearGradientBrush.cs
- TextSelectionHighlightLayer.cs
- Verify.cs
- BasicCommandTreeVisitor.cs
- HostedAspNetEnvironment.cs
- KerberosTicketHashIdentifierClause.cs
- XmlTextReaderImplHelpers.cs
- NextPreviousPagerField.cs
- ProfileGroupSettingsCollection.cs
- EntityContainerAssociationSet.cs
- AuthenticationConfig.cs
- DbConnectionPoolGroup.cs
- RowSpanVector.cs
- RawStylusInputCustomDataList.cs
- login.cs
- WebConvert.cs
- PropertyEntry.cs
- DiscoveryDocumentSearchPattern.cs
- Unit.cs
- OperationCanceledException.cs
- Part.cs
- SystemIPAddressInformation.cs
- InstanceOwnerQueryResult.cs
- QueryPageSettingsEventArgs.cs
- BindingUtils.cs
- TreeNodeCollectionEditorDialog.cs
- InvokeGenerator.cs
- EmbeddedMailObjectsCollection.cs
- CommandValueSerializer.cs
- NetMsmqBindingCollectionElement.cs
- FlowDocumentPaginator.cs
- DbgCompiler.cs
- StructuredType.cs
- ZipIOFileItemStream.cs
- ListViewTableCell.cs
- ContentValidator.cs
- OracleConnection.cs
- UnhandledExceptionEventArgs.cs
- XPathBinder.cs
- BeginStoryboard.cs
- PersonalizationProviderHelper.cs