Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- PropertyEntry.cs
- SoapMessage.cs
- ImageAttributes.cs
- AtomParser.cs
- IntSecurity.cs
- FileDialog.cs
- M3DUtil.cs
- ImageSource.cs
- ReferencedAssemblyResolver.cs
- MultipleViewProviderWrapper.cs
- ImageSource.cs
- AutoScrollHelper.cs
- DataGridPagerStyle.cs
- LocalizableResourceBuilder.cs
- Span.cs
- DelegateSerializationHolder.cs
- OleCmdHelper.cs
- IsolatedStoragePermission.cs
- ByteRangeDownloader.cs
- AsymmetricKeyExchangeFormatter.cs
- ListGeneralPage.cs
- PersonalizableAttribute.cs
- CatalogPartCollection.cs
- VisualStateManager.cs
- SettingsPropertyValue.cs
- Font.cs
- ResourceLoader.cs
- EncryptedPackage.cs
- CompositeFontParser.cs
- Int32Rect.cs
- SignedInfo.cs
- ContextBase.cs
- Command.cs
- WebBrowser.cs
- NominalTypeEliminator.cs
- MatrixAnimationBase.cs
- PropertyConverter.cs
- SmtpClient.cs
- BaseComponentEditor.cs
- SecurityUtils.cs
- DataServiceHost.cs
- TreeBuilderXamlTranslator.cs
- StylusButtonEventArgs.cs
- SafeNativeMethods.cs
- RegexGroup.cs
- WSHttpBindingBaseElement.cs
- HttpWebResponse.cs
- VariableAction.cs
- ItemsControlAutomationPeer.cs
- SeekableReadStream.cs
- VisualTreeHelper.cs
- DataGridViewColumnCollection.cs
- Publisher.cs
- ReservationCollection.cs
- ListControlConvertEventArgs.cs
- DesignerCommandSet.cs
- Triplet.cs
- Helpers.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- WebProxyScriptElement.cs
- WindowsTab.cs
- MdiWindowListStrip.cs
- WebPartCancelEventArgs.cs
- SwitchLevelAttribute.cs
- ZipIOExtraField.cs
- ResourcePermissionBaseEntry.cs
- Thread.cs
- SplineKeyFrames.cs
- HttpHandlerAction.cs
- SessionEndingCancelEventArgs.cs
- XmlEventCache.cs
- Decorator.cs
- PageRequestManager.cs
- LocalValueEnumerator.cs
- Pair.cs
- CommandHelpers.cs
- SqlServer2KCompatibilityAnnotation.cs
- TextHidden.cs
- PropertyChangingEventArgs.cs
- PropertyEmitter.cs
- DependencyPropertyAttribute.cs
- Rotation3D.cs
- LayoutInformation.cs
- GorillaCodec.cs
- GeometryCombineModeValidation.cs
- ExpressionLexer.cs
- Configuration.cs
- DesignerHelpers.cs
- SchemaTypeEmitter.cs
- DateTimeOffset.cs
- QilXmlWriter.cs
- LocatorPart.cs
- XsdCachingReader.cs
- WebRequestModuleElement.cs
- CodeMethodInvokeExpression.cs
- UInt16Converter.cs
- DataServiceOperationContext.cs
- ExtendedProperty.cs
- FixedTextPointer.cs
- CriticalFinalizerObject.cs