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
- DesignerVerbToolStripMenuItem.cs
- QueryableFilterRepeater.cs
- Viewport3DVisual.cs
- XmlSchemaSimpleType.cs
- TabItem.cs
- DelegateInArgument.cs
- GridSplitterAutomationPeer.cs
- Int32Converter.cs
- EncodingDataItem.cs
- CommandTreeTypeHelper.cs
- FormViewRow.cs
- DBConnection.cs
- CurrentChangedEventManager.cs
- LogFlushAsyncResult.cs
- FontNamesConverter.cs
- BindingOperations.cs
- HttpStaticObjectsCollectionBase.cs
- SelfSignedCertificate.cs
- DataColumnCollection.cs
- SQlBooleanStorage.cs
- HwndMouseInputProvider.cs
- AsyncCodeActivity.cs
- RijndaelManaged.cs
- RangeContentEnumerator.cs
- HtmlInputRadioButton.cs
- TextBoxView.cs
- LineServices.cs
- TextEditorParagraphs.cs
- AsymmetricKeyExchangeFormatter.cs
- NullableIntAverageAggregationOperator.cs
- WeakEventTable.cs
- UniqueID.cs
- DefaultValueTypeConverter.cs
- PeerName.cs
- EnvelopedPkcs7.cs
- HttpPostedFileWrapper.cs
- SafeLibraryHandle.cs
- NavigationEventArgs.cs
- DbDataReader.cs
- DataGridViewUtilities.cs
- CollectionView.cs
- InfoCardUIAgent.cs
- ReadOnlyPropertyMetadata.cs
- WebSysDisplayNameAttribute.cs
- SectionRecord.cs
- PartialArray.cs
- DataGridViewCellStyle.cs
- BaseInfoTable.cs
- DataGridViewCellStyleConverter.cs
- SafeUserTokenHandle.cs
- ContainerAction.cs
- TypeTypeConverter.cs
- NegationPusher.cs
- HtmlUtf8RawTextWriter.cs
- newitemfactory.cs
- FindCriteria11.cs
- RecognizerStateChangedEventArgs.cs
- BevelBitmapEffect.cs
- AuthenticatedStream.cs
- TrustLevelCollection.cs
- LayoutUtils.cs
- InputLangChangeEvent.cs
- DependencyObjectProvider.cs
- CallId.cs
- ReversePositionQuery.cs
- IPAddress.cs
- ReaderWriterLock.cs
- View.cs
- MgmtResManager.cs
- TraceHandler.cs
- SmtpReplyReader.cs
- ListViewSortEventArgs.cs
- ActivationServices.cs
- CachedCompositeFamily.cs
- SlotInfo.cs
- GenerateTemporaryTargetAssembly.cs
- WriteStateInfoBase.cs
- keycontainerpermission.cs
- DesignerHierarchicalDataSourceView.cs
- ClientScriptManagerWrapper.cs
- FontConverter.cs
- CalendarData.cs
- UnsafePeerToPeerMethods.cs
- ListDictionaryInternal.cs
- RulePatternOps.cs
- Page.cs
- BooleanExpr.cs
- TraceEventCache.cs
- ItemsPanelTemplate.cs
- ParagraphResult.cs
- SoapObjectReader.cs
- ColorContext.cs
- HMACSHA256.cs
- SoapCommonClasses.cs
- EventEntry.cs
- StringBuilder.cs
- AssemblyAttributes.cs
- RemoteWebConfigurationHostStream.cs
- EditorBrowsableAttribute.cs
- EntryWrittenEventArgs.cs