Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Shared / MS / Internal / Generated / AlignmentYValidation.cs / 1 / AlignmentYValidation.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 IsAlignmentYValid(object valueObject) { AlignmentY value = (AlignmentY) valueObject; return (value == AlignmentY.Top) || (value == AlignmentY.Center) || (value == AlignmentY.Bottom); } } } // 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 IsAlignmentYValid(object valueObject) { AlignmentY value = (AlignmentY) valueObject; return (value == AlignmentY.Top) || (value == AlignmentY.Center) || (value == AlignmentY.Bottom); } } } // 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
- DataFormats.cs
- AutomationIdentifierGuids.cs
- CriticalFinalizerObject.cs
- XmlAttribute.cs
- DataGridSortCommandEventArgs.cs
- PartialCachingControl.cs
- MemberDescriptor.cs
- TaskFormBase.cs
- SByte.cs
- ExpressionConverter.cs
- SystemPens.cs
- XmlSerializationReader.cs
- PrePostDescendentsWalker.cs
- Model3D.cs
- bindurihelper.cs
- ExpressionTextBox.xaml.cs
- KeyGestureConverter.cs
- XmlAttribute.cs
- SettingsPropertyIsReadOnlyException.cs
- TimelineCollection.cs
- AutomationElementIdentifiers.cs
- PersonalizationDictionary.cs
- BaseResourcesBuildProvider.cs
- Int16AnimationUsingKeyFrames.cs
- TabControl.cs
- Clause.cs
- TreeNode.cs
- SecurityException.cs
- WebConfigurationHost.cs
- TransactionInterop.cs
- MatrixAnimationUsingPath.cs
- MemoryStream.cs
- ConfigXmlAttribute.cs
- ScrollChangedEventArgs.cs
- WindowsStatusBar.cs
- ZoneButton.cs
- NamespaceMapping.cs
- ListViewContainer.cs
- Clause.cs
- WithParamAction.cs
- QilSortKey.cs
- DeferredTextReference.cs
- WebEventTraceProvider.cs
- Int16Animation.cs
- ReflectionUtil.cs
- CommandBinding.cs
- EncoderBestFitFallback.cs
- Invariant.cs
- PackageProperties.cs
- ModelItemImpl.cs
- ListBindingHelper.cs
- XmlSchemaSimpleContent.cs
- GraphicsPath.cs
- RealProxy.cs
- ModelTreeEnumerator.cs
- SchemaElementDecl.cs
- ExtendedPropertyInfo.cs
- StopStoryboard.cs
- ToolStripDropDownClosedEventArgs.cs
- DrawingBrush.cs
- SpnegoTokenAuthenticator.cs
- ServiceOperation.cs
- ScrollPatternIdentifiers.cs
- TrustManager.cs
- XmlNullResolver.cs
- AbstractDataSvcMapFileLoader.cs
- ProtocolsConfiguration.cs
- TemplatedWizardStep.cs
- ListItemCollection.cs
- X509CertificateValidator.cs
- LinqDataSourceView.cs
- TimeSpanConverter.cs
- X509SubjectKeyIdentifierClause.cs
- GlobalizationSection.cs
- RangeContentEnumerator.cs
- BinaryMessageEncoder.cs
- ItemCheckedEvent.cs
- AuthenticationModulesSection.cs
- ClosableStream.cs
- TdsEnums.cs
- CommandID.cs
- GridPattern.cs
- DocumentGrid.cs
- IPAddressCollection.cs
- EndOfStreamException.cs
- XamlToRtfParser.cs
- RowParagraph.cs
- SuppressIldasmAttribute.cs
- ProcessMonitor.cs
- CodePageEncoding.cs
- TextBoxDesigner.cs
- ChannelDispatcher.cs
- CustomValidator.cs
- Button.cs
- DnsPermission.cs
- MetadataCollection.cs
- Rect3D.cs
- MappingSource.cs
- StorageConditionPropertyMapping.cs
- Image.cs