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
- WCFModelStrings.Designer.cs
- HtmlInputText.cs
- Label.cs
- UserControl.cs
- ReflectionUtil.cs
- BindToObject.cs
- WorkflowServiceNamespace.cs
- HtmlInputText.cs
- TextEffectResolver.cs
- VectorConverter.cs
- MsmqTransportSecurity.cs
- BufferModeSettings.cs
- Operator.cs
- FtpWebRequest.cs
- NavigationPropertyAccessor.cs
- ClientSponsor.cs
- FileChangesMonitor.cs
- storepermission.cs
- DependencyPropertyChangedEventArgs.cs
- StringSource.cs
- InstanceKeyCompleteException.cs
- EditorZone.cs
- ChildChangedEventArgs.cs
- CompilationLock.cs
- ISessionStateStore.cs
- LowerCaseStringConverter.cs
- FixedSOMTableCell.cs
- IODescriptionAttribute.cs
- PropertyGridView.cs
- TemplateControlParser.cs
- Collection.cs
- EventSinkActivityDesigner.cs
- PageBreakRecord.cs
- RichTextBox.cs
- DataSetUtil.cs
- ProjectionCamera.cs
- NetMsmqSecurity.cs
- SqlTransaction.cs
- ExtendedTransformFactory.cs
- UpdateManifestForBrowserApplication.cs
- BitmapFrame.cs
- InternalConfigEventArgs.cs
- ImageBrush.cs
- LineInfo.cs
- IconConverter.cs
- DoubleKeyFrameCollection.cs
- SplitterEvent.cs
- ObfuscationAttribute.cs
- BuildProvider.cs
- DataViewListener.cs
- XPathDocument.cs
- TraceUtility.cs
- EdmItemCollection.cs
- ScrollBar.cs
- TypedAsyncResult.cs
- TextDecorationLocationValidation.cs
- VectorValueSerializer.cs
- RemoteWebConfigurationHost.cs
- SizeChangedInfo.cs
- ContainerParaClient.cs
- DataTemplateSelector.cs
- SiteMapNode.cs
- ResourceCategoryAttribute.cs
- GenerateTemporaryTargetAssembly.cs
- RbTree.cs
- COM2ExtendedUITypeEditor.cs
- OracleTimeSpan.cs
- CriticalFinalizerObject.cs
- FilterEventArgs.cs
- InkCollectionBehavior.cs
- NamedPipeAppDomainProtocolHandler.cs
- RowType.cs
- XamlSerializerUtil.cs
- TraceXPathNavigator.cs
- ReachUIElementCollectionSerializerAsync.cs
- DnsPermission.cs
- KeyInterop.cs
- NameValuePair.cs
- RayHitTestParameters.cs
- MeshGeometry3D.cs
- MaskedTextBoxDesigner.cs
- EntityDataSourceSelectingEventArgs.cs
- FileDialogCustomPlace.cs
- LocalBuilder.cs
- ColorConvertedBitmapExtension.cs
- ReadOnlyObservableCollection.cs
- GuidTagList.cs
- AssemblyNameProxy.cs
- MetadataWorkspace.cs
- ToolStripManager.cs
- Vector3DKeyFrameCollection.cs
- InstanceKeyCompleteException.cs
- LinearKeyFrames.cs
- SpellCheck.cs
- DataReceivedEventArgs.cs
- XPathNavigator.cs
- TagMapInfo.cs
- VisualTreeUtils.cs
- EventListenerClientSide.cs
- XhtmlConformanceSection.cs