Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- DmlSqlGenerator.cs
- TextSpanModifier.cs
- TableRow.cs
- AppDomainProtocolHandler.cs
- TaiwanCalendar.cs
- PackageRelationship.cs
- CheckableControlBaseAdapter.cs
- WS2007FederationHttpBindingElement.cs
- CheckableControlBaseAdapter.cs
- HttpResponse.cs
- Resources.Designer.cs
- PathNode.cs
- NonParentingControl.cs
- ColorConvertedBitmap.cs
- GridItem.cs
- ObjectQueryExecutionPlan.cs
- Suspend.cs
- ScrollPattern.cs
- XXXOnTypeBuilderInstantiation.cs
- IsolationInterop.cs
- autovalidator.cs
- InstanceKey.cs
- ZipIORawDataFileBlock.cs
- EntityDataSourceDataSelection.cs
- TextEditorSpelling.cs
- _BasicClient.cs
- Filter.cs
- SecurityUtils.cs
- GeometryGroup.cs
- SiteMembershipCondition.cs
- QueryOperator.cs
- MergeLocalizationDirectives.cs
- updateconfighost.cs
- RegexRunnerFactory.cs
- CalendarDesigner.cs
- InputLanguageSource.cs
- TrustSection.cs
- SID.cs
- IdentityModelDictionary.cs
- SoapDocumentServiceAttribute.cs
- DataGridViewLayoutData.cs
- PolicyVersion.cs
- ToolStripComboBox.cs
- SkewTransform.cs
- DataSourceView.cs
- CreatingCookieEventArgs.cs
- MetafileHeaderWmf.cs
- DataGridViewCellStyle.cs
- UriTemplateTableMatchCandidate.cs
- TypeDescriptionProviderAttribute.cs
- SystemSounds.cs
- Models.cs
- DataGridViewColumnDesigner.cs
- DeferredSelectedIndexReference.cs
- TemplateBamlRecordReader.cs
- KeyTimeConverter.cs
- MetadataCollection.cs
- ZipIOFileItemStream.cs
- XmlStreamStore.cs
- ContentPresenter.cs
- IndexedEnumerable.cs
- FileStream.cs
- Rect3DValueSerializer.cs
- RelatedImageListAttribute.cs
- FontEmbeddingManager.cs
- RadioButtonList.cs
- CommandBindingCollection.cs
- SqlGenerator.cs
- TypeInitializationException.cs
- SqlCommandBuilder.cs
- MatrixConverter.cs
- UserMapPath.cs
- ZipArchive.cs
- TreeViewImageIndexConverter.cs
- EFColumnProvider.cs
- SiteMapDataSourceDesigner.cs
- IncrementalReadDecoders.cs
- ListDictionaryInternal.cs
- ParameterRetriever.cs
- RenderingEventArgs.cs
- XPathBuilder.cs
- AssemblyFilter.cs
- ClassValidator.cs
- ReadingWritingEntityEventArgs.cs
- PrintDialog.cs
- GraphicsState.cs
- MSAAEventDispatcher.cs
- ScalarRestriction.cs
- GroupItem.cs
- FormsAuthenticationEventArgs.cs
- HandlerBase.cs
- TextChangedEventArgs.cs
- SuppressMergeCheckAttribute.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- Int32Converter.cs
- PrintDialogException.cs
- BitmapInitialize.cs
- OdbcStatementHandle.cs
- GenericIdentity.cs
- MailMessage.cs