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
- MemberPath.cs
- IndicFontClient.cs
- DateTimeFormatInfoScanner.cs
- EntitySetBaseCollection.cs
- GraphicsPathIterator.cs
- MethodBuilder.cs
- CodeAttributeDeclarationCollection.cs
- OuterGlowBitmapEffect.cs
- ReturnEventArgs.cs
- AutomationIdentifier.cs
- PageClientProxyGenerator.cs
- EntityDataSourceDataSelection.cs
- EllipseGeometry.cs
- SelectorItemAutomationPeer.cs
- CommandField.cs
- WebBrowserEvent.cs
- SqlProcedureAttribute.cs
- DecimalAnimationBase.cs
- ReadWriteObjectLock.cs
- WindowsComboBox.cs
- Line.cs
- ConnectionManagementSection.cs
- InputBindingCollection.cs
- NetStream.cs
- CollectionViewProxy.cs
- NumericExpr.cs
- AffineTransform3D.cs
- CompositeFontParser.cs
- WebPartConnectionsCloseVerb.cs
- CaseCqlBlock.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- AnonymousIdentificationSection.cs
- PeerObject.cs
- MatrixTransform.cs
- HebrewCalendar.cs
- DataGridViewBindingCompleteEventArgs.cs
- TaskHelper.cs
- Item.cs
- InkPresenter.cs
- StringAnimationUsingKeyFrames.cs
- SqlTypeSystemProvider.cs
- Geometry.cs
- FormatConvertedBitmap.cs
- ForeignKeyConstraint.cs
- ToolZone.cs
- ReadOnlyDictionary.cs
- FieldToken.cs
- UdpDiscoveryEndpointElement.cs
- GridEntryCollection.cs
- MainMenu.cs
- BuildProvider.cs
- ConfigurationManagerInternalFactory.cs
- SiteMapNode.cs
- DbInsertCommandTree.cs
- PowerModeChangedEventArgs.cs
- XsltLoader.cs
- XmlSchemaInferenceException.cs
- XmlNavigatorFilter.cs
- SpotLight.cs
- SettingsSection.cs
- ArgumentElement.cs
- Span.cs
- TracingConnectionInitiator.cs
- ContainerAction.cs
- Vector3dCollection.cs
- DbReferenceCollection.cs
- SqlClientFactory.cs
- GB18030Encoding.cs
- DbgCompiler.cs
- CodeMethodReturnStatement.cs
- Selection.cs
- CfgParser.cs
- BaseResourcesBuildProvider.cs
- RightsManagementEncryptionTransform.cs
- EncoderParameter.cs
- MustUnderstandBehavior.cs
- ArraySortHelper.cs
- SqlDelegatedTransaction.cs
- EventRouteFactory.cs
- SqlDuplicator.cs
- webclient.cs
- EventLogPermissionEntryCollection.cs
- TextTreeUndoUnit.cs
- RegistryHandle.cs
- ComUdtElement.cs
- XmlKeywords.cs
- PriorityBindingExpression.cs
- DataGridViewCellParsingEventArgs.cs
- ReferenceEqualityComparer.cs
- TypedElement.cs
- Matrix.cs
- DebugManager.cs
- DeviceSpecific.cs
- RequestContext.cs
- TextOutput.cs
- OleCmdHelper.cs
- VirtualPath.cs
- ThreadNeutralSemaphore.cs
- CommandID.cs
- WmlTextViewAdapter.cs