Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Themes / Shared / Microsoft / Windows / Themes / PlatformCulture.cs / 1 / PlatformCulture.cs
//---------------------------------------------------------------------------- // File: CurrentWPFCulture.cs // // Description: // Helper class that allows access to localized values based on the current WPF culture. // // Copyright (C) 2006 by Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System.Diagnostics; using System.Globalization; using System.Windows; using System; namespace Microsoft.Windows.Themes { ////// Public class used to expose some properties of the culture /// the platform is localized to. /// public static class PlatformCulture { ////// FlowDirection of the culture the platform is localized to. /// public static FlowDirection FlowDirection { get { if (_platformCulture == null) { _platformCulture = MS.Internal.PlatformCulture.Value; } Debug.Assert(_platformCulture != null); return _platformCulture.TextInfo.IsRightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight; } } private static CultureInfo _platformCulture; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // File: CurrentWPFCulture.cs // // Description: // Helper class that allows access to localized values based on the current WPF culture. // // Copyright (C) 2006 by Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System.Diagnostics; using System.Globalization; using System.Windows; using System; namespace Microsoft.Windows.Themes { ////// Public class used to expose some properties of the culture /// the platform is localized to. /// public static class PlatformCulture { ////// FlowDirection of the culture the platform is localized to. /// public static FlowDirection FlowDirection { get { if (_platformCulture == null) { _platformCulture = MS.Internal.PlatformCulture.Value; } Debug.Assert(_platformCulture != null); return _platformCulture.TextInfo.IsRightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight; } } private static CultureInfo _platformCulture; } } // 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
- SqlTypesSchemaImporter.cs
- NetCodeGroup.cs
- RSAPKCS1SignatureDeformatter.cs
- DetailsViewPagerRow.cs
- ContentIterators.cs
- UnsafeNativeMethods.cs
- DebugView.cs
- SqlConnectionPoolProviderInfo.cs
- EncoderNLS.cs
- KeyConverter.cs
- URLString.cs
- NotConverter.cs
- EntityContainer.cs
- mda.cs
- ProvideValueServiceProvider.cs
- XmlHierarchicalEnumerable.cs
- CredentialCache.cs
- AbsoluteQuery.cs
- TabItemWrapperAutomationPeer.cs
- GeneralTransformGroup.cs
- EncryptedType.cs
- InputDevice.cs
- TreeNodeClickEventArgs.cs
- CreateUserWizardStep.cs
- LingerOption.cs
- ImageMap.cs
- PrimarySelectionAdorner.cs
- FullTrustAssembliesSection.cs
- PtsCache.cs
- OleDbPermission.cs
- HostingEnvironment.cs
- ImpersonateTokenRef.cs
- QEncodedStream.cs
- Helpers.cs
- RuntimeArgumentHandle.cs
- TableCell.cs
- StorageScalarPropertyMapping.cs
- ThreadStaticAttribute.cs
- WorkflowServiceHostFactory.cs
- xmlglyphRunInfo.cs
- DeferredElementTreeState.cs
- UpdatePanelTrigger.cs
- SynchronizationLockException.cs
- APCustomTypeDescriptor.cs
- MediaPlayerState.cs
- LogLogRecord.cs
- ClientData.cs
- SEHException.cs
- RadioButton.cs
- Section.cs
- WebPartEditVerb.cs
- TabItemAutomationPeer.cs
- ReceiveContextCollection.cs
- PrimitiveType.cs
- ToolStripOverflow.cs
- ResourceSet.cs
- SqlStream.cs
- ImageCodecInfo.cs
- FileRecordSequence.cs
- Int32.cs
- SmtpReplyReaderFactory.cs
- StyleBamlTreeBuilder.cs
- XmlJsonWriter.cs
- AuthorizationRule.cs
- PolyBezierSegment.cs
- ParseChildrenAsPropertiesAttribute.cs
- ChangeConflicts.cs
- RowTypeElement.cs
- Parameter.cs
- coordinatorfactory.cs
- BaseComponentEditor.cs
- PackWebRequest.cs
- PolicyManager.cs
- Vertex.cs
- InvalidEnumArgumentException.cs
- TrackingDataItemValue.cs
- VariableQuery.cs
- httpapplicationstate.cs
- SystemNetHelpers.cs
- SqlComparer.cs
- Translator.cs
- WeakEventManager.cs
- Animatable.cs
- FileDialog.cs
- XmlSchema.cs
- LinkUtilities.cs
- ByteKeyFrameCollection.cs
- RenderingEventArgs.cs
- SettingsContext.cs
- ImmutableCollection.cs
- CookieParameter.cs
- DomainConstraint.cs
- RawStylusInput.cs
- DoubleAnimationUsingPath.cs
- TextElementEnumerator.cs
- OSFeature.cs
- TreeNode.cs
- ContentAlignmentEditor.cs
- Internal.cs
- SvcMapFileLoader.cs