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
- WindowsStatic.cs
- TextOptionsInternal.cs
- TreeViewImageKeyConverter.cs
- Typeface.cs
- WindowsRebar.cs
- RoleBoolean.cs
- DataControlImageButton.cs
- XmlNode.cs
- TimeoutValidationAttribute.cs
- XMLUtil.cs
- TextEditorTyping.cs
- RequestTimeoutManager.cs
- MessageQueuePermissionAttribute.cs
- XmlSchemaRedefine.cs
- AsymmetricAlgorithm.cs
- SqlConnectionPoolProviderInfo.cs
- SemanticBasicElement.cs
- Geometry3D.cs
- SspiWrapper.cs
- BuildManager.cs
- SQLMembershipProvider.cs
- QilTernary.cs
- QueryStringHandler.cs
- IntegerValidatorAttribute.cs
- ExpressionEditorAttribute.cs
- DataGridViewCheckBoxCell.cs
- CodeVariableReferenceExpression.cs
- ClientConvert.cs
- PropertyHelper.cs
- DbConnectionStringBuilder.cs
- XPathMultyIterator.cs
- EmptyEnumerator.cs
- ComponentCache.cs
- AppliedDeviceFiltersEditor.cs
- WindowsSlider.cs
- InvalidOleVariantTypeException.cs
- CodeTypeReferenceExpression.cs
- WebPartConnectionsCloseVerb.cs
- ClientUrlResolverWrapper.cs
- PrivateFontCollection.cs
- DataGridViewDataConnection.cs
- AmbientLight.cs
- FastEncoder.cs
- FormsAuthenticationModule.cs
- BuildProviderCollection.cs
- HierarchicalDataSourceControl.cs
- SID.cs
- ListChangedEventArgs.cs
- WpfGeneratedKnownProperties.cs
- UrlMappingsSection.cs
- TextTreePropertyUndoUnit.cs
- TcpServerChannel.cs
- CategoryNameCollection.cs
- CornerRadius.cs
- WizardForm.cs
- BindingGroup.cs
- IssuanceTokenProviderState.cs
- XmlSchemaFacet.cs
- arabicshape.cs
- StandardToolWindows.cs
- OrCondition.cs
- StyleTypedPropertyAttribute.cs
- TargetControlTypeAttribute.cs
- MenuItemStyle.cs
- CqlQuery.cs
- RegistryKey.cs
- WorkflowApplicationIdleEventArgs.cs
- LogLogRecord.cs
- DesignerTransaction.cs
- ProbeMatches11.cs
- ValidatingPropertiesEventArgs.cs
- SqlDataSourceView.cs
- Lease.cs
- SplashScreen.cs
- SystemWebExtensionsSectionGroup.cs
- ReadOnlyHierarchicalDataSourceView.cs
- ObjectDataSourceChooseTypePanel.cs
- Route.cs
- SettingsPropertyWrongTypeException.cs
- ObjectToIdCache.cs
- XmlEnumAttribute.cs
- StringUtil.cs
- ExpressionBuilder.cs
- SelectedCellsChangedEventArgs.cs
- TraceLevelStore.cs
- IconConverter.cs
- MobileResource.cs
- XslTransform.cs
- NameValueCollection.cs
- ApplicationGesture.cs
- EmbeddedMailObjectsCollection.cs
- PersianCalendar.cs
- NavigateEvent.cs
- ActiveXMessageFormatter.cs
- ContactManager.cs
- SizeF.cs
- CellLabel.cs
- ReflectionTypeLoadException.cs
- Model3D.cs
- ClientSettingsStore.cs