Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- ToolboxSnapDragDropEventArgs.cs
- Serializer.cs
- SiteMapDataSource.cs
- SqlConnectionFactory.cs
- StorageAssociationSetMapping.cs
- TypeNameConverter.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- RtfNavigator.cs
- DataContract.cs
- HostingPreferredMapPath.cs
- TextSelectionHelper.cs
- TimeoutException.cs
- TogglePattern.cs
- WmfPlaceableFileHeader.cs
- ToolStripGrip.cs
- NonBatchDirectoryCompiler.cs
- StatusBarAutomationPeer.cs
- Debugger.cs
- MultiSelector.cs
- FacetChecker.cs
- Overlapped.cs
- Int64.cs
- FunctionImportMapping.cs
- Underline.cs
- DrawingContextDrawingContextWalker.cs
- TraceData.cs
- ParameterDataSourceExpression.cs
- EmbeddedMailObject.cs
- DbXmlEnabledProviderManifest.cs
- BitConverter.cs
- EventRoute.cs
- FakeModelItemImpl.cs
- DbBuffer.cs
- DecimalKeyFrameCollection.cs
- ToolStripItemClickedEventArgs.cs
- WebPartTransformerCollection.cs
- BulletDecorator.cs
- MetadataPropertyCollection.cs
- TraceData.cs
- TextBlock.cs
- WorkBatch.cs
- ScriptBehaviorDescriptor.cs
- ListControl.cs
- RenderingEventArgs.cs
- ToolStripDropDown.cs
- DataGridViewTextBoxEditingControl.cs
- HttpAsyncResult.cs
- XPathBuilder.cs
- DataPointer.cs
- RecommendedAsConfigurableAttribute.cs
- Configuration.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- MultiPageTextView.cs
- LayoutEditorPart.cs
- OlePropertyStructs.cs
- ServerTooBusyException.cs
- DictionaryGlobals.cs
- ContentType.cs
- AssemblyAssociatedContentFileAttribute.cs
- DataSvcMapFileSerializer.cs
- JapaneseLunisolarCalendar.cs
- InvalidateEvent.cs
- UnorderedHashRepartitionStream.cs
- TextControl.cs
- TileBrush.cs
- ErrorRuntimeConfig.cs
- ListBox.cs
- PropertyDescriptorGridEntry.cs
- StringConcat.cs
- LogWriteRestartAreaState.cs
- SurrogateEncoder.cs
- ParenthesizePropertyNameAttribute.cs
- _UncName.cs
- ImageClickEventArgs.cs
- StylusShape.cs
- ListViewGroupItemCollection.cs
- ListViewCommandEventArgs.cs
- ColorDialog.cs
- ColumnResizeUndoUnit.cs
- ActivityCodeDomSerializationManager.cs
- EditingMode.cs
- BufferBuilder.cs
- OpenFileDialog.cs
- InstanceData.cs
- StackBuilderSink.cs
- IisTraceListener.cs
- OletxTransactionManager.cs
- ViewStateException.cs
- QilList.cs
- Int16Storage.cs
- FormsAuthenticationEventArgs.cs
- DataServiceQueryProvider.cs
- CLRBindingWorker.cs
- StylusDevice.cs
- IncrementalReadDecoders.cs
- Shape.cs
- FunctionParameter.cs
- COMException.cs
- DataBindingHandlerAttribute.cs
- XmlSortKey.cs