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
- UIElement3D.cs
- DataBoundControl.cs
- DynamicMetaObjectBinder.cs
- HttpCapabilitiesEvaluator.cs
- httpapplicationstate.cs
- ViewBase.cs
- XmlSchemaDatatype.cs
- ControlBindingsCollection.cs
- ThreadStateException.cs
- BinaryObjectInfo.cs
- Random.cs
- SQLMoney.cs
- UIElementHelper.cs
- NavigationService.cs
- TitleStyle.cs
- nulltextnavigator.cs
- CodeTypeParameterCollection.cs
- TypeConverterHelper.cs
- TaskSchedulerException.cs
- XmlCharCheckingReader.cs
- NameValueConfigurationElement.cs
- SystemNetworkInterface.cs
- WebServiceMethodData.cs
- WebConfigurationManager.cs
- WsdlBuildProvider.cs
- EntityDataSourceViewSchema.cs
- RelatedImageListAttribute.cs
- TextContainerChangeEventArgs.cs
- RichTextBoxAutomationPeer.cs
- CodeTypeDeclarationCollection.cs
- lengthconverter.cs
- TreeNodeStyle.cs
- TypeConverterValueSerializer.cs
- ParallelRangeManager.cs
- InputLanguageEventArgs.cs
- XmlDictionary.cs
- Array.cs
- XmlDownloadManager.cs
- FormsAuthenticationConfiguration.cs
- TextSelectionProcessor.cs
- ThemeDirectoryCompiler.cs
- QueryPageSettingsEventArgs.cs
- HashCodeCombiner.cs
- DirectoryNotFoundException.cs
- ToolBarButtonClickEvent.cs
- SupportingTokenProviderSpecification.cs
- EntityReference.cs
- FirstQueryOperator.cs
- GeneralTransform.cs
- ReturnType.cs
- ZoneButton.cs
- ActivityBindForm.cs
- DefaultValidator.cs
- HtmlControlPersistable.cs
- DataObjectEventArgs.cs
- XXXOnTypeBuilderInstantiation.cs
- JsonQNameDataContract.cs
- OutputCacheSettingsSection.cs
- ScrollViewerAutomationPeer.cs
- WebPartDescription.cs
- TypeConverterAttribute.cs
- SerTrace.cs
- EdmMember.cs
- PointHitTestResult.cs
- PropertyValueUIItem.cs
- XmlSubtreeReader.cs
- Attributes.cs
- SafeNativeMethods.cs
- NonBatchDirectoryCompiler.cs
- _IPv6Address.cs
- DLinqTableProvider.cs
- Button.cs
- StreamWithDictionary.cs
- TaskExceptionHolder.cs
- UpdateRecord.cs
- SelectionRangeConverter.cs
- ToolBarButton.cs
- DbgUtil.cs
- SerializationUtility.cs
- XmlFormatExtensionPrefixAttribute.cs
- DataTableReaderListener.cs
- LinkButton.cs
- FontWeightConverter.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- Application.cs
- UntypedNullExpression.cs
- JumpItem.cs
- SecuritySessionFilter.cs
- StackSpiller.Generated.cs
- TypedDatasetGenerator.cs
- ChildTable.cs
- XmlIlGenerator.cs
- FrameworkElementFactoryMarkupObject.cs
- AssertSection.cs
- BaseValidator.cs
- SqlFlattener.cs
- SqlCrossApplyToCrossJoin.cs
- ScrollChrome.cs
- ListComponentEditorPage.cs
- SharedPersonalizationStateInfo.cs