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
- WindowsSecurityTokenAuthenticator.cs
- SubMenuStyleCollection.cs
- ConfigsHelper.cs
- XmlnsCache.cs
- CodeAttributeDeclarationCollection.cs
- While.cs
- EditorOptionAttribute.cs
- FrameworkContentElement.cs
- TypeDescriptionProviderAttribute.cs
- Literal.cs
- FrameworkContentElement.cs
- TextParagraph.cs
- GeometryCombineModeValidation.cs
- ServiceOperationViewControl.cs
- Regex.cs
- WsatServiceAddress.cs
- ObjectHelper.cs
- TypedServiceOperationListItem.cs
- GacUtil.cs
- LineMetrics.cs
- Documentation.cs
- DataSetViewSchema.cs
- LogWriteRestartAreaState.cs
- ProcessProtocolHandler.cs
- NGCSerializerAsync.cs
- ClosableStream.cs
- Win32MouseDevice.cs
- ButtonChrome.cs
- DataGridViewTopRowAccessibleObject.cs
- InternalResources.cs
- Imaging.cs
- DefaultBindingPropertyAttribute.cs
- FloatMinMaxAggregationOperator.cs
- WebPartEventArgs.cs
- Debug.cs
- ActivityExecutor.cs
- HMAC.cs
- LoginName.cs
- ClientRuntimeConfig.cs
- TemplateBamlTreeBuilder.cs
- SizeAnimationBase.cs
- WmlMobileTextWriter.cs
- EntityCommandCompilationException.cs
- ClaimSet.cs
- FixedDocumentSequencePaginator.cs
- FormsAuthenticationTicket.cs
- CachedFontFace.cs
- ResolveCriteria.cs
- ProtocolViolationException.cs
- EntityDataSourceStatementEditor.cs
- ItemCheckedEvent.cs
- sqlcontext.cs
- PageTheme.cs
- RemotingAttributes.cs
- HttpStreamFormatter.cs
- XmlSchemaChoice.cs
- CryptoApi.cs
- NativeMethods.cs
- CheckBoxFlatAdapter.cs
- SingleKeyFrameCollection.cs
- COSERVERINFO.cs
- MouseGestureValueSerializer.cs
- ApplicationSettingsBase.cs
- TemplateBaseAction.cs
- StrokeNodeData.cs
- EUCJPEncoding.cs
- RubberbandSelector.cs
- IERequestCache.cs
- ToolStripOverflow.cs
- XamlReaderConstants.cs
- TableLayoutPanelCodeDomSerializer.cs
- CompareInfo.cs
- SlotInfo.cs
- ListViewItemSelectionChangedEvent.cs
- ValueType.cs
- METAHEADER.cs
- TransformGroup.cs
- UserNameSecurityTokenAuthenticator.cs
- _SslState.cs
- StorageEntityContainerMapping.cs
- DBSqlParser.cs
- ConfigXmlWhitespace.cs
- SqlBulkCopyColumnMapping.cs
- LayoutEditorPart.cs
- DataGridClipboardCellContent.cs
- TrimSurroundingWhitespaceAttribute.cs
- ScrollEventArgs.cs
- ScriptReferenceEventArgs.cs
- Focus.cs
- SqlConnectionPoolGroupProviderInfo.cs
- ServiceNameCollection.cs
- OptimalTextSource.cs
- Identity.cs
- RowParagraph.cs
- RijndaelManagedTransform.cs
- PointF.cs
- TypeContext.cs
- SelectingProviderEventArgs.cs
- DetailsViewInsertEventArgs.cs
- ItemType.cs