Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- IPipelineRuntime.cs
- WindowsAuthenticationModule.cs
- StaticFileHandler.cs
- CornerRadiusConverter.cs
- UTF8Encoding.cs
- ImageKeyConverter.cs
- SoapIgnoreAttribute.cs
- VariableDesigner.xaml.cs
- WindowInteractionStateTracker.cs
- SafeViewOfFileHandle.cs
- XmlSchemaValidationException.cs
- ToolboxItemFilterAttribute.cs
- MasterPageBuildProvider.cs
- WebPartVerb.cs
- NotSupportedException.cs
- SafeEventLogReadHandle.cs
- Tokenizer.cs
- TransactionBehavior.cs
- SvcMapFileSerializer.cs
- CustomAssemblyResolver.cs
- formatter.cs
- MessageQueueCriteria.cs
- ScriptingSectionGroup.cs
- EventManager.cs
- TextSelectionHelper.cs
- UnknownBitmapDecoder.cs
- LinqExpressionNormalizer.cs
- XmlNamespaceDeclarationsAttribute.cs
- BatchStream.cs
- ContextBase.cs
- SHA512Managed.cs
- PageRequestManager.cs
- DocumentViewer.cs
- DispatcherEventArgs.cs
- UrlMappingsModule.cs
- PropVariant.cs
- XmlQualifiedNameTest.cs
- Simplifier.cs
- RequiredAttributeAttribute.cs
- SoapReflectionImporter.cs
- QueryCacheManager.cs
- PointAnimationBase.cs
- ObservableCollectionDefaultValueFactory.cs
- EditorPart.cs
- MeasureData.cs
- FixedPageAutomationPeer.cs
- BooleanExpr.cs
- NativeMethods.cs
- ObjectQueryProvider.cs
- TreeNodeBindingCollection.cs
- XmlNode.cs
- BufferModeSettings.cs
- FacetDescription.cs
- Property.cs
- ColumnResizeUndoUnit.cs
- ArglessEventHandlerProxy.cs
- CrossSiteScriptingValidation.cs
- ETagAttribute.cs
- DesignerTransactionCloseEvent.cs
- Version.cs
- FileDialogPermission.cs
- HttpSessionStateWrapper.cs
- EmptyReadOnlyDictionaryInternal.cs
- ToolstripProfessionalRenderer.cs
- PathSegment.cs
- SponsorHelper.cs
- ExcCanonicalXml.cs
- DataGridViewLayoutData.cs
- SymmetricSecurityBindingElement.cs
- MessageSecurityProtocolFactory.cs
- MulticastOption.cs
- Size3DValueSerializer.cs
- MSAANativeProvider.cs
- Vector3dCollection.cs
- VersionedStream.cs
- TextTreeRootNode.cs
- Win32Exception.cs
- PrintPageEvent.cs
- ConfigurationValidatorBase.cs
- PasswordBoxAutomationPeer.cs
- VolatileEnlistmentMultiplexing.cs
- TraceSwitch.cs
- ColorTransform.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- Splitter.cs
- DispatcherEventArgs.cs
- ConfigXmlText.cs
- ResourceWriter.cs
- SmtpClient.cs
- FocusTracker.cs
- DataGridCell.cs
- SqlFunctions.cs
- WebUtil.cs
- GridViewUpdatedEventArgs.cs
- PointLightBase.cs
- DataGridViewCellStyleChangedEventArgs.cs
- PanelDesigner.cs
- ProbeMatchesCD1.cs
- IteratorAsyncResult.cs
- TextBoxAutoCompleteSourceConverter.cs