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
- ViewBase.cs
- KeyTime.cs
- XmlUtilWriter.cs
- DetailsViewRow.cs
- ObservableCollection.cs
- Activity.cs
- SRef.cs
- NameValueConfigurationElement.cs
- SecuritySessionSecurityTokenAuthenticator.cs
- Section.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- NameValueSectionHandler.cs
- AnimationClock.cs
- propertytag.cs
- BaseParser.cs
- EntityViewGenerator.cs
- SettingsPropertyValue.cs
- parserscommon.cs
- BoundField.cs
- ControlBuilderAttribute.cs
- SqlParameterizer.cs
- DBSchemaTable.cs
- FixedSOMLineRanges.cs
- WebPartCollection.cs
- ContextStack.cs
- MonitoringDescriptionAttribute.cs
- DataTableTypeConverter.cs
- _HeaderInfoTable.cs
- GenericWebPart.cs
- GenericUriParser.cs
- PagesChangedEventArgs.cs
- DataServiceQuery.cs
- HostingEnvironmentException.cs
- Style.cs
- TextClipboardData.cs
- ISAPIApplicationHost.cs
- PasswordTextNavigator.cs
- BitmapEffectGroup.cs
- RightsManagementPermission.cs
- BaseInfoTable.cs
- FilteredXmlReader.cs
- XmlText.cs
- ComNativeDescriptor.cs
- TranslateTransform.cs
- DataControlExtensions.cs
- SQLMoneyStorage.cs
- DatasetMethodGenerator.cs
- Point3DKeyFrameCollection.cs
- ObjectDataSourceDesigner.cs
- ListViewItem.cs
- CrossAppDomainChannel.cs
- WorkflowItemsPresenter.cs
- ClientRuntime.cs
- NamedElement.cs
- SystemThemeKey.cs
- TreeNodeCollectionEditor.cs
- ProxyWebPartManager.cs
- InvalidComObjectException.cs
- TextFormattingConverter.cs
- CssTextWriter.cs
- SqlInternalConnection.cs
- WSDualHttpSecurity.cs
- ImageMapEventArgs.cs
- MediaElementAutomationPeer.cs
- MsmqTransportSecurity.cs
- ParameterToken.cs
- NamespaceMapping.cs
- FixedPage.cs
- IResourceProvider.cs
- CallbackValidator.cs
- HostProtectionPermission.cs
- Grant.cs
- SslStreamSecurityUpgradeProvider.cs
- ProfilePropertyMetadata.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- DockingAttribute.cs
- MetricEntry.cs
- LZCodec.cs
- NetPeerTcpBindingElement.cs
- Site.cs
- TCEAdapterGenerator.cs
- ComboBox.cs
- RelationshipWrapper.cs
- PresentationSource.cs
- ConnectorSelectionGlyph.cs
- ByteStack.cs
- SessionStateSection.cs
- BitmapSourceSafeMILHandle.cs
- RegionIterator.cs
- PathGradientBrush.cs
- XhtmlBasicCalendarAdapter.cs
- CancelEventArgs.cs
- Stream.cs
- AsyncStreamReader.cs
- Vector3dCollection.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- DebugView.cs
- LinqDataSourceContextEventArgs.cs
- AncillaryOps.cs
- TextPattern.cs