Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- PhysicalFontFamily.cs
- BulletedListEventArgs.cs
- DataGridViewCellLinkedList.cs
- DiscoveryDocumentReference.cs
- ScalarType.cs
- Soap12ServerProtocol.cs
- SafeRegistryHandle.cs
- LabelEditEvent.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- WebUtil.cs
- DragStartedEventArgs.cs
- ExpandCollapsePattern.cs
- ColumnWidthChangingEvent.cs
- ObjectCloneHelper.cs
- RowTypeElement.cs
- AnonymousIdentificationSection.cs
- BatchWriter.cs
- DefaultDialogButtons.cs
- FacetChecker.cs
- SqlTypeSystemProvider.cs
- ListViewCommandEventArgs.cs
- Vector.cs
- LocatorGroup.cs
- Hex.cs
- DEREncoding.cs
- IgnoreSectionHandler.cs
- XmlIlTypeHelper.cs
- DateTimeFormat.cs
- MembershipSection.cs
- BitmapFrameEncode.cs
- AvtEvent.cs
- Material.cs
- NotificationContext.cs
- DirectionalLight.cs
- BitmapVisualManager.cs
- WebBrowserContainer.cs
- Accessible.cs
- ImageBrush.cs
- OleDbConnectionFactory.cs
- LayoutTable.cs
- XmlSchemaAnnotation.cs
- SqlPersonalizationProvider.cs
- MatrixTransform.cs
- IsolatedStoragePermission.cs
- StaticResourceExtension.cs
- FormViewDeletedEventArgs.cs
- ControlPersister.cs
- HtmlHead.cs
- HtmlTextArea.cs
- BamlResourceContent.cs
- CancellationTokenSource.cs
- FixedPageProcessor.cs
- SqlInfoMessageEvent.cs
- EventDescriptor.cs
- SelectionItemPattern.cs
- FontNamesConverter.cs
- DefinitionUpdate.cs
- RangeBase.cs
- ExpandoClass.cs
- Storyboard.cs
- XmlAttributeCache.cs
- TranslateTransform3D.cs
- TripleDES.cs
- NetSectionGroup.cs
- TraceUtility.cs
- ViewPort3D.cs
- BaseDataList.cs
- WebPartActionVerb.cs
- FeatureAttribute.cs
- StylusPlugInCollection.cs
- ActivationArguments.cs
- HostedTransportConfigurationBase.cs
- Brushes.cs
- TransactionScope.cs
- BamlStream.cs
- ClientSponsor.cs
- FormsAuthenticationCredentials.cs
- FontStretchConverter.cs
- SafeNativeMethods.cs
- OrderedDictionary.cs
- OrthographicCamera.cs
- IsolatedStorageFileStream.cs
- FieldAccessException.cs
- MultiDataTrigger.cs
- MobileUserControlDesigner.cs
- DialogDivider.cs
- KerberosReceiverSecurityToken.cs
- ServiceControllerDesigner.cs
- ObjectSpanRewriter.cs
- TextEndOfSegment.cs
- AmbientLight.cs
- SafeFileMapViewHandle.cs
- UnsafeNativeMethods.cs
- WsatExtendedInformation.cs
- COM2PictureConverter.cs
- DecimalStorage.cs
- CollectionViewProxy.cs
- Signature.cs
- TdsParser.cs
- TextOutput.cs