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
- MethodRental.cs
- CustomErrorCollection.cs
- ControlUtil.cs
- IdleTimeoutMonitor.cs
- ListViewTableRow.cs
- XmlDocument.cs
- OpCodes.cs
- OperationResponse.cs
- TiffBitmapDecoder.cs
- AssociationProvider.cs
- WebRequestModuleElementCollection.cs
- RoutedCommand.cs
- DocumentViewerBaseAutomationPeer.cs
- DataObjectCopyingEventArgs.cs
- SettingsSavedEventArgs.cs
- TypeUtils.cs
- XmlSchemaIdentityConstraint.cs
- MediaContextNotificationWindow.cs
- RankException.cs
- AudienceUriMode.cs
- StylusPointPropertyId.cs
- FileVersionInfo.cs
- WindowsRegion.cs
- ToolStripSystemRenderer.cs
- ImageConverter.cs
- WebPartTransformerAttribute.cs
- _SslSessionsCache.cs
- SpellerInterop.cs
- ListDataHelper.cs
- ReadOnlyObservableCollection.cs
- SqlProcedureAttribute.cs
- connectionpool.cs
- NullRuntimeConfig.cs
- Logging.cs
- PolyQuadraticBezierSegment.cs
- LocalizeDesigner.cs
- UnsafeNativeMethods.cs
- VirtualizingPanel.cs
- Trace.cs
- ServiceAuthorizationManager.cs
- OdbcConnectionFactory.cs
- WindowProviderWrapper.cs
- Vector.cs
- SignedPkcs7.cs
- BaseParser.cs
- AxHost.cs
- ContextMenuStripActionList.cs
- SingleResultAttribute.cs
- DesigntimeLicenseContext.cs
- XmlUnspecifiedAttribute.cs
- ActivityDesigner.cs
- DirectionalLight.cs
- HttpWrapper.cs
- XmlDataSourceNodeDescriptor.cs
- WeakEventManager.cs
- CompositionDesigner.cs
- SuppressIldasmAttribute.cs
- ExclusiveNamedPipeTransportManager.cs
- SafeSecurityHandles.cs
- CodeArgumentReferenceExpression.cs
- OpenTypeLayoutCache.cs
- ListView.cs
- PropertyDescriptorCollection.cs
- ProcessHost.cs
- path.cs
- SQLDoubleStorage.cs
- ZipIOBlockManager.cs
- Win32PrintDialog.cs
- XmlAttributeOverrides.cs
- TimelineClockCollection.cs
- EntityDataReader.cs
- ScrollPattern.cs
- RecordsAffectedEventArgs.cs
- TimerTable.cs
- XPathChildIterator.cs
- CredentialSelector.cs
- KeySplineConverter.cs
- RegisteredDisposeScript.cs
- XmlSchemaElement.cs
- DataGridViewRowPrePaintEventArgs.cs
- _AutoWebProxyScriptEngine.cs
- ConstantCheck.cs
- Formatter.cs
- Propagator.JoinPropagator.cs
- SequentialActivityDesigner.cs
- HtmlObjectListAdapter.cs
- DtrList.cs
- CodeDirectionExpression.cs
- XmlQuerySequence.cs
- HMACSHA256.cs
- VectorCollectionConverter.cs
- EntryPointNotFoundException.cs
- CachedPathData.cs
- DocumentPageTextView.cs
- SimpleWorkerRequest.cs
- Logging.cs
- DES.cs
- InternalConfigRoot.cs
- OrderByExpression.cs
- CompilerTypeWithParams.cs