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
- Hash.cs
- Viewport3DAutomationPeer.cs
- SerializerProvider.cs
- OleDbParameter.cs
- XmlHelper.cs
- Pair.cs
- Function.cs
- CollectionTypeElement.cs
- AsyncPostBackErrorEventArgs.cs
- BaseCAMarshaler.cs
- ExtensionDataObject.cs
- TaiwanCalendar.cs
- WaveHeader.cs
- BatchStream.cs
- SchemaElementLookUpTableEnumerator.cs
- WebPartActionVerb.cs
- SoapInteropTypes.cs
- PassportAuthentication.cs
- HttpRuntime.cs
- GridItem.cs
- QueryMath.cs
- BmpBitmapDecoder.cs
- WpfSharedXamlSchemaContext.cs
- ReadWriteSpinLock.cs
- ClientBuildManager.cs
- KnownTypesProvider.cs
- RadioButtonRenderer.cs
- XPathEmptyIterator.cs
- PreservationFileWriter.cs
- MimeBasePart.cs
- ProgressBarBrushConverter.cs
- StylusPointProperties.cs
- FrameworkReadOnlyPropertyMetadata.cs
- ResourceReferenceExpressionConverter.cs
- NavigationWindowAutomationPeer.cs
- BrowserDefinition.cs
- WasEndpointConfigContainer.cs
- SrgsGrammarCompiler.cs
- HitTestResult.cs
- SchemaConstraints.cs
- FragmentNavigationEventArgs.cs
- TextRangeAdaptor.cs
- LinearGradientBrush.cs
- SqlNotificationRequest.cs
- StreamInfo.cs
- UrlPropertyAttribute.cs
- TextRenderer.cs
- SqlRowUpdatedEvent.cs
- PropertyGridCommands.cs
- DrawingGroupDrawingContext.cs
- _SingleItemRequestCache.cs
- BulletedListEventArgs.cs
- Task.cs
- DataGridColumnCollectionEditor.cs
- Utils.cs
- Library.cs
- ComponentEditorPage.cs
- EndpointNameMessageFilter.cs
- IdentityNotMappedException.cs
- StringOutput.cs
- XPathMultyIterator.cs
- Accessible.cs
- HtmlFormAdapter.cs
- GridLengthConverter.cs
- ConfigurationStrings.cs
- PaintValueEventArgs.cs
- DocobjHost.cs
- GetRecipientRequest.cs
- ProcessModule.cs
- CompensationHandlingFilter.cs
- EventLogPermissionEntryCollection.cs
- FlowLayoutSettings.cs
- ConfigXmlWhitespace.cs
- ZipPackagePart.cs
- MailSettingsSection.cs
- HiddenFieldPageStatePersister.cs
- DrawingContext.cs
- AnchorEditor.cs
- SmiRecordBuffer.cs
- ObjectItemNoOpAssemblyLoader.cs
- DataTablePropertyDescriptor.cs
- SolidColorBrush.cs
- InvokeMemberBinder.cs
- CacheSection.cs
- DataGridViewComboBoxEditingControl.cs
- PublisherMembershipCondition.cs
- _SingleItemRequestCache.cs
- OdbcCommandBuilder.cs
- SettingsPropertyCollection.cs
- QueryOperationResponseOfT.cs
- XmlExtensionFunction.cs
- DataSourceHelper.cs
- CustomError.cs
- processwaithandle.cs
- Context.cs
- SamlSubjectStatement.cs
- UnsafeNativeMethods.cs
- GraphicsPath.cs
- Repeater.cs
- StringUtil.cs