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
- Parser.cs
- DataGridViewColumnStateChangedEventArgs.cs
- WebPartDisplayModeCollection.cs
- TableCellCollection.cs
- OdbcCommandBuilder.cs
- DetailsViewInsertEventArgs.cs
- CodeNamespaceImport.cs
- ProcessHostMapPath.cs
- XmlSubtreeReader.cs
- SimpleApplicationHost.cs
- __ConsoleStream.cs
- cookiecollection.cs
- SyndicationItemFormatter.cs
- TransportManager.cs
- Slider.cs
- SystemSounds.cs
- DataGridViewLinkColumn.cs
- ToolStripItemTextRenderEventArgs.cs
- Types.cs
- precedingquery.cs
- ColumnHeader.cs
- TextBoxAutomationPeer.cs
- RuleAttributes.cs
- FrameworkTemplate.cs
- XPathPatternParser.cs
- SecurityDescriptor.cs
- EventTask.cs
- InputLanguageSource.cs
- IChannel.cs
- IPGlobalProperties.cs
- GenericWebPart.cs
- PlainXmlDeserializer.cs
- FeatureManager.cs
- _NestedMultipleAsyncResult.cs
- HashHelper.cs
- FixedPosition.cs
- IPPacketInformation.cs
- BitmapImage.cs
- DeleteBookmarkScope.cs
- PersonalizationState.cs
- NotifyInputEventArgs.cs
- TimeSpanValidatorAttribute.cs
- SqlCharStream.cs
- HttpHandlerActionCollection.cs
- XPathItem.cs
- SqlMethodAttribute.cs
- AggregateException.cs
- VariableReference.cs
- PassportAuthenticationModule.cs
- XmlILOptimizerVisitor.cs
- ManagementOperationWatcher.cs
- PerspectiveCamera.cs
- IOThreadTimer.cs
- LocatorBase.cs
- RoleManagerModule.cs
- QueryNode.cs
- WindowsFormsHelpers.cs
- BitStream.cs
- AuthenticationSection.cs
- DesignerImageAdapter.cs
- AttachmentService.cs
- DesignerResources.cs
- CompositeCollection.cs
- PassportAuthenticationModule.cs
- PerSessionInstanceContextProvider.cs
- HttpMethodAttribute.cs
- AppSettingsSection.cs
- WorkflowViewService.cs
- AccessDataSourceView.cs
- SqlNode.cs
- BamlWriter.cs
- ICspAsymmetricAlgorithm.cs
- CriticalFinalizerObject.cs
- SiteMap.cs
- AutomationTextAttribute.cs
- AccessKeyManager.cs
- OdbcConnectionHandle.cs
- FixedHighlight.cs
- TextEffectCollection.cs
- CounterSample.cs
- HttpCookie.cs
- DictionaryBase.cs
- CommentAction.cs
- OleDbError.cs
- InputLangChangeEvent.cs
- CharacterHit.cs
- ToolStripSettings.cs
- InkCanvasSelection.cs
- X509RawDataKeyIdentifierClause.cs
- SplineQuaternionKeyFrame.cs
- Positioning.cs
- ExtendLockCommand.cs
- MessageQueueException.cs
- PropertyGeneratedEventArgs.cs
- UiaCoreProviderApi.cs
- SerialStream.cs
- SubqueryTrackingVisitor.cs
- DeclaredTypeValidator.cs
- SmtpAuthenticationManager.cs
- Native.cs