Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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 [....]/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
- ConstNode.cs
- Publisher.cs
- ViewBase.cs
- errorpatternmatcher.cs
- BitmapMetadataEnumerator.cs
- DbMetaDataColumnNames.cs
- WriteLineDesigner.xaml.cs
- WebPartEditorApplyVerb.cs
- SmtpReplyReader.cs
- HandlerWithFactory.cs
- AssemblyResolver.cs
- DeadCharTextComposition.cs
- BoundingRectTracker.cs
- CSharpCodeProvider.cs
- LateBoundBitmapDecoder.cs
- EntityContainerRelationshipSet.cs
- WebBrowserContainer.cs
- DataBindingHandlerAttribute.cs
- SessionSymmetricTransportSecurityProtocolFactory.cs
- PackagingUtilities.cs
- _emptywebproxy.cs
- arclist.cs
- InternalConfigSettingsFactory.cs
- HighlightComponent.cs
- LayoutEditorPart.cs
- SRDisplayNameAttribute.cs
- _Win32.cs
- Serializer.cs
- XomlCompilerHelpers.cs
- MediaElementAutomationPeer.cs
- Selection.cs
- AsyncStreamReader.cs
- Attributes.cs
- ResourceAssociationTypeEnd.cs
- StylusPointCollection.cs
- EntityDataSourceChangedEventArgs.cs
- VisualStyleTypesAndProperties.cs
- View.cs
- BindingGraph.cs
- HitTestWithPointDrawingContextWalker.cs
- ConfigXmlCDataSection.cs
- FlowLayout.cs
- ItemCollection.cs
- LinkLabelLinkClickedEvent.cs
- XmlNamedNodeMap.cs
- TypeConverterAttribute.cs
- precedingquery.cs
- GlyphRun.cs
- ProxyWebPartManager.cs
- followingsibling.cs
- TemplateControl.cs
- CharacterBuffer.cs
- TableItemPatternIdentifiers.cs
- EdmItemCollection.cs
- LogManagementAsyncResult.cs
- StartFileNameEditor.cs
- ParsedAttributeCollection.cs
- ELinqQueryState.cs
- OrCondition.cs
- DictionarySectionHandler.cs
- PtsPage.cs
- SocketAddress.cs
- AuthenticatingEventArgs.cs
- KeyboardDevice.cs
- GridEntryCollection.cs
- SupportingTokenAuthenticatorSpecification.cs
- SqlFactory.cs
- BevelBitmapEffect.cs
- RawMouseInputReport.cs
- ContentDisposition.cs
- RemotingServices.cs
- XmlIlVisitor.cs
- dataobject.cs
- AnnotationStore.cs
- DesignerDataColumn.cs
- StyleXamlParser.cs
- DataAdapter.cs
- Win32KeyboardDevice.cs
- SchemaName.cs
- FolderBrowserDialogDesigner.cs
- SizeAnimationBase.cs
- EntityDataSourceQueryBuilder.cs
- SafeRightsManagementQueryHandle.cs
- MetadataAssemblyHelper.cs
- OutputScope.cs
- KeySpline.cs
- PtsCache.cs
- XPathSelectionIterator.cs
- StorageEntityTypeMapping.cs
- Substitution.cs
- GenerateTemporaryTargetAssembly.cs
- glyphs.cs
- ProfileService.cs
- querybuilder.cs
- CacheOutputQuery.cs
- OperandQuery.cs
- WebPartCatalogAddVerb.cs
- LocalBuilder.cs
- WebPartUtil.cs
- EntityDataSourceDataSelection.cs