|
<Window x:Class="WPFLocalizationTest.Window2" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window2" Height="300" Width="300"
Loaded="Window_Loaded">
<Window.Resources>
<Style TargetType="Label" x:Key="A">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Label">
<TextBlock Text="{Loc Text_HelloGeeks}" />
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Window.Resources>
<Grid>
<ListBox Name="A" HorizontalAlignment="Center" VerticalAlignment="Center" Width="150" Height="150">
<ListBox.ItemTemplate>
<DataTemplate>
<Label Style="{StaticResource A}" />
<!--
<TextBlock Text="{Loc Text_HelloGeeks}"/>
-->
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</Grid>
</Window>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.