Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / MS / Internal / KnownBoxes.cs / 1305600 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CollectionDataContractAttribute.cs
- NameValueSectionHandler.cs
- PatternMatcher.cs
- EffectiveValueEntry.cs
- XamlParser.cs
- ControlBindingsCollection.cs
- MenuRendererClassic.cs
- DataGridViewColumnStateChangedEventArgs.cs
- DescendantOverDescendantQuery.cs
- WebPartAddingEventArgs.cs
- SystemPens.cs
- XmlSchemaParticle.cs
- XmlSchemaAny.cs
- EntityDataSourceContextCreatedEventArgs.cs
- ChildTable.cs
- HwndTarget.cs
- OracleNumber.cs
- PerfService.cs
- HtmlInputReset.cs
- ConfigurationException.cs
- TimeSpan.cs
- BuildProvider.cs
- ToolBarPanel.cs
- CollectionChangedEventManager.cs
- SspiSafeHandles.cs
- XmlArrayItemAttributes.cs
- DataListCommandEventArgs.cs
- BitVector32.cs
- HttpContext.cs
- ListItem.cs
- KeyboardDevice.cs
- SQLChars.cs
- MultiPartWriter.cs
- NamedPipeTransportSecurity.cs
- XmlMembersMapping.cs
- SerialReceived.cs
- PixelFormat.cs
- SqlAggregateChecker.cs
- Dynamic.cs
- GridItemPattern.cs
- HttpInputStream.cs
- CTreeGenerator.cs
- HandlerBase.cs
- DrawingImage.cs
- CurrentChangingEventManager.cs
- SourceChangedEventArgs.cs
- Bidi.cs
- CollectionViewGroup.cs
- ACL.cs
- RolePrincipal.cs
- TextContainerHelper.cs
- ExtentJoinTreeNode.cs
- SqlCharStream.cs
- MD5.cs
- Missing.cs
- FontCacheLogic.cs
- IsolatedStorageFile.cs
- SettingsPropertyValueCollection.cs
- XDeferredAxisSource.cs
- _OverlappedAsyncResult.cs
- UIntPtr.cs
- RandomNumberGenerator.cs
- ToolStripProgressBar.cs
- DataGridViewCellCancelEventArgs.cs
- GroupBoxAutomationPeer.cs
- Grant.cs
- CommandLibraryHelper.cs
- CompareValidator.cs
- BamlReader.cs
- CodeExporter.cs
- ColumnCollection.cs
- XmlSchemaSet.cs
- SimpleTypesSurrogate.cs
- DesignTimeParseData.cs
- ControlsConfig.cs
- DispatchChannelSink.cs
- Debug.cs
- StringAnimationBase.cs
- SrgsDocument.cs
- RTLAwareMessageBox.cs
- EnumUnknown.cs
- Underline.cs
- DurationConverter.cs
- WebPartAddingEventArgs.cs
- SignedInfo.cs
- StreamGeometryContext.cs
- CommandConverter.cs
- NameHandler.cs
- XDRSchema.cs
- MenuAdapter.cs
- PathParser.cs
- PropertyEmitter.cs
- ReadOnlyDataSource.cs
- SqlWorkflowInstanceStoreLock.cs
- MemoryPressure.cs
- Set.cs
- BmpBitmapDecoder.cs
- CanonicalFontFamilyReference.cs
- SqlCacheDependencySection.cs
- XmlSchemaSimpleTypeList.cs