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
- UIElementPropertyUndoUnit.cs
- XamlBrushSerializer.cs
- OpenTypeLayout.cs
- XmlAttributeProperties.cs
- FileAuthorizationModule.cs
- MemberJoinTreeNode.cs
- ListViewEditEventArgs.cs
- SqlException.cs
- EntityTypeBase.cs
- InputGestureCollection.cs
- WindowsStatusBar.cs
- WinFormsComponentEditor.cs
- ResourcesChangeInfo.cs
- HostSecurityManager.cs
- httpapplicationstate.cs
- XamlWriterExtensions.cs
- MissingFieldException.cs
- TreeNodeMouseHoverEvent.cs
- MemberRestriction.cs
- CryptoApi.cs
- XmlNodeReader.cs
- BitmapEffectGeneralTransform.cs
- SmiMetaData.cs
- DataGridAutoFormatDialog.cs
- NullableLongMinMaxAggregationOperator.cs
- baseaxisquery.cs
- ToolStripDropDownItemDesigner.cs
- CanonicalFontFamilyReference.cs
- CopyOnWriteList.cs
- DesignerAdRotatorAdapter.cs
- HtmlGenericControl.cs
- DrawingCollection.cs
- MonitorWrapper.cs
- ResourceAssociationTypeEnd.cs
- TypeToken.cs
- HelpEvent.cs
- SQlBooleanStorage.cs
- PointF.cs
- TraceUtility.cs
- Accessible.cs
- Point4D.cs
- Assembly.cs
- XmlAnyElementAttributes.cs
- ArgumentOutOfRangeException.cs
- BrowserCapabilitiesCodeGenerator.cs
- SimpleWorkerRequest.cs
- SchemaMapping.cs
- HasCopySemanticsAttribute.cs
- DataBindingCollectionConverter.cs
- MembershipPasswordException.cs
- EntityRecordInfo.cs
- RegexInterpreter.cs
- FontResourceCache.cs
- StatusBarDrawItemEvent.cs
- SortFieldComparer.cs
- MessageVersionConverter.cs
- OptionalColumn.cs
- AmbientEnvironment.cs
- NonSerializedAttribute.cs
- ToolTipService.cs
- PersistenceContext.cs
- TextBlock.cs
- _RequestCacheProtocol.cs
- XmlLoader.cs
- ResponseStream.cs
- XmlnsCache.cs
- SqlDataSourceCommandParser.cs
- MetadataItem.cs
- ConfigPathUtility.cs
- ListViewDeletedEventArgs.cs
- ToolStripPanelCell.cs
- PathFigureCollection.cs
- PopupEventArgs.cs
- ZipIOFileItemStream.cs
- FillErrorEventArgs.cs
- DataContract.cs
- MaskedTextBox.cs
- FaultDescription.cs
- WindowsTooltip.cs
- AppDomain.cs
- XmlAttributeOverrides.cs
- SoapSchemaMember.cs
- ValidationHelpers.cs
- TaskCanceledException.cs
- TypedTableGenerator.cs
- InstanceContextManager.cs
- TextBoxAutomationPeer.cs
- SqlParameter.cs
- ConfigUtil.cs
- SelectorItemAutomationPeer.cs
- WebPartHelpVerb.cs
- SortFieldComparer.cs
- TimeZone.cs
- SqlCacheDependencyDatabase.cs
- HttpModuleCollection.cs
- XmlCustomFormatter.cs
- InfiniteIntConverter.cs
- ElementMarkupObject.cs
- ImagingCache.cs
- ContextMarshalException.cs