Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- Timer.cs
- StateWorkerRequest.cs
- DataServiceOperationContext.cs
- UITypeEditor.cs
- EmptyEnumerable.cs
- SQLInt32Storage.cs
- SQLGuid.cs
- ReflectEventDescriptor.cs
- Screen.cs
- ToolBarTray.cs
- ScriptingAuthenticationServiceSection.cs
- MenuStrip.cs
- ADMembershipProvider.cs
- Blend.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- RelationshipWrapper.cs
- DesigntimeLicenseContext.cs
- EventEntry.cs
- IsolatedStorageException.cs
- XmlValidatingReader.cs
- Serializer.cs
- Events.cs
- FileDialog.cs
- ChangeProcessor.cs
- EmptyEnumerator.cs
- DateRangeEvent.cs
- CommonDialog.cs
- InstanceDataCollectionCollection.cs
- WindowsListViewItemCheckBox.cs
- ParagraphVisual.cs
- ListenerElementsCollection.cs
- TrustExchangeException.cs
- FtpWebResponse.cs
- WebPartEditorApplyVerb.cs
- MenuTracker.cs
- UserControlDocumentDesigner.cs
- FreezableCollection.cs
- TableDetailsRow.cs
- MetadataSerializer.cs
- IndexedString.cs
- EventlogProvider.cs
- ConsumerConnectionPointCollection.cs
- MatrixKeyFrameCollection.cs
- SaveFileDialog.cs
- SourceElementsCollection.cs
- SQLResource.cs
- HashRepartitionStream.cs
- BamlRecordWriter.cs
- ProfilePropertyNameValidator.cs
- FixedDocumentPaginator.cs
- Label.cs
- XDeferredAxisSource.cs
- SelectionProviderWrapper.cs
- peersecurityelement.cs
- ContentTextAutomationPeer.cs
- DataBinder.cs
- TimeSpanConverter.cs
- Publisher.cs
- AvTrace.cs
- SelectionList.cs
- HttpFileCollectionWrapper.cs
- DesignerListAdapter.cs
- Pkcs7Recipient.cs
- AuthenticationService.cs
- XmlMessageFormatter.cs
- ColumnMapCopier.cs
- CreateUserWizard.cs
- DataSourceCache.cs
- RuntimeHandles.cs
- DocumentXmlWriter.cs
- GenericsInstances.cs
- HostExecutionContextManager.cs
- SqlBuilder.cs
- SystemUnicastIPAddressInformation.cs
- SecurityRuntime.cs
- JavaScriptString.cs
- TemplatedWizardStep.cs
- PropertyRecord.cs
- DocumentGrid.cs
- TraceLevelHelper.cs
- FillErrorEventArgs.cs
- MultiDataTrigger.cs
- DrawingAttributes.cs
- ReplacementText.cs
- HashSetDebugView.cs
- SchemaMapping.cs
- Comparer.cs
- ReferenceConverter.cs
- HostingEnvironment.cs
- StackBuilderSink.cs
- URIFormatException.cs
- TimeSpanMinutesConverter.cs
- CompareValidator.cs
- Button.cs
- ScrollContentPresenter.cs
- CodeGeneratorOptions.cs
- Camera.cs
- ScriptManager.cs
- ThreadPool.cs
- DependencyObject.cs