Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------------- // //// 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
- GACMembershipCondition.cs
- XslVisitor.cs
- ReferenceSchema.cs
- CallbackException.cs
- DataKey.cs
- GenericUriParser.cs
- ActiveXContainer.cs
- XmlUrlResolver.cs
- SettingsProperty.cs
- ArcSegment.cs
- DefaultHttpHandler.cs
- KeyboardDevice.cs
- AssemblySettingAttributes.cs
- WebBrowserNavigatedEventHandler.cs
- FieldBuilder.cs
- BezierSegment.cs
- CacheDict.cs
- DataServiceQueryOfT.cs
- UIAgentMonitorHandle.cs
- Config.cs
- CharAnimationUsingKeyFrames.cs
- ExceptionAggregator.cs
- ActiveXHelper.cs
- ScrollChangedEventArgs.cs
- DataTableNewRowEvent.cs
- ThicknessAnimationUsingKeyFrames.cs
- DBNull.cs
- WebSysDisplayNameAttribute.cs
- SourceFileBuildProvider.cs
- UnsafeNativeMethods.cs
- QueryAccessibilityHelpEvent.cs
- DependencyObjectProvider.cs
- EncodingTable.cs
- NumberSubstitution.cs
- EntityContainerAssociationSet.cs
- DataProtection.cs
- HandlerWithFactory.cs
- DBSqlParser.cs
- SingleAnimationUsingKeyFrames.cs
- CrossAppDomainChannel.cs
- OutputScopeManager.cs
- ChangeDirector.cs
- HyperlinkAutomationPeer.cs
- Int64Converter.cs
- SkinBuilder.cs
- ConstructorNeedsTagAttribute.cs
- CodeNamespaceCollection.cs
- IdentityNotMappedException.cs
- LogManagementAsyncResult.cs
- XmlBinaryWriterSession.cs
- LabelDesigner.cs
- QuaternionAnimationUsingKeyFrames.cs
- Internal.cs
- Speller.cs
- EntityDataSourceStatementEditor.cs
- TimeStampChecker.cs
- SqlNotificationEventArgs.cs
- ProcessInputEventArgs.cs
- AppearanceEditorPart.cs
- Animatable.cs
- SendActivity.cs
- SystemIcmpV4Statistics.cs
- DBAsyncResult.cs
- ThemeInfoAttribute.cs
- WindowsListViewSubItem.cs
- DataGridViewRowPrePaintEventArgs.cs
- FastEncoder.cs
- DocumentViewer.cs
- WindowsGraphicsCacheManager.cs
- PageCopyCount.cs
- TrackBarRenderer.cs
- SinglePageViewer.cs
- PhonemeEventArgs.cs
- BufferAllocator.cs
- ImageSource.cs
- Int32AnimationBase.cs
- DataGridViewButtonColumn.cs
- WebRequest.cs
- XamlLoadErrorInfo.cs
- PersonalizationState.cs
- Nodes.cs
- IndexedString.cs
- HtmlInputSubmit.cs
- ProcessModelInfo.cs
- ADMembershipUser.cs
- DataKey.cs
- DesignRelation.cs
- ArrayList.cs
- VectorAnimationBase.cs
- ParallelActivityDesigner.cs
- DesignerTextBoxAdapter.cs
- LoginUtil.cs
- ExeConfigurationFileMap.cs
- RolePrincipal.cs
- GeneralTransform3D.cs
- Pkcs7Recipient.cs
- DispatchWrapper.cs
- ReadContentAsBinaryHelper.cs
- AccessedThroughPropertyAttribute.cs
- BindingValueChangedEventArgs.cs