Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / 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 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
- IndentedTextWriter.cs
- WindowsTreeView.cs
- PeerNameRecordCollection.cs
- X509IssuerSerialKeyIdentifierClause.cs
- CodeAttachEventStatement.cs
- KeyTimeConverter.cs
- SqlServer2KCompatibilityCheck.cs
- UpdateProgress.cs
- Pens.cs
- SemaphoreSecurity.cs
- StorageMappingFragment.cs
- DataTrigger.cs
- ToolStripDropDownClosingEventArgs.cs
- UserInitiatedNavigationPermission.cs
- DecryptRequest.cs
- AppDomainUnloadedException.cs
- IsolatedStorageException.cs
- ImmComposition.cs
- TypedElement.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- GeometryCollection.cs
- LinqExpressionNormalizer.cs
- DocumentXPathNavigator.cs
- WebBrowserNavigatedEventHandler.cs
- RealizationContext.cs
- DelayedRegex.cs
- PageParserFilter.cs
- UserControl.cs
- XmlLinkedNode.cs
- DataGridViewMethods.cs
- TextTreeNode.cs
- ClientBuildManager.cs
- PersonalizationState.cs
- AssemblyInfo.cs
- RectangleConverter.cs
- TableDetailsRow.cs
- MenuItem.cs
- QueryExecutionOption.cs
- SqlIdentifier.cs
- XmlSchemaParticle.cs
- UrlMappingCollection.cs
- MgmtResManager.cs
- WorkflowApplicationCompletedException.cs
- TdsEnums.cs
- WhitespaceReader.cs
- SQLBoolean.cs
- ChannelBinding.cs
- TextOptionsInternal.cs
- RightNameExpirationInfoPair.cs
- SerializationException.cs
- ContourSegment.cs
- EntityDataSourceMemberPath.cs
- SoapCodeExporter.cs
- Vector3DAnimation.cs
- Label.cs
- LifetimeMonitor.cs
- DataTransferEventArgs.cs
- SafeTimerHandle.cs
- Pair.cs
- RequestUriProcessor.cs
- MouseCaptureWithinProperty.cs
- AccessDataSourceView.cs
- MouseGesture.cs
- ObjectAssociationEndMapping.cs
- SmiEventSink_Default.cs
- DecoderFallbackWithFailureFlag.cs
- MethodBuilder.cs
- ListViewPagedDataSource.cs
- DesignBindingPicker.cs
- FontFamily.cs
- ContextConfiguration.cs
- SoapRpcServiceAttribute.cs
- XmlAttributeCollection.cs
- Codec.cs
- ScriptHandlerFactory.cs
- MetabaseReader.cs
- EntityDataSourceViewSchema.cs
- XmlJsonWriter.cs
- TabControlCancelEvent.cs
- FileStream.cs
- CacheOutputQuery.cs
- SingleObjectCollection.cs
- SerializerDescriptor.cs
- NativeRightsManagementAPIsStructures.cs
- SqlClientFactory.cs
- MinMaxParagraphWidth.cs
- MessageSecurityVersionConverter.cs
- SeekableReadStream.cs
- PerfProviderCollection.cs
- Attributes.cs
- TableLayoutCellPaintEventArgs.cs
- MultiSelectRootGridEntry.cs
- RestHandlerFactory.cs
- SymmetricKeyWrap.cs
- SmtpFailedRecipientException.cs
- PackUriHelper.cs
- BitmapDownload.cs
- DataReceivedEventArgs.cs
- ElementHostPropertyMap.cs
- GlobalizationSection.cs