Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------------- // 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
- CommandValueSerializer.cs
- PropertyPath.cs
- InteropAutomationProvider.cs
- WebPartAddingEventArgs.cs
- Tokenizer.cs
- PersistenceProviderFactory.cs
- XmlSerializerVersionAttribute.cs
- MetadataArtifactLoaderComposite.cs
- TransactionInformation.cs
- mda.cs
- EncoderExceptionFallback.cs
- ImplicitInputBrush.cs
- ContentPosition.cs
- CrossSiteScriptingValidation.cs
- PrinterSettings.cs
- Pair.cs
- Enum.cs
- PageAdapter.cs
- GridViewRowEventArgs.cs
- SignerInfo.cs
- EmptyControlCollection.cs
- XmlQueryStaticData.cs
- StateMachine.cs
- EncoderParameters.cs
- SuppressIldasmAttribute.cs
- Compiler.cs
- XmlCharacterData.cs
- ProxyElement.cs
- Table.cs
- IgnoreSectionHandler.cs
- ScriptDescriptor.cs
- Stopwatch.cs
- RealizationContext.cs
- StateRuntime.cs
- XsltException.cs
- MarshalByRefObject.cs
- ProfileSettingsCollection.cs
- EntityDataSourceDesigner.cs
- ProfileGroupSettingsCollection.cs
- ImportDesigner.xaml.cs
- ToolboxItemLoader.cs
- SvcMapFile.cs
- RootBrowserWindowAutomationPeer.cs
- StringSorter.cs
- TableLayoutSettingsTypeConverter.cs
- EarlyBoundInfo.cs
- ChildDocumentBlock.cs
- VariableAction.cs
- StandardOleMarshalObject.cs
- CapabilitiesUse.cs
- XmlCompatibilityReader.cs
- SafeArrayRankMismatchException.cs
- UntypedNullExpression.cs
- WebPartConnectionsCloseVerb.cs
- LocalizationParserHooks.cs
- WizardPanelChangingEventArgs.cs
- GradientStop.cs
- ConfigurationSection.cs
- Monitor.cs
- DesignerListAdapter.cs
- DesignerVerb.cs
- MatrixCamera.cs
- InheritedPropertyChangedEventArgs.cs
- RoleBoolean.cs
- MetaData.cs
- ToolStripPanelCell.cs
- DataGridCellEditEndingEventArgs.cs
- StandardRuntimeEnumValidator.cs
- UIHelper.cs
- NetTcpSection.cs
- SymbolMethod.cs
- AutoSizeComboBox.cs
- CallbackTimeoutsBehavior.cs
- SoapExtension.cs
- MessageQuerySet.cs
- TreeChangeInfo.cs
- CodeMemberEvent.cs
- StoryFragments.cs
- AssemblyCache.cs
- ViewStateException.cs
- Resources.Designer.cs
- PriorityItem.cs
- CalloutQueueItem.cs
- ListItem.cs
- AttributeCollection.cs
- WebExceptionStatus.cs
- ProgressBar.cs
- OrderedHashRepartitionStream.cs
- ServiceOperation.cs
- PeerCredential.cs
- MetadataCacheItem.cs
- BrowserInteropHelper.cs
- DataRecordInfo.cs
- PropertySourceInfo.cs
- AuthorizationRuleCollection.cs
- ProxyManager.cs
- ISFTagAndGuidCache.cs
- SiteMapSection.cs
- FunctionParameter.cs
- JsonMessageEncoderFactory.cs