Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- CommonObjectSecurity.cs
- WebPartZone.cs
- PixelShader.cs
- AvTrace.cs
- PageCatalogPart.cs
- RolePrincipal.cs
- CheckPair.cs
- DataGridHeaderBorder.cs
- Parameter.cs
- HandledEventArgs.cs
- NativeRecognizer.cs
- EntityDesignPluralizationHandler.cs
- CompModSwitches.cs
- IPipelineRuntime.cs
- MessageQueueException.cs
- ConstraintCollection.cs
- SmiGettersStream.cs
- DCSafeHandle.cs
- precedingsibling.cs
- HttpProcessUtility.cs
- TracePayload.cs
- SettingsBase.cs
- WebHttpBehavior.cs
- SoapIgnoreAttribute.cs
- HtmlTable.cs
- TextParagraphCache.cs
- MarshalByValueComponent.cs
- ControlPropertyNameConverter.cs
- safex509handles.cs
- EpmSourceTree.cs
- WinEventWrap.cs
- TypeDependencyAttribute.cs
- XPathNodeList.cs
- CustomExpressionEventArgs.cs
- sqlnorm.cs
- messageonlyhwndwrapper.cs
- FormView.cs
- CodeNamespace.cs
- GridEntryCollection.cs
- HostedNamedPipeTransportManager.cs
- HttpListenerContext.cs
- FixedTextPointer.cs
- TableParaClient.cs
- RepeatButton.cs
- MobileControlsSectionHelper.cs
- HitTestParameters3D.cs
- DynamicPropertyHolder.cs
- InvalidContentTypeException.cs
- HwndMouseInputProvider.cs
- FilterableData.cs
- BaseParser.cs
- GradientBrush.cs
- BufferAllocator.cs
- PersonalizationAdministration.cs
- GridProviderWrapper.cs
- MetadataCache.cs
- DataServiceRequest.cs
- Transform.cs
- ServiceSettingsResponseInfo.cs
- SqlDependencyUtils.cs
- DoWorkEventArgs.cs
- GridViewUpdatedEventArgs.cs
- Base64Encoder.cs
- WebPartMenuStyle.cs
- WebPartHelpVerb.cs
- OverrideMode.cs
- SystemThemeKey.cs
- TableLayoutRowStyleCollection.cs
- RelationshipFixer.cs
- BaseTemplateParser.cs
- ConsumerConnectionPointCollection.cs
- validationstate.cs
- Cast.cs
- ErrorProvider.cs
- SQLMoneyStorage.cs
- Binding.cs
- Restrictions.cs
- InputQueueChannel.cs
- ExceptionDetail.cs
- ProxySimple.cs
- SHA384Managed.cs
- XPathConvert.cs
- MultipleViewProviderWrapper.cs
- TableLayoutPanel.cs
- LocatorManager.cs
- LineGeometry.cs
- NavigatorInvalidBodyAccessException.cs
- XmlMemberMapping.cs
- PageStatePersister.cs
- OrderedDictionary.cs
- HttpModuleAction.cs
- ProcessStartInfo.cs
- CollectionContainer.cs
- BatchStream.cs
- PrintPreviewControl.cs
- SecurityContext.cs
- _DisconnectOverlappedAsyncResult.cs
- ReadContentAsBinaryHelper.cs
- Variable.cs
- DbMetaDataColumnNames.cs