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
- DbSetClause.cs
- QuaternionRotation3D.cs
- PixelShader.cs
- PersonalizableTypeEntry.cs
- HtmlTableRowCollection.cs
- SqlCacheDependencyDatabaseCollection.cs
- TokenBasedSetEnumerator.cs
- EntityDataSourceDesigner.cs
- MsmqReceiveHelper.cs
- WrapPanel.cs
- TraceLevelStore.cs
- MDIClient.cs
- _TransmitFileOverlappedAsyncResult.cs
- ConfigurationManagerHelperFactory.cs
- Camera.cs
- HostProtectionPermission.cs
- Membership.cs
- TrackPointCollection.cs
- PointUtil.cs
- ISFClipboardData.cs
- HuffmanTree.cs
- FormsIdentity.cs
- LinqDataSourceSelectEventArgs.cs
- Itemizer.cs
- Drawing.cs
- Opcode.cs
- CodeChecksumPragma.cs
- XPathDocument.cs
- HttpEncoder.cs
- SqlUtils.cs
- Blend.cs
- LingerOption.cs
- RuntimeConfigurationRecord.cs
- ReadWriteObjectLock.cs
- CompositeFontParser.cs
- TextDpi.cs
- WorkflowOperationErrorHandler.cs
- SubMenuStyleCollectionEditor.cs
- DesigntimeLicenseContext.cs
- MailDefinition.cs
- TemplateXamlParser.cs
- CssTextWriter.cs
- EmitterCache.cs
- SingleSelectRootGridEntry.cs
- CAGDesigner.cs
- ValueSerializer.cs
- Compress.cs
- X509Utils.cs
- CompositeDuplexBindingElementImporter.cs
- DomainUpDown.cs
- SafeArrayTypeMismatchException.cs
- DynamicPropertyHolder.cs
- StatusBarPanel.cs
- ApplicationHost.cs
- RegexWriter.cs
- NavigationPropertyEmitter.cs
- WSDualHttpSecurityElement.cs
- MetaData.cs
- ReturnType.cs
- StorageSetMapping.cs
- ThaiBuddhistCalendar.cs
- CancelEventArgs.cs
- UnhandledExceptionEventArgs.cs
- ActiveDocumentEvent.cs
- ConfigXmlCDataSection.cs
- GPStream.cs
- ContentFileHelper.cs
- Int32CAMarshaler.cs
- Semaphore.cs
- UnsafeNativeMethods.cs
- UserNameSecurityTokenProvider.cs
- InvokeWebServiceDesigner.cs
- EntityDataSourceContainerNameConverter.cs
- ModuleBuilderData.cs
- ProcessModule.cs
- ContractCodeDomInfo.cs
- GridToolTip.cs
- WebServiceErrorEvent.cs
- Missing.cs
- WinEventHandler.cs
- DefaultProxySection.cs
- ThemeDictionaryExtension.cs
- DataGridCell.cs
- WindowsFormsSectionHandler.cs
- DetailsViewCommandEventArgs.cs
- ElementsClipboardData.cs
- Literal.cs
- ProfileServiceManager.cs
- InboundActivityHelper.cs
- GridViewColumnHeader.cs
- Classification.cs
- Scripts.cs
- SHA512Managed.cs
- SchemaInfo.cs
- SafeArrayTypeMismatchException.cs
- StringFreezingAttribute.cs
- DataGridViewTextBoxEditingControl.cs
- ConfigurationStrings.cs
- UnsafeNativeMethods.cs
- HwndSourceKeyboardInputSite.cs