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
- BindingMemberInfo.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- XmlSortKey.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- DrawingContextWalker.cs
- _Semaphore.cs
- PerformanceCounterPermissionAttribute.cs
- SrgsElement.cs
- Imaging.cs
- MembershipPasswordException.cs
- Collection.cs
- X509Chain.cs
- Token.cs
- ServiceMetadataExtension.cs
- InternalReceiveMessage.cs
- TimeManager.cs
- OracleEncoding.cs
- ExpressionHelper.cs
- CallContext.cs
- EdmItemError.cs
- HttpCachePolicy.cs
- ProfileProvider.cs
- ChannelBinding.cs
- DBCSCodePageEncoding.cs
- Literal.cs
- BuilderElements.cs
- DllHostInitializer.cs
- Grid.cs
- DoubleAnimationBase.cs
- BitmapEffectOutputConnector.cs
- RtfNavigator.cs
- SubclassTypeValidatorAttribute.cs
- EntityCommandExecutionException.cs
- ViewKeyConstraint.cs
- RemoteWebConfigurationHost.cs
- MarshalByValueComponent.cs
- Literal.cs
- RecordConverter.cs
- FilteredSchemaElementLookUpTable.cs
- DoubleLink.cs
- ButtonAutomationPeer.cs
- objectquery_tresulttype.cs
- SqlInfoMessageEvent.cs
- XsltFunctions.cs
- WeakReferenceKey.cs
- BamlCollectionHolder.cs
- SelectionRangeConverter.cs
- DataViewManager.cs
- HttpCookieCollection.cs
- PropertyRecord.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- SqlConnection.cs
- Evidence.cs
- _OSSOCK.cs
- ResourceContainer.cs
- XmlSchemaValidationException.cs
- InputScopeConverter.cs
- IncrementalReadDecoders.cs
- OracleLob.cs
- PropertyState.cs
- AncillaryOps.cs
- GroupedContextMenuStrip.cs
- TextRenderer.cs
- Rijndael.cs
- ToolTip.cs
- QueryResponse.cs
- ToolboxItemFilterAttribute.cs
- SchemaImporterExtensionsSection.cs
- StandardCommands.cs
- XmlSchemaValidator.cs
- ItemDragEvent.cs
- DataColumnPropertyDescriptor.cs
- PrimitiveCodeDomSerializer.cs
- HtmlInputCheckBox.cs
- RenderingEventArgs.cs
- ColumnProvider.cs
- InputDevice.cs
- DebuggerAttributes.cs
- SqlWebEventProvider.cs
- sortedlist.cs
- ByteRangeDownloader.cs
- FormatterServices.cs
- SoapEnumAttribute.cs
- XPathAxisIterator.cs
- DictionaryContent.cs
- PolyBezierSegment.cs
- ConstantExpression.cs
- XmlSignificantWhitespace.cs
- UdpSocket.cs
- ResponseStream.cs
- SafeWaitHandle.cs
- TypographyProperties.cs
- StatusBarItemAutomationPeer.cs
- MulticastNotSupportedException.cs
- OleDbDataAdapter.cs
- ReachFixedPageSerializer.cs
- ScaleTransform3D.cs
- PasswordDeriveBytes.cs
- SetUserPreferenceRequest.cs
- TabControlDesigner.cs