Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- RecipientInfo.cs
- Unit.cs
- MenuAdapter.cs
- XamlReader.cs
- Trustee.cs
- SectionXmlInfo.cs
- ShaderEffect.cs
- AnnotationHelper.cs
- RectIndependentAnimationStorage.cs
- path.cs
- ViewKeyConstraint.cs
- Size.cs
- DeflateEmulationStream.cs
- AttachmentCollection.cs
- CommandDevice.cs
- TypeBuilderInstantiation.cs
- InstalledFontCollection.cs
- SystemWebCachingSectionGroup.cs
- ClientFormsIdentity.cs
- Compilation.cs
- HScrollProperties.cs
- BorderSidesEditor.cs
- Point.cs
- xsdvalidator.cs
- RenamedEventArgs.cs
- DataSourceCacheDurationConverter.cs
- SelectionChangedEventArgs.cs
- DataGridViewLayoutData.cs
- DrawingCollection.cs
- EmptyQuery.cs
- DbDataRecord.cs
- SecureStringHasher.cs
- ConnectionsZone.cs
- SystemDiagnosticsSection.cs
- DictationGrammar.cs
- SqlError.cs
- AspCompat.cs
- ButtonChrome.cs
- safelinkcollection.cs
- AudioFileOut.cs
- QueryRewriter.cs
- ProfilePropertyNameValidator.cs
- Rotation3D.cs
- ListBoxItemWrapperAutomationPeer.cs
- DataGridState.cs
- Int32CAMarshaler.cs
- UnmanagedMemoryStream.cs
- XmlCharType.cs
- BrushProxy.cs
- BackgroundFormatInfo.cs
- KeyProperty.cs
- NotifyCollectionChangedEventArgs.cs
- CodeComment.cs
- BindingGraph.cs
- httpapplicationstate.cs
- BuildProviderUtils.cs
- DataRelationPropertyDescriptor.cs
- DataGridViewBindingCompleteEventArgs.cs
- PageAdapter.cs
- SetterBaseCollection.cs
- Number.cs
- DynamicQueryableWrapper.cs
- TreeNodeClickEventArgs.cs
- xsdvalidator.cs
- StateChangeEvent.cs
- QueryStringParameter.cs
- Crc32Helper.cs
- HeaderUtility.cs
- ButtonFieldBase.cs
- InlinedAggregationOperatorEnumerator.cs
- Select.cs
- EntityTemplateUserControl.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- SynchronizedMessageSource.cs
- ReadingWritingEntityEventArgs.cs
- ECDiffieHellman.cs
- IpcPort.cs
- RawMouseInputReport.cs
- DispatcherEventArgs.cs
- CatalogZone.cs
- CodeExpressionRuleDeclaration.cs
- BulletChrome.cs
- BitmapEffectGroup.cs
- PersonalizationStateInfoCollection.cs
- SqlExpressionNullability.cs
- DesignerOptionService.cs
- FixedDocument.cs
- ListBindableAttribute.cs
- LambdaCompiler.Unary.cs
- PreloadedPackages.cs
- LoginName.cs
- SchemaNamespaceManager.cs
- DataGridViewAccessibleObject.cs
- FocusTracker.cs
- RegionInfo.cs
- TextTreeRootNode.cs
- XmlComplianceUtil.cs
- ResourceSetExpression.cs
- MetaChildrenColumn.cs
- DocumentXPathNavigator.cs