Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / MS / Internal / KnownBoxes.cs / 1 / KnownBoxes.cs
using System; using System.Windows; using System.Windows.Media; using MS.Internal.PresentationCore; namespace MS.Internal.KnownBoxes { [FriendAccessAllowed] // Built into Core, also used by Framework. internal static class FillRuleBoxes { internal static object EvenOddBox = FillRule.EvenOdd; internal static object NonzeroBox = FillRule.Nonzero; internal static object Box(FillRule value) { if (value == FillRule.Nonzero) { return NonzeroBox; } else { return EvenOddBox; } } } [FriendAccessAllowed] // Built into Core, also used by Framework. internal static class VisibilityBoxes { internal static object VisibleBox = Visibility.Visible; internal static object HiddenBox = Visibility.Hidden; internal static object CollapsedBox = Visibility.Collapsed; internal static object Box(Visibility value) { if (value == Visibility.Visible) { return VisibleBox; } else if (value == Visibility.Hidden) { return HiddenBox; } else { return CollapsedBox; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Windows; using System.Windows.Media; using MS.Internal.PresentationCore; namespace MS.Internal.KnownBoxes { [FriendAccessAllowed] // Built into Core, also used by Framework. internal static class FillRuleBoxes { internal static object EvenOddBox = FillRule.EvenOdd; internal static object NonzeroBox = FillRule.Nonzero; internal static object Box(FillRule value) { if (value == FillRule.Nonzero) { return NonzeroBox; } else { return EvenOddBox; } } } [FriendAccessAllowed] // Built into Core, also used by Framework. internal static class VisibilityBoxes { internal static object VisibleBox = Visibility.Visible; internal static object HiddenBox = Visibility.Hidden; internal static object CollapsedBox = Visibility.Collapsed; internal static object Box(Visibility value) { if (value == Visibility.Visible) { return VisibleBox; } else if (value == Visibility.Hidden) { return HiddenBox; } else { return CollapsedBox; } } } } // 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
- TraceUtility.cs
- ResXResourceWriter.cs
- VectorKeyFrameCollection.cs
- ListViewGroupCollectionEditor.cs
- _SpnDictionary.cs
- XmlSchemaSet.cs
- WindowsListViewSubItem.cs
- StyleModeStack.cs
- ReflectEventDescriptor.cs
- MessageSmuggler.cs
- SwitchLevelAttribute.cs
- OrderedDictionaryStateHelper.cs
- DataBinding.cs
- SetterBaseCollection.cs
- MailMessage.cs
- InternalTypeHelper.cs
- XmlResolver.cs
- BaseDataListComponentEditor.cs
- EntityDataSourceWrapperCollection.cs
- ReadOnlyCollectionBase.cs
- DataListCommandEventArgs.cs
- ColorDialog.cs
- ItemList.cs
- Html32TextWriter.cs
- oledbmetadatacollectionnames.cs
- Vector3DCollection.cs
- DataViewManagerListItemTypeDescriptor.cs
- PackageProperties.cs
- SqlParameter.cs
- QueryAccessibilityHelpEvent.cs
- SkewTransform.cs
- StateDesigner.TransitionInfo.cs
- ListArgumentProvider.cs
- DataControlLinkButton.cs
- ExternalException.cs
- SymbolMethod.cs
- AnnotationComponentManager.cs
- TileBrush.cs
- COM2ExtendedUITypeEditor.cs
- JulianCalendar.cs
- DnsPermission.cs
- ToolboxComponentsCreatedEventArgs.cs
- CompModSwitches.cs
- Visual3D.cs
- ProcessModelSection.cs
- DataGridTablesFactory.cs
- Substitution.cs
- Asn1IntegerConverter.cs
- XpsInterleavingPolicy.cs
- ToolStripDropDownMenu.cs
- StylusLogic.cs
- DbDataSourceEnumerator.cs
- CorePropertiesFilter.cs
- FileStream.cs
- Preprocessor.cs
- AlternateViewCollection.cs
- documentsequencetextview.cs
- XmlSchemaCompilationSettings.cs
- TypeUtils.cs
- PrintController.cs
- JpegBitmapDecoder.cs
- JsonWriter.cs
- SerialReceived.cs
- Utils.cs
- SchemaRegistration.cs
- FileDialog.cs
- UrlMappingCollection.cs
- Matrix.cs
- MultiSelector.cs
- FacetChecker.cs
- XsltLibrary.cs
- TemplateApplicationHelper.cs
- HtmlInputSubmit.cs
- InternalConfigHost.cs
- ObjectItemCollection.cs
- State.cs
- GrammarBuilderWildcard.cs
- TextEffectCollection.cs
- CqlBlock.cs
- dbdatarecord.cs
- CapabilitiesSection.cs
- MetadataUtilsSmi.cs
- ControlValuePropertyAttribute.cs
- BaseTypeViewSchema.cs
- OleDbParameterCollection.cs
- UInt16Storage.cs
- XmlWrappingReader.cs
- WorkflowPersistenceService.cs
- NamespaceDecl.cs
- Menu.cs
- RequestContext.cs
- WindowsToolbar.cs
- DataServiceContext.cs
- Single.cs
- AppLevelCompilationSectionCache.cs
- ClientBuildManagerCallback.cs
- XsdDateTime.cs
- DecimalAnimationBase.cs
- QuaternionKeyFrameCollection.cs
- TransportChannelListener.cs