Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- DataGridColumnHeader.cs
- AssemblySettingAttributes.cs
- HttpWebRequestElement.cs
- KnownTypeHelper.cs
- MdiWindowListItemConverter.cs
- FunctionCommandText.cs
- PasswordValidationException.cs
- Scene3D.cs
- DefaultMergeHelper.cs
- DesignerOptions.cs
- XmlSerializerNamespaces.cs
- RelationshipConverter.cs
- InfoCardArgumentException.cs
- FixUp.cs
- RSACryptoServiceProvider.cs
- FragmentNavigationEventArgs.cs
- XmlNodeChangedEventArgs.cs
- GiveFeedbackEventArgs.cs
- LinkClickEvent.cs
- SqlNode.cs
- COM2IProvidePropertyBuilderHandler.cs
- Cloud.cs
- AppDomainManager.cs
- TraceContextRecord.cs
- XamlSerializerUtil.cs
- JsonXmlDataContract.cs
- WebPartUtil.cs
- ToolZone.cs
- RoleManagerModule.cs
- WindowPatternIdentifiers.cs
- Listbox.cs
- IImplicitResourceProvider.cs
- DataGridViewCellCollection.cs
- ProviderCommandInfoUtils.cs
- ProcessManager.cs
- PageAdapter.cs
- HtmlControlPersistable.cs
- FixUpCollection.cs
- MenuScrollingVisibilityConverter.cs
- XmlNullResolver.cs
- GacUtil.cs
- GeometryHitTestParameters.cs
- SqlDataSourceCommandEventArgs.cs
- DrawToolTipEventArgs.cs
- DefaultEventAttribute.cs
- TransactionManager.cs
- Animatable.cs
- SpellCheck.cs
- ScriptResourceHandler.cs
- AutomationPatternInfo.cs
- ViewManagerAttribute.cs
- IntAverageAggregationOperator.cs
- TrimSurroundingWhitespaceAttribute.cs
- ToolStripDropDownClosedEventArgs.cs
- XmlSchemaProviderAttribute.cs
- PaperSize.cs
- GlobalAllocSafeHandle.cs
- TextTreeExtractElementUndoUnit.cs
- FileVersionInfo.cs
- KnownIds.cs
- DataViewManager.cs
- XmlElementAttributes.cs
- Expressions.cs
- Tokenizer.cs
- SHA256CryptoServiceProvider.cs
- ServiceNameCollection.cs
- XmlSchemaType.cs
- MDIControlStrip.cs
- ViewLoader.cs
- XmlImplementation.cs
- Validator.cs
- ThreadInterruptedException.cs
- ComboBoxRenderer.cs
- RootBrowserWindowProxy.cs
- KeyEventArgs.cs
- XamlHostingSectionGroup.cs
- InstanceDataCollection.cs
- WebServiceHandler.cs
- RubberbandSelector.cs
- ImageMap.cs
- PathGradientBrush.cs
- EdmComplexPropertyAttribute.cs
- CombinedGeometry.cs
- Rect3D.cs
- WpfWebRequestHelper.cs
- SourceElementsCollection.cs
- DataGridViewCellCancelEventArgs.cs
- GridViewRow.cs
- ConnectionManagementSection.cs
- ResourceReader.cs
- SessionStateSection.cs
- PropertyChangedEventArgs.cs
- UnsafeNativeMethods.cs
- ForwardPositionQuery.cs
- DataControlFieldHeaderCell.cs
- Normalization.cs
- AuthorizationRule.cs
- RegexWriter.cs
- Exceptions.cs
- EntityTemplateFactory.cs