Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------------- // 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
- CmsUtils.cs
- FontFamily.cs
- ListViewSelectEventArgs.cs
- FactoryGenerator.cs
- PropertyValueChangedEvent.cs
- TextOutput.cs
- ColumnWidthChangingEvent.cs
- RtfControls.cs
- QueryOptionExpression.cs
- QueryPageSettingsEventArgs.cs
- ApplicationDirectoryMembershipCondition.cs
- SQLGuidStorage.cs
- XsdBuildProvider.cs
- Range.cs
- BamlLocalizationDictionary.cs
- WmpBitmapEncoder.cs
- QueueProcessor.cs
- CodeCatchClauseCollection.cs
- UnsafeNativeMethodsMilCoreApi.cs
- CryptoHelper.cs
- LayoutInformation.cs
- ContentElement.cs
- RoleService.cs
- WindowsListViewItem.cs
- OledbConnectionStringbuilder.cs
- DataColumnMapping.cs
- BaseComponentEditor.cs
- DBSchemaRow.cs
- PlanCompiler.cs
- EnumerableCollectionView.cs
- InvalidContentTypeException.cs
- SafeEventLogReadHandle.cs
- DataObjectSettingDataEventArgs.cs
- InfoCardMasterKey.cs
- SizeConverter.cs
- LinqDataSourceStatusEventArgs.cs
- EpmAttributeNameBuilder.cs
- Span.cs
- EndPoint.cs
- UIPropertyMetadata.cs
- MatrixTransform.cs
- OverlappedContext.cs
- WorkItem.cs
- StylusButton.cs
- WebPartPersonalization.cs
- ConfigUtil.cs
- ConnectionManager.cs
- ListCollectionView.cs
- MethodBuilderInstantiation.cs
- WebPartConnectionsConnectVerb.cs
- LongValidator.cs
- PermissionSet.cs
- RequestCacheManager.cs
- CodeConstructor.cs
- Int64KeyFrameCollection.cs
- BuildProviderCollection.cs
- CommonObjectSecurity.cs
- MissingSatelliteAssemblyException.cs
- LogExtentCollection.cs
- NamedPipeConnectionPoolSettingsElement.cs
- processwaithandle.cs
- CodeCommentStatementCollection.cs
- BinaryObjectWriter.cs
- DesignerProperties.cs
- ConfigurationCollectionAttribute.cs
- DataSourceNameHandler.cs
- FloaterBaseParagraph.cs
- DynamicDataExtensions.cs
- xdrvalidator.cs
- TreeViewHitTestInfo.cs
- ConfigurationSectionGroup.cs
- EntityModelBuildProvider.cs
- DetailsViewRowCollection.cs
- DocumentXmlWriter.cs
- MetadataCache.cs
- embossbitmapeffect.cs
- StylusSystemGestureEventArgs.cs
- BuildManagerHost.cs
- Int32Converter.cs
- ObjectViewQueryResultData.cs
- SingleAnimationUsingKeyFrames.cs
- SortExpressionBuilder.cs
- HitTestWithGeometryDrawingContextWalker.cs
- TypedTableBaseExtensions.cs
- HtmlObjectListAdapter.cs
- BitmapImage.cs
- SqlWriter.cs
- RoleManagerSection.cs
- PropertyConverter.cs
- Ref.cs
- TextPattern.cs
- ComponentCache.cs
- CultureData.cs
- EntitySqlException.cs
- HandlerElementCollection.cs
- OciLobLocator.cs
- GridViewRow.cs
- DataRowChangeEvent.cs
- ToolboxItemFilterAttribute.cs
- CultureTableRecord.cs