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
- CodeMemberField.cs
- SqlDataSourceCustomCommandEditor.cs
- TextEditorCopyPaste.cs
- RuntimeIdentifierPropertyAttribute.cs
- SystemResourceHost.cs
- DbProviderSpecificTypePropertyAttribute.cs
- ReplyChannel.cs
- CatalogZoneDesigner.cs
- FixedSOMLineCollection.cs
- CreateSequence.cs
- AuthenticationModulesSection.cs
- WindowsToolbar.cs
- FigureParagraph.cs
- LabelInfo.cs
- ObjectDataSourceStatusEventArgs.cs
- PersonalizableTypeEntry.cs
- DataGridViewCellParsingEventArgs.cs
- InputMethod.cs
- BaseCAMarshaler.cs
- ImportCatalogPart.cs
- CapiNative.cs
- ConfigurationSection.cs
- MetaData.cs
- ObfuscationAttribute.cs
- CollectionViewProxy.cs
- DataViewManagerListItemTypeDescriptor.cs
- CodeNamespace.cs
- SerializerDescriptor.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- ConfigurationPropertyAttribute.cs
- RequestCachePolicyConverter.cs
- Icon.cs
- CatalogZoneDesigner.cs
- DefaultValueTypeConverter.cs
- KeyEventArgs.cs
- AxHost.cs
- SpellCheck.cs
- PrimitiveSchema.cs
- ReflectionPermission.cs
- SqlRewriteScalarSubqueries.cs
- CreateUserErrorEventArgs.cs
- ArgumentException.cs
- EncoderFallback.cs
- GZipStream.cs
- Link.cs
- EntityDataSourceQueryBuilder.cs
- AttachedPropertyInfo.cs
- WriteFileContext.cs
- StyleSheet.cs
- ObjectDataSource.cs
- Speller.cs
- PolyBezierSegment.cs
- TextSelection.cs
- SignatureSummaryDialog.cs
- DiscoveryEndpointElement.cs
- TableAutomationPeer.cs
- InputMethodStateChangeEventArgs.cs
- IISMapPath.cs
- FormatVersion.cs
- DesignerRegion.cs
- ProjectionPruner.cs
- LoginUtil.cs
- EntityTemplateFactory.cs
- QueueException.cs
- SkewTransform.cs
- RawStylusActions.cs
- CompositeScriptReferenceEventArgs.cs
- SqlUserDefinedAggregateAttribute.cs
- DisposableCollectionWrapper.cs
- MeasureData.cs
- SafeNativeMemoryHandle.cs
- MsdtcWrapper.cs
- CharKeyFrameCollection.cs
- BrushMappingModeValidation.cs
- RegexCompiler.cs
- HttpProfileBase.cs
- EntityDesignerUtils.cs
- UIElement.cs
- SafeEventLogWriteHandle.cs
- KnownBoxes.cs
- CompositeActivityDesigner.cs
- EditCommandColumn.cs
- DbDataAdapter.cs
- HuffModule.cs
- UrlPath.cs
- IisTraceWebEventProvider.cs
- Delegate.cs
- TextDocumentView.cs
- ValidationHelper.cs
- KeyEvent.cs
- DataGridViewCell.cs
- DelegateSerializationHolder.cs
- NetSectionGroup.cs
- MetadataItemSerializer.cs
- ResXResourceSet.cs
- ControlPropertyNameConverter.cs
- _NegotiateClient.cs
- NativeRightsManagementAPIsStructures.cs
- Line.cs
- ReflectionUtil.cs