Code:
/ 4.0 / 4.0 / 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. 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
- XmlSchemaAttributeGroupRef.cs
- VoiceObjectToken.cs
- VisualTreeHelper.cs
- LoginUtil.cs
- XmlSortKey.cs
- PingOptions.cs
- MediaElement.cs
- LoginName.cs
- MenuEventArgs.cs
- StringWriter.cs
- SafeViewOfFileHandle.cs
- PlatformNotSupportedException.cs
- URLString.cs
- BitSet.cs
- EventLogRecord.cs
- XmlNode.cs
- UTF8Encoding.cs
- SecuritySessionSecurityTokenAuthenticator.cs
- LookupBindingPropertiesAttribute.cs
- UInt32.cs
- WindowCollection.cs
- EnterpriseServicesHelper.cs
- CodeMemberProperty.cs
- RawMouseInputReport.cs
- FixedFindEngine.cs
- PersistenceException.cs
- ElementFactory.cs
- UpWmlPageAdapter.cs
- CodeSubDirectoriesCollection.cs
- TableAutomationPeer.cs
- RuleElement.cs
- GlyphsSerializer.cs
- ServiceDescriptionSerializer.cs
- WindowsRebar.cs
- CriticalHandle.cs
- ServiceOperation.cs
- CustomWebEventKey.cs
- ValueChangedEventManager.cs
- MappingMetadataHelper.cs
- GPStream.cs
- TextTreeInsertElementUndoUnit.cs
- XmlSchemaIdentityConstraint.cs
- EditorOptionAttribute.cs
- SoapAttributeAttribute.cs
- TextSpan.cs
- EtwTrackingBehaviorElement.cs
- SoapClientProtocol.cs
- SerializationInfo.cs
- DynamicPropertyReader.cs
- SqlRowUpdatingEvent.cs
- WindowsFormsSynchronizationContext.cs
- FormViewDeleteEventArgs.cs
- InvalidWMPVersionException.cs
- InertiaExpansionBehavior.cs
- TextServicesProperty.cs
- ComboBoxAutomationPeer.cs
- XamlGridLengthSerializer.cs
- Attributes.cs
- DynamicFilter.cs
- Int16Animation.cs
- TemplateControlParser.cs
- SmiEventSink.cs
- WebFormDesignerActionService.cs
- Content.cs
- DataGridCaption.cs
- OptimalBreakSession.cs
- ResXFileRef.cs
- Parameter.cs
- DataSourceSerializationException.cs
- FormViewDeletedEventArgs.cs
- versioninfo.cs
- AnimationStorage.cs
- PropertyMap.cs
- DataBoundControl.cs
- EventProviderWriter.cs
- MarkupProperty.cs
- GeneralEndpointIdentity.cs
- ScriptManager.cs
- BypassElement.cs
- DispatcherHooks.cs
- MatrixAnimationUsingPath.cs
- LogicalChannelCollection.cs
- RadioButtonRenderer.cs
- EncryptedKey.cs
- OperationCanceledException.cs
- AttributeEmitter.cs
- Soap12ProtocolImporter.cs
- NameValueCollection.cs
- CryptoApi.cs
- PackUriHelper.cs
- IERequestCache.cs
- ListBase.cs
- Codec.cs
- HasCopySemanticsAttribute.cs
- EncoderParameters.cs
- TextDecoration.cs
- ChameleonKey.cs
- CodeExpressionCollection.cs
- NamedPipeDuplicateContext.cs
- CustomValidator.cs