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
- TextReader.cs
- StreamDocument.cs
- UrlMapping.cs
- Command.cs
- WindowShowOrOpenTracker.cs
- DateTimePicker.cs
- MessageQueueKey.cs
- DataSourceCollectionBase.cs
- XmlMemberMapping.cs
- ListViewSortEventArgs.cs
- HttpHandlerActionCollection.cs
- DataSourceSelectArguments.cs
- MetaModel.cs
- ConfigXmlDocument.cs
- HyperlinkAutomationPeer.cs
- ContextMarshalException.cs
- EventSetter.cs
- SmtpFailedRecipientsException.cs
- StrokeIntersection.cs
- CompositeKey.cs
- RsaSecurityKey.cs
- DateTimeFormatInfo.cs
- wpf-etw.cs
- cookiecontainer.cs
- FormsAuthenticationModule.cs
- PolicyVersion.cs
- EditBehavior.cs
- WebPartTransformerAttribute.cs
- DeploymentExceptionMapper.cs
- ContextProperty.cs
- ResXResourceSet.cs
- ConfigurationLockCollection.cs
- FormsAuthenticationTicket.cs
- SafeEventHandle.cs
- OlePropertyStructs.cs
- ConnectionProviderAttribute.cs
- CollectionViewSource.cs
- CopyNodeSetAction.cs
- HttpFileCollection.cs
- TraceSource.cs
- XmlSchemaDatatype.cs
- HuffModule.cs
- DataDocumentXPathNavigator.cs
- ControlBindingsCollection.cs
- XmlElementList.cs
- OdbcParameterCollection.cs
- DesignerSerializationOptionsAttribute.cs
- SimpleApplicationHost.cs
- IntranetCredentialPolicy.cs
- MenuItemBindingCollection.cs
- MailMessageEventArgs.cs
- namescope.cs
- DiscoveryServerProtocol.cs
- StyleXamlParser.cs
- coordinator.cs
- AtomPub10ServiceDocumentFormatter.cs
- TransactionTable.cs
- SessionStateContainer.cs
- EnlistmentTraceIdentifier.cs
- DownloadProgressEventArgs.cs
- GeneratedCodeAttribute.cs
- XmlSchemaInferenceException.cs
- RegexCharClass.cs
- PartialArray.cs
- DbDataAdapter.cs
- PerformanceCounters.cs
- WindowsComboBox.cs
- FontUnit.cs
- WindowsGraphicsWrapper.cs
- Control.cs
- IndexExpression.cs
- Viewport3DVisual.cs
- XmlNamespaceManager.cs
- WorkflowDataContext.cs
- SqlReferenceCollection.cs
- HashAlgorithm.cs
- TypeSemantics.cs
- StringValidatorAttribute.cs
- DocumentXmlWriter.cs
- TableColumnCollection.cs
- OpenFileDialog.cs
- FilteredDataSetHelper.cs
- WindowsListViewScroll.cs
- ProfilePropertyNameValidator.cs
- CanonicalXml.cs
- Rfc2898DeriveBytes.cs
- DmlSqlGenerator.cs
- TypeDelegator.cs
- EditingMode.cs
- RequestValidator.cs
- CompoundFileIOPermission.cs
- HostingMessageProperty.cs
- BasicHttpSecurityElement.cs
- Frame.cs
- PropertyGrid.cs
- DbConnectionClosed.cs
- SuspendDesigner.cs
- UnsafeNativeMethods.cs
- DocumentOrderQuery.cs
- EmbeddedMailObjectsCollection.cs