Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Themes / Shared / Microsoft / Windows / Themes / PlatformCulture.cs / 1305600 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DocumentXPathNavigator.cs
- XmlnsDefinitionAttribute.cs
- ImageSource.cs
- SqlExpressionNullability.cs
- DbParameterCollection.cs
- SerializationObjectManager.cs
- ImageAutomationPeer.cs
- AnimationClock.cs
- RootDesignerSerializerAttribute.cs
- Latin1Encoding.cs
- XmlDictionary.cs
- ConvertersCollection.cs
- LocatorBase.cs
- RubberbandSelector.cs
- QueryCorrelationInitializer.cs
- SynchronizationFilter.cs
- PreservationFileReader.cs
- SoapRpcMethodAttribute.cs
- DiagnosticStrings.cs
- ImportCatalogPart.cs
- SqlParameterizer.cs
- ImageCodecInfoPrivate.cs
- FileDataSourceCache.cs
- RelationshipDetailsCollection.cs
- KnownColorTable.cs
- ArcSegment.cs
- TargetConverter.cs
- LogLogRecordEnumerator.cs
- ScalarConstant.cs
- UnsafeNetInfoNativeMethods.cs
- EventDescriptor.cs
- LoginStatusDesigner.cs
- AnnouncementInnerClientCD1.cs
- SecurityToken.cs
- AncillaryOps.cs
- Imaging.cs
- ThreadStaticAttribute.cs
- SerializationHelper.cs
- PropertyTabChangedEvent.cs
- WeakReferenceList.cs
- DataGridViewAccessibleObject.cs
- Point4DConverter.cs
- PerfCounters.cs
- SiteMapSection.cs
- DataViewSettingCollection.cs
- TraceHandlerErrorFormatter.cs
- GestureRecognitionResult.cs
- QilSortKey.cs
- EdmMember.cs
- TypeReference.cs
- CredentialCache.cs
- FontUnit.cs
- WebPartManagerDesigner.cs
- TrustManager.cs
- AttachmentService.cs
- DynamicResourceExtension.cs
- SpanIndex.cs
- ErasingStroke.cs
- XmlAttributes.cs
- SetStateEventArgs.cs
- CacheOutputQuery.cs
- PageCodeDomTreeGenerator.cs
- IisTraceListener.cs
- Imaging.cs
- ConfigurationException.cs
- XmlDictionaryReader.cs
- ColumnReorderedEventArgs.cs
- BrowserCapabilitiesCodeGenerator.cs
- ObjectItemAssemblyLoader.cs
- Splitter.cs
- StringPropertyBuilder.cs
- Perspective.cs
- RedirectionProxy.cs
- MemberAccessException.cs
- InputElement.cs
- TextEditorThreadLocalStore.cs
- _ListenerAsyncResult.cs
- ProcessInputEventArgs.cs
- DataGridTablesFactory.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- SelectionWordBreaker.cs
- VectorKeyFrameCollection.cs
- Blend.cs
- BlobPersonalizationState.cs
- TableItemStyle.cs
- SQLStringStorage.cs
- TypographyProperties.cs
- SqlDependencyListener.cs
- Privilege.cs
- WebPartDesigner.cs
- RowToFieldTransformer.cs
- DetailsViewInsertedEventArgs.cs
- ActionItem.cs
- FrameworkReadOnlyPropertyMetadata.cs
- NameValuePair.cs
- IHttpResponseInternal.cs
- AsymmetricSignatureDeformatter.cs
- PathSegment.cs
- TlsnegoTokenProvider.cs
- ResourceProviderFactory.cs