Permalink
Fetching contributors…
Cannot retrieve contributors at this time
55 lines (46 sloc) 1.53 KB
<Page
x:Class="SDKSample.Attributes"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Loaded="PageLoaded"
>
<StackPanel Background="FloralWhite">
<!-- Define localization attributes for the button.
- The content is visible to the localizer and can be changed.
- The font family property is visible to the localizer but cannot be changed. -->
<Button
FontFamily="Microsoft San Serif"
Localization.Attributes=
"$Content(Button Readable Modifiable) FontFamily(Font Readable Unmodifiable)" >
your company name here
</Button>
<Button
Name="buttonLocalized"
FontFamily="Microsoft San Serif"
Localization.Attributes=
"$Content(Button Readable Modifiable) FontFamily(Font Readable Unmodifiable)" >
your company name here
</Button>
<!--<SnippetLocalizationAttributes>-->
<TextBlock
x:Uid="TextBlock_1"
Localization.Attributes=
"$Content(Readable Unmodifiable)">
Microsoft Corporation
</TextBlock>
<!--</SnippetLocalizationAttributes>-->
<!--<SnippetLocalizationAttributesOverridden>-->
<TextBlock x:Uid="TextBlock_2">
<TextBlock.ToolTip>
<TextBlock
x:Uid="TextBlock_3"
Localization.Attributes=
"$Content(ToolTip Readable Unmodifiable)">
Microsoft Corporation
</TextBlock>
</TextBlock.ToolTip>
Windows Vista
</TextBlock>
<!--</SnippetLocalizationAttributesOverridden>-->
</StackPanel>
</Page>