Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- JournalNavigationScope.cs
- TemplateBindingExtensionConverter.cs
- FlowLayout.cs
- NameNode.cs
- PaintEvent.cs
- ElementUtil.cs
- LinqDataSourceValidationException.cs
- RequestCache.cs
- ScriptRegistrationManager.cs
- CursorConverter.cs
- VersionedStream.cs
- StylusSystemGestureEventArgs.cs
- MethodToken.cs
- XmlAttributeHolder.cs
- DataGridViewIntLinkedList.cs
- TrustManagerMoreInformation.cs
- ListBase.cs
- ValueProviderWrapper.cs
- ProvidePropertyAttribute.cs
- ActivityMarkupSerializer.cs
- ToolStripItemBehavior.cs
- MultiTouchSystemGestureLogic.cs
- TextCharacters.cs
- StandardCommandToolStripMenuItem.cs
- AttachedPropertyBrowsableAttribute.cs
- HtmlWindow.cs
- HiddenFieldPageStatePersister.cs
- EntryIndex.cs
- DataGridPagerStyle.cs
- SystemFonts.cs
- Paragraph.cs
- DrawTreeNodeEventArgs.cs
- SqlPersonalizationProvider.cs
- Rect3D.cs
- CodeDelegateInvokeExpression.cs
- MenuBindingsEditorForm.cs
- CommandHelper.cs
- StorageMappingItemLoader.cs
- ShadowGlyph.cs
- SiteMap.cs
- CrossContextChannel.cs
- WebPartConnectionCollection.cs
- COM2PictureConverter.cs
- XmlDataLoader.cs
- EncryptedPackageFilter.cs
- XPathArrayIterator.cs
- ActivityInfo.cs
- _CookieModule.cs
- InvalidCommandTreeException.cs
- WpfPayload.cs
- SQLBinaryStorage.cs
- Part.cs
- MapPathBasedVirtualPathProvider.cs
- BitmapFrameDecode.cs
- Stream.cs
- DocumentViewerBase.cs
- ClientViaElement.cs
- ConnectAlgorithms.cs
- AddingNewEventArgs.cs
- AudioLevelUpdatedEventArgs.cs
- XmlTextReaderImpl.cs
- MenuScrollingVisibilityConverter.cs
- HttpEncoderUtility.cs
- CheckBox.cs
- X509CertificateChain.cs
- VariableExpressionConverter.cs
- FlowDocumentReader.cs
- QueryContinueDragEventArgs.cs
- DataGrid.cs
- ErrorWebPart.cs
- FamilyMapCollection.cs
- X509ThumbprintKeyIdentifierClause.cs
- DrawingBrush.cs
- LinqDataSourceStatusEventArgs.cs
- DeviceOverridableAttribute.cs
- ValueProviderWrapper.cs
- ValidationError.cs
- OleDbDataReader.cs
- CalendarData.cs
- SQLResource.cs
- HMAC.cs
- QueryExpr.cs
- WindowsFont.cs
- _NTAuthentication.cs
- PowerStatus.cs
- RtfToXamlReader.cs
- QilLoop.cs
- WebConfigurationFileMap.cs
- XmlSortKey.cs
- WebPartsPersonalizationAuthorization.cs
- ToolboxComponentsCreatingEventArgs.cs
- LOSFormatter.cs
- InheritanceAttribute.cs
- X500Name.cs
- ProcessManager.cs
- HelloMessage11.cs
- Error.cs
- XmlSchemaDocumentation.cs
- ExceptionHandlers.cs
- ProcessModuleCollection.cs