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
- MulticastDelegate.cs
- CodeDelegateCreateExpression.cs
- RsaSecurityTokenAuthenticator.cs
- ExtentCqlBlock.cs
- VariableModifiersHelper.cs
- RegistryKey.cs
- RealProxy.cs
- ListViewItemEventArgs.cs
- PieceNameHelper.cs
- FormViewRow.cs
- ContainerVisual.cs
- log.cs
- DynamicControlParameter.cs
- FormatterConverter.cs
- ClientConfigPaths.cs
- LineGeometry.cs
- ListMarkerSourceInfo.cs
- FileLogRecordStream.cs
- DataGridDetailsPresenter.cs
- GradientBrush.cs
- SmiRecordBuffer.cs
- RectangleGeometry.cs
- AsyncStreamReader.cs
- ItemsPresenter.cs
- MenuEventArgs.cs
- ping.cs
- Preprocessor.cs
- ActivityInterfaces.cs
- CustomSignedXml.cs
- WebConvert.cs
- XmlFormatExtensionPrefixAttribute.cs
- OpenFileDialog.cs
- X509Extension.cs
- AxisAngleRotation3D.cs
- FileNotFoundException.cs
- DataGridViewColumnHeaderCell.cs
- DbConnectionPoolGroupProviderInfo.cs
- OneOf.cs
- GridViewDeletedEventArgs.cs
- FtpWebResponse.cs
- ConfigurationFileMap.cs
- ToolStripDropTargetManager.cs
- OdbcTransaction.cs
- Inflater.cs
- LinkedList.cs
- RpcCryptoRequest.cs
- RealizationDrawingContextWalker.cs
- DefaultBinder.cs
- XmlArrayAttribute.cs
- NativeObjectSecurity.cs
- PermissionToken.cs
- Crypto.cs
- SqlPersonalizationProvider.cs
- IdentityReference.cs
- SessionEndedEventArgs.cs
- Rijndael.cs
- WebPartZoneBase.cs
- Expressions.cs
- RootBrowserWindow.cs
- ListParagraph.cs
- GetPageNumberCompletedEventArgs.cs
- ErrorStyle.cs
- PaintValueEventArgs.cs
- ComEventsMethod.cs
- CqlWriter.cs
- ObjectDataSourceStatusEventArgs.cs
- CustomErrorsSectionWrapper.cs
- ADRoleFactory.cs
- HyperLinkField.cs
- DataPagerCommandEventArgs.cs
- CodeConstructor.cs
- Line.cs
- ToolStripCodeDomSerializer.cs
- LambdaCompiler.Generated.cs
- SQLMoneyStorage.cs
- SafeCertificateStore.cs
- WriteFileContext.cs
- WebPartDeleteVerb.cs
- SizeChangedInfo.cs
- HttpModuleCollection.cs
- FormsAuthentication.cs
- GroupBoxRenderer.cs
- TrackBarDesigner.cs
- AuthStoreRoleProvider.cs
- SessionEndingEventArgs.cs
- GifBitmapEncoder.cs
- ToolStripLabel.cs
- ErasingStroke.cs
- BlurBitmapEffect.cs
- CmsUtils.cs
- ScrollProperties.cs
- AttachmentService.cs
- UdpChannelListener.cs
- AppSettingsSection.cs
- WorkflowFormatterBehavior.cs
- AsymmetricKeyExchangeFormatter.cs
- TransformedBitmap.cs
- RoutedUICommand.cs
- ColorConvertedBitmapExtension.cs
- ProfileBuildProvider.cs