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
- OleDbError.cs
- GridErrorDlg.cs
- RotateTransform.cs
- VisualCollection.cs
- CodeValidator.cs
- PbrsForward.cs
- XamlSerializer.cs
- CellNormalizer.cs
- WhitespaceRuleReader.cs
- DataGridRow.cs
- XPathNavigatorKeyComparer.cs
- FormatVersion.cs
- FormViewModeEventArgs.cs
- EntryPointNotFoundException.cs
- CommandSet.cs
- Operand.cs
- SafeThreadHandle.cs
- COAUTHIDENTITY.cs
- WsatRegistrationHeader.cs
- Viewport2DVisual3D.cs
- InstancePersistenceException.cs
- ParameterCollection.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- DataGridColumnHeader.cs
- RawKeyboardInputReport.cs
- UInt64.cs
- SafeCoTaskMem.cs
- UrlMappingCollection.cs
- SkipStoryboardToFill.cs
- FixedSOMPageConstructor.cs
- ObjectCacheSettings.cs
- XmlBoundElement.cs
- BinaryFormatter.cs
- ApplicationSecurityInfo.cs
- HttpChannelListener.cs
- NativeMethods.cs
- CurrencyWrapper.cs
- CompModSwitches.cs
- HMACRIPEMD160.cs
- AssemblyBuilder.cs
- XmlSchemaDocumentation.cs
- Rect3DValueSerializer.cs
- DataGridViewLinkCell.cs
- WindowHideOrCloseTracker.cs
- FileEnumerator.cs
- EllipticalNodeOperations.cs
- FrameworkElement.cs
- ValidatorCollection.cs
- PrivateFontCollection.cs
- DesignTimeDataBinding.cs
- XmlSchemaSimpleTypeUnion.cs
- TableAdapterManagerNameHandler.cs
- ConsoleKeyInfo.cs
- ToolboxCategoryItems.cs
- ResXResourceSet.cs
- IncrementalCompileAnalyzer.cs
- ResourceFallbackManager.cs
- PathStreamGeometryContext.cs
- SmuggledIUnknown.cs
- Rule.cs
- Keywords.cs
- TreeView.cs
- ConfigXmlCDataSection.cs
- LayoutEngine.cs
- QuaternionAnimation.cs
- ListDictionary.cs
- LexicalChunk.cs
- X509ChainPolicy.cs
- HtmlInputCheckBox.cs
- UserControlCodeDomTreeGenerator.cs
- ObjectSet.cs
- BufferedWebEventProvider.cs
- MeasureData.cs
- ElasticEase.cs
- NativeObjectSecurity.cs
- ApplicationActivator.cs
- GcSettings.cs
- SqlNodeTypeOperators.cs
- AutoGeneratedField.cs
- DataGridRelationshipRow.cs
- SqlDataSourceView.cs
- MD5HashHelper.cs
- MessageSmuggler.cs
- DesignerCategoryAttribute.cs
- InstalledFontCollection.cs
- XmlAttributeCollection.cs
- FilteredAttributeCollection.cs
- XPathMessageFilterTable.cs
- ProfileModule.cs
- EmptyEnumerable.cs
- Int32.cs
- XmlSchemaAttributeGroupRef.cs
- ComponentConverter.cs
- MaterialCollection.cs
- DataGridCaption.cs
- Directory.cs
- CultureMapper.cs
- TableParagraph.cs
- TextCollapsingProperties.cs
- QilName.cs