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
- RSAOAEPKeyExchangeDeformatter.cs
- ObjectSet.cs
- Missing.cs
- SchemaSetCompiler.cs
- DbException.cs
- SmtpDateTime.cs
- AssemblyAttributes.cs
- XmlSecureResolver.cs
- SerialStream.cs
- DbTransaction.cs
- PersonalizationStateInfo.cs
- OracleBFile.cs
- AsymmetricSignatureDeformatter.cs
- SqlInternalConnectionTds.cs
- SpellerError.cs
- AdapterUtil.cs
- WSDualHttpSecurityElement.cs
- SynchronizedRandom.cs
- ResourceWriter.cs
- EncoderNLS.cs
- DesignerTransaction.cs
- PropertyMap.cs
- ImageBrush.cs
- Point3D.cs
- WebMethodAttribute.cs
- XmlComplianceUtil.cs
- ContextMenu.cs
- WebFormsRootDesigner.cs
- AnnotationResource.cs
- SliderAutomationPeer.cs
- LinkLabelLinkClickedEvent.cs
- ReadWriteControlDesigner.cs
- FileSystemInfo.cs
- ZoomPercentageConverter.cs
- PlatformNotSupportedException.cs
- BaseParser.cs
- ToolStripDropDownItem.cs
- ThreadSafeList.cs
- ApplicationException.cs
- SwitchAttribute.cs
- categoryentry.cs
- UrlMappingsModule.cs
- JapaneseLunisolarCalendar.cs
- SessionParameter.cs
- XmlnsCache.cs
- DbProviderSpecificTypePropertyAttribute.cs
- Message.cs
- SqlDependencyListener.cs
- PathSegmentCollection.cs
- BitmapEffectDrawingContextWalker.cs
- AssemblyNameProxy.cs
- SqlCacheDependency.cs
- WindowsToolbarAsMenu.cs
- FileDialog_Vista.cs
- RuleAttributes.cs
- FileReservationCollection.cs
- PersianCalendar.cs
- DataKey.cs
- COM2IProvidePropertyBuilderHandler.cs
- TaskFormBase.cs
- ListViewTableCell.cs
- PlainXmlDeserializer.cs
- HMACSHA512.cs
- KeyedCollection.cs
- PrintPreviewDialog.cs
- SqlConnectionString.cs
- RemoteWebConfigurationHostStream.cs
- _SslStream.cs
- IBuiltInEvidence.cs
- SimplePropertyEntry.cs
- DirectionalLight.cs
- SqlDuplicator.cs
- LineServices.cs
- ConfigUtil.cs
- DescendentsWalkerBase.cs
- DateTimeParse.cs
- Int32CollectionConverter.cs
- StreamResourceInfo.cs
- DataServiceHostFactory.cs
- Dispatcher.cs
- GridItemPattern.cs
- WindowsToolbarItemAsMenuItem.cs
- Tokenizer.cs
- TypeUtil.cs
- BeginEvent.cs
- EmptyReadOnlyDictionaryInternal.cs
- XmlSchemaCollection.cs
- ViewGenerator.cs
- BaseTemplateParser.cs
- TriggerAction.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- SqlRewriteScalarSubqueries.cs
- TableItemPattern.cs
- CodeMethodReturnStatement.cs
- SoapAttributes.cs
- InheritanceAttribute.cs
- NavigationCommands.cs
- CategoriesDocumentFormatter.cs
- DataGridViewSelectedCellCollection.cs
- BorderSidesEditor.cs