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
- XmlSchemaGroupRef.cs
- MembershipValidatePasswordEventArgs.cs
- CodeGotoStatement.cs
- ObjectCacheHost.cs
- DispatchChannelSink.cs
- MetadataAssemblyHelper.cs
- PublisherIdentityPermission.cs
- StateManagedCollection.cs
- InstanceHandle.cs
- IndentedWriter.cs
- RegisteredHiddenField.cs
- VisualCollection.cs
- VisualCollection.cs
- SelectionHighlightInfo.cs
- BitmapMetadataEnumerator.cs
- CapabilitiesSection.cs
- ClientApiGenerator.cs
- FlowLayout.cs
- AdapterUtil.cs
- WebEventTraceProvider.cs
- SocketCache.cs
- StoreConnection.cs
- CLRBindingWorker.cs
- AsymmetricSecurityProtocol.cs
- OrderedEnumerableRowCollection.cs
- WebBrowserEvent.cs
- VisualStateChangedEventArgs.cs
- AuthenticationModuleElement.cs
- DataGridViewRowCollection.cs
- DbConnectionFactory.cs
- ActivityCollectionMarkupSerializer.cs
- CookieProtection.cs
- OleDbConnectionFactory.cs
- PersianCalendar.cs
- StringInfo.cs
- PinnedBufferMemoryStream.cs
- DCSafeHandle.cs
- DataGridViewCellParsingEventArgs.cs
- OutputCacheSettings.cs
- BinaryObjectWriter.cs
- Calendar.cs
- ContextMenuStrip.cs
- Action.cs
- DataTableExtensions.cs
- TraceFilter.cs
- TextEditorContextMenu.cs
- BuilderElements.cs
- PropertyDescriptorCollection.cs
- EdmToObjectNamespaceMap.cs
- SafeEventLogReadHandle.cs
- Baml6Assembly.cs
- ListViewInsertEventArgs.cs
- DataGridState.cs
- Array.cs
- XmlBoundElement.cs
- EventsTab.cs
- RowUpdatedEventArgs.cs
- TextSearch.cs
- BinaryConverter.cs
- WindowsIdentity.cs
- ExtendedProperty.cs
- XPathArrayIterator.cs
- WmiPutTraceRecord.cs
- ExpressionEvaluator.cs
- WebPartConnectionsCancelVerb.cs
- InputMethod.cs
- EventProperty.cs
- SiteMembershipCondition.cs
- ContractUtils.cs
- DbReferenceCollection.cs
- DataServiceQuery.cs
- ASCIIEncoding.cs
- XmlSerializerNamespaces.cs
- CategoryNameCollection.cs
- PlaceHolder.cs
- M3DUtil.cs
- StringWriter.cs
- GridSplitterAutomationPeer.cs
- TraceSource.cs
- FtpRequestCacheValidator.cs
- SaveFileDialogDesigner.cs
- RegexCode.cs
- HTMLTextWriter.cs
- BuiltInExpr.cs
- BinaryWriter.cs
- MethodBuilderInstantiation.cs
- DependencyPropertyHelper.cs
- DragDrop.cs
- WindowProviderWrapper.cs
- CombinedHttpChannel.cs
- DataGridViewRowsAddedEventArgs.cs
- Error.cs
- CustomWebEventKey.cs
- ScriptingProfileServiceSection.cs
- AsnEncodedData.cs
- Pair.cs
- Rectangle.cs
- TogglePatternIdentifiers.cs
- Msmq.cs
- WebRequestModuleElementCollection.cs