Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WCFModelStrings.Designer.cs
- ResourceExpressionBuilder.cs
- DictionaryBase.cs
- CharStorage.cs
- TrackBar.cs
- KeyEventArgs.cs
- BrowserTree.cs
- UInt64Storage.cs
- InputEventArgs.cs
- TableParagraph.cs
- SqlUdtInfo.cs
- DesignerActionPanel.cs
- SecurityRuntime.cs
- ConsumerConnectionPoint.cs
- ConfigurationCollectionAttribute.cs
- RoleManagerModule.cs
- VSWCFServiceContractGenerator.cs
- ScaleTransform3D.cs
- XPathAxisIterator.cs
- uribuilder.cs
- AuthenticationModulesSection.cs
- _LazyAsyncResult.cs
- TrackingStringDictionary.cs
- SerTrace.cs
- ProxyManager.cs
- X509Certificate.cs
- DataGridComponentEditor.cs
- DataGridViewRowCollection.cs
- CodeArrayCreateExpression.cs
- PropertyReferenceExtension.cs
- ObjectListCommand.cs
- HtmlUtf8RawTextWriter.cs
- XmlParserContext.cs
- SmtpMail.cs
- SafePEFileHandle.cs
- MissingSatelliteAssemblyException.cs
- BamlVersionHeader.cs
- TabPageDesigner.cs
- ProgressBarBrushConverter.cs
- VisualBrush.cs
- ProxyElement.cs
- XmlWhitespace.cs
- IgnoreSectionHandler.cs
- COAUTHIDENTITY.cs
- __ConsoleStream.cs
- MachinePropertyVariants.cs
- BCryptSafeHandles.cs
- CollectionsUtil.cs
- CollectionContainer.cs
- PropertyDescriptors.cs
- DataObjectEventArgs.cs
- WebPartConnectionsCancelEventArgs.cs
- HMACSHA256.cs
- PropertyValueChangedEvent.cs
- IndicShape.cs
- LocalizationParserHooks.cs
- WebControlsSection.cs
- Label.cs
- TcpServerChannel.cs
- ChtmlTextWriter.cs
- SpeechSeg.cs
- ScriptBehaviorDescriptor.cs
- CollectionDataContractAttribute.cs
- FormsAuthenticationConfiguration.cs
- SemanticKeyElement.cs
- HandlerMappingMemo.cs
- ComponentDispatcher.cs
- BaseCodePageEncoding.cs
- GridViewSortEventArgs.cs
- RuntimeArgumentHandle.cs
- DataSourceCache.cs
- StylusPointProperty.cs
- HtmlWindow.cs
- ColorInterpolationModeValidation.cs
- AssociationSetMetadata.cs
- SerializationException.cs
- KeyValueConfigurationCollection.cs
- MutexSecurity.cs
- UpdateExpressionVisitor.cs
- PreProcessInputEventArgs.cs
- MessageDecoder.cs
- Certificate.cs
- EventData.cs
- MailAddress.cs
- PassportAuthentication.cs
- HttpListenerRequest.cs
- EventToken.cs
- SmiMetaDataProperty.cs
- PointCollectionValueSerializer.cs
- List.cs
- MenuDesigner.cs
- DocumentXPathNavigator.cs
- DataGridViewMethods.cs
- XmlNodeList.cs
- DesignUtil.cs
- SessionSwitchEventArgs.cs
- RadioButtonStandardAdapter.cs
- StorageScalarPropertyMapping.cs
- WindowsListView.cs
- COAUTHIDENTITY.cs