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
- NotCondition.cs
- GcHandle.cs
- SecurityDescriptor.cs
- FacetValueContainer.cs
- SimpleWebHandlerParser.cs
- XmlWhitespace.cs
- ProgressBarBrushConverter.cs
- DES.cs
- DataGridColumn.cs
- RewritingValidator.cs
- IResourceProvider.cs
- ReadOnlyCollectionBase.cs
- CrossContextChannel.cs
- SequentialOutput.cs
- StylusButtonEventArgs.cs
- DataSourceControlBuilder.cs
- odbcmetadatacolumnnames.cs
- EncryptedPackage.cs
- DataFormat.cs
- OdbcStatementHandle.cs
- CharAnimationBase.cs
- FrameworkObject.cs
- DataSvcMapFile.cs
- PropertyGrid.cs
- NumberFunctions.cs
- TemplateXamlParser.cs
- DataPagerCommandEventArgs.cs
- ConfigUtil.cs
- AccessibilityApplicationManager.cs
- Keywords.cs
- ActivityInstance.cs
- RepeaterDataBoundAdapter.cs
- DataBinder.cs
- ComplexObject.cs
- ConnectionPointCookie.cs
- SqlConnectionHelper.cs
- FixedDocument.cs
- TextMetrics.cs
- CompModSwitches.cs
- EntityDataSourceViewSchema.cs
- DoubleAverageAggregationOperator.cs
- NoResizeSelectionBorderGlyph.cs
- SQLMembershipProvider.cs
- DefaultValueTypeConverter.cs
- FileSecurity.cs
- SmtpAuthenticationManager.cs
- Journal.cs
- TheQuery.cs
- CloseCryptoHandleRequest.cs
- JsonEnumDataContract.cs
- GridViewUpdateEventArgs.cs
- CompressEmulationStream.cs
- HttpChannelBindingToken.cs
- TableRow.cs
- TreeViewImageKeyConverter.cs
- BevelBitmapEffect.cs
- httpstaticobjectscollection.cs
- DataGridViewCellStyle.cs
- AdvancedBindingPropertyDescriptor.cs
- CoreChannel.cs
- WorkflowInvoker.cs
- KeyedCollection.cs
- FileInfo.cs
- ApplicationServicesHostFactory.cs
- MappingSource.cs
- ClientUIRequest.cs
- TreeViewEvent.cs
- CommentEmitter.cs
- ToolboxItem.cs
- ForceCopyBuildProvider.cs
- UrlPath.cs
- QilGenerator.cs
- XmlArrayItemAttributes.cs
- ListArgumentProvider.cs
- ExternalFile.cs
- ListMarkerSourceInfo.cs
- ExtensionSimplifierMarkupObject.cs
- NativeMethods.cs
- DictionaryBase.cs
- HttpServerChannel.cs
- Wildcard.cs
- HttpApplicationStateWrapper.cs
- ScriptingAuthenticationServiceSection.cs
- WebRequestModuleElement.cs
- HandlerFactoryWrapper.cs
- EncodingFallbackAwareXmlTextWriter.cs
- DataSourceCache.cs
- UriSection.cs
- OutputCacheProfileCollection.cs
- FileRecordSequenceCompletedAsyncResult.cs
- RootProjectionNode.cs
- ResourceExpressionBuilder.cs
- TableItemStyle.cs
- FileFormatException.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- BasicSecurityProfileVersion.cs
- CodeAttributeArgument.cs
- TrackBarDesigner.cs
- SqlMethodCallConverter.cs
- HijriCalendar.cs