Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- QuadTree.cs
- EditingScopeUndoUnit.cs
- SQLInt32.cs
- DataGridSortCommandEventArgs.cs
- Char.cs
- LockRenewalTask.cs
- XmlTextAttribute.cs
- ListMarkerLine.cs
- TemplateManager.cs
- MissingManifestResourceException.cs
- EntityDataSourceContextDisposingEventArgs.cs
- IUnknownConstantAttribute.cs
- Drawing.cs
- ReadOnlyHierarchicalDataSourceView.cs
- BmpBitmapDecoder.cs
- DomainConstraint.cs
- DisplayNameAttribute.cs
- DataGridViewHitTestInfo.cs
- XmlSchemaException.cs
- ControlBuilderAttribute.cs
- QueryableFilterUserControl.cs
- NonParentingControl.cs
- NonClientArea.cs
- TableLayoutRowStyleCollection.cs
- RadioButtonPopupAdapter.cs
- DataServiceProviderMethods.cs
- ValidationEventArgs.cs
- SingleAnimationBase.cs
- CaretElement.cs
- HGlobalSafeHandle.cs
- WmfPlaceableFileHeader.cs
- StrongName.cs
- CleanUpVirtualizedItemEventArgs.cs
- IdnMapping.cs
- PackageProperties.cs
- WCFBuildProvider.cs
- ProfileGroupSettingsCollection.cs
- XmlAnyElementAttributes.cs
- FileSystemInfo.cs
- CollectionDataContract.cs
- XmlTextAttribute.cs
- FastEncoderWindow.cs
- InputManager.cs
- CompilerGlobalScopeAttribute.cs
- StylusCollection.cs
- CacheAxisQuery.cs
- ParameterCollection.cs
- FileVersionInfo.cs
- ColumnPropertiesGroup.cs
- XmlObjectSerializerReadContextComplex.cs
- XmlTextReaderImpl.cs
- ViewBase.cs
- DataPointer.cs
- SessionState.cs
- ReadOnlyHierarchicalDataSource.cs
- DefaultDiscoveryServiceExtension.cs
- Drawing.cs
- FontStyle.cs
- Win32Native.cs
- ComponentChangingEvent.cs
- NumberFunctions.cs
- VarRemapper.cs
- IsolatedStorageFileStream.cs
- HttpProcessUtility.cs
- LiteralControl.cs
- TreeNodeEventArgs.cs
- RegistryPermission.cs
- EntityWrapper.cs
- SoundPlayerAction.cs
- ExpressionTextBox.xaml.cs
- ColorTransformHelper.cs
- Frame.cs
- MultipartContentParser.cs
- WeakReferenceEnumerator.cs
- ServiceParser.cs
- TcpTransportSecurityElement.cs
- ProcessInputEventArgs.cs
- XsltFunctions.cs
- DbDataSourceEnumerator.cs
- ColumnMapVisitor.cs
- SendingRequestEventArgs.cs
- ItemsControl.cs
- RefExpr.cs
- SchemaLookupTable.cs
- DirectionalLight.cs
- PreloadedPackages.cs
- QueryCursorEventArgs.cs
- PersonalizationStateQuery.cs
- DataMemberAttribute.cs
- SplitterCancelEvent.cs
- TextModifierScope.cs
- OleDbErrorCollection.cs
- PeekCompletedEventArgs.cs
- BitmapEffectDrawingContextWalker.cs
- EventEntry.cs
- NativeRightsManagementAPIsStructures.cs
- JournalEntryStack.cs
- TextCompositionEventArgs.cs
- EnvelopedPkcs7.cs
- EllipticalNodeOperations.cs