Language Switching
The Designer provides a language switching control that allows you to change the text in a form or user display from one language to another during run time.
Note: Language switching is available in both the WPF Designer and the Silverlight Designer.
Language Switching Controls Property Usage
The following table shows the properties used by each control:
Property | Flag Switching Button | Switch Language Button |
---|---|---|
AllowDrop | X | X |
Background | X | X |
BorderBrush | X | X |
BorderThickness | X | X |
ClickMode | X | X |
ClipToBounds | X | X |
Column | X | X |
ColumnSpan | X | X |
CommandParameter | X | X |
CommandTarget | X | X |
Content | X | X |
ContentStringFormat | X | X |
DefaultFlag | X | |
Effect | X | X |
FlagsParameters | X | |
FlagStyle | X | |
FlowDirection | X | X |
Focusable | X | X |
FocusBrush | X | |
FocusVisualStyle | X | X |
FontFamily | X | X |
FontSize | X | X |
FontStretch | X | X |
FontStyle | X | X |
FontWeight | X | X |
ForceCursor | X | X |
Foreground | X | X |
Height | X | X |
HorizontalAlignment | X | X |
HorizontalContentAlignment | X | X |
IsCancel | X | X |
IsDefault | X | X |
IsEnabled | X | X |
IsHitTestVisible | X | X |
IsManipulationEnabled | X | X |
IsSharedSizeScope | X | X |
IsTabStop | X | X |
Localization | X | X |
Margin | X | X |
MaxHeight | X | X |
MaxWidth | X | X |
MinHeight | X | X |
MinWidth | X | X |
Name | X | X |
Opacity | X | X |
OpacityMask | X | X |
OverridesDefaultStyle | X | X |
Padding | X | X |
RenderTransformOrigin | X | X |
Row | X | X |
RowSpan | X | X |
SnapsToDevicePixels | X | X |
Style | X | X |
TabIndex | X | X |
Tag | X | X |
Template | X | X |
ToolTip | X | X |
Uid | X | X |
UseLayoutRounding | X | X |
VerticalAlignment | X | X |
VerticalContentAlignment | X | X |
Visibility | X | X |
Width | X | X |
Language Switching Controls Property Descriptions
The following table shows the properties descriptions used by all control:
Property | Description |
---|---|
AllowDrop | Select this check box to indicate that the control can accept data that is dragged onto it. |
Background | Expand this field to select the background color of the selected control. |
BorderBrush | Expand this field to select the border color of the selected control. |
BorderThickness | Specifies the border thickness of a control, in pixels. |
ClickMode | Specifies when the Click event occurs. Selections are:
|
ClipToBounds | Select this check box to clip the content of this control (or content coming from the child elements of this control) to fit into the size of the containing control. |
Column | Specifies the column within the grid where the control is located. |
ColumnSpan | Specifies the total number of columns that child content spans within a grid. |
CommandParameter | Specifies the parameter to pass to the Command property. |
CommandTarget | Specifies the element on which to raise the specified command. |
Content | Specifies the content displayed on the control. |
ContentStringFormat | Specifies a composite string that determines how to format the Content property if it is displayed as a string. |
DefaultFlag | Specifies the default flag to use for the flag switching button. This is the flag that is initially displayed at run time. Valid selections are:
|
Effect | Click the arrow to expand the property, select the effect you want to apply to the control, and then configure the specific values for the effect. Valid values to select are:
|
FlagsParameters | Click the ellipsis button to open the Language Selection dialog box, where you can select the flags you want to be able to switch between. Valid selections are:
|
FlagStyle | Specifies the style of the flag control. Valid selections are:
|
FlowDirection | Specifies the direction that text and other user interface (UI) elements flow within any parent control. Selections are:
|
Focusable | Select this check box to indicate that the control can receive focus. |
FocusBrush | Expand this field to select the color that displays around the control's border when the control has focus. |
FocusVisualStyle | Specifies a property that enables customization of appearance, effects, or other style characteristics that apply to this control when it has focus. |
FontFamily | Specifies the font family for the control. |
FontSize | Specifies the font size for the control. |
FontStretch | Specifies the degree to which a font is condensed or expanded on the screen. |
FontStyle | Specifies the font style for the control. |
FontWeight | Specifies the weight or thickness of the specified font. |
ForceCursor | Select this check box to indicate that the user interface (UI) renders the cursor as declared by the Cursor property. |
Foreground | Expand this field to select the foreground color. |
Height | Specifies the height of the control, in pixels. |
HorizontalAlignment | Specifies the horizontal alignment characteristics applied to this control. Selections are:
|
HorizontalContentAlignment | Specifies the horizontal alignment of the control's content. Selections are:
|
IsCancel | Select this check box to indicate that a Button or Repeat Button acts as a Cancel button. Press the Esc key to select the actual Cancel button. |
IsDefault | Select this check box to indicate that a Button or Repeat Button is the default Submit button. Press the Enter key to select the actual Submit button. |
IsEnabled | Select this check box to indicate that this control is enabled in the user interface (UI). |
IsHitTestVisible | Select this check box to indicate that the control can possibly be returned as a hit test result from some portion of its rendered content. |
IsManipulationEnabled | Select this check box to indicate that the manipulation events for the control are enabled. |
IsSharedSizeScope | Select this check box to indicate that controls are sharing size information. |
IsTabStop | Select this check box to indicate that a control is included in tab navigation. |
Localization | Click the ellipsis button to open the Localization Configuration dialog box where you can configure the property to localize, the language to use for localization, and the text to localize. |
Margin | Specifies the outer margin of a control. |
MaxHeight | Specifies the maximum height of a control. |
MaxWidth | Specifies the maximum width of a control. |
MinHeight | Specifies the minimum height of a control. |
MinWidth | Specifies the minimum width of a control. |
Name | Specifies the identifying name of the control. The name provides a reference so that code behind, such as event handler code, can refer to a markup element during processing by a XAML processor. |
Opacity | Specifies the opacity factor applied to the entire control. Valid values are 0 through 1, with up to 15 decimal places. |
OpacityMask | Expand this field to select a color for the opacity mask, which is applied to any alpha-channel masking for the rendered content of this control. |
OverridesDefaultStyle | Select this check box to indicate that this control incorporates style properties from theme styles. |
Padding | Specifies the amount of padding to apply to the inside edge of each side of a control. |
RenderTransformOrigin | Specifies the center point of any possible render transform, relative to the bounds of the element.
|
Row | RowBackground |
RowSpan | Specifies the total number of rows that child content spans within a grid. |
SnapsToDevicePixels | Select this check box to indicate that rendering for this control uses device-specific pixel settings. |
Style | Specifies the style used by this control when it is rendered. |
TabIndex | Specifies the order in which controls receive focus when the Tab key is pressed. |
Tag | Specifies an arbitrary object value that can be used to store custom information about this control. |
Template | Click the ellipsis button to open the Open dialog box to select a template to use. |
ToolTip | Specifies the tool-tip that displays for this control in the user interface (UI). |
Uid | Specifies the unique identifier (for localization) for this control. |
UseLayoutRounding | Specifies a value that determines whether rendering for the object and its visual subtree should use rounding behavior that aligns rendering to whole pixels. |
VerticalAlignment | Specifies the vertical alignment characteristics applied to this control. Selections are:
|
VerticalContentAlignment | Specifies the vertical alignment of the control's content. Selections are:
|
Visibility | Specifies the visibility of this control. Selections are:
|
Width | Specifies the width of the control, in pixels. |