forked from rstarkov/TankIconMaker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDataSourceEditor.xaml
More file actions
32 lines (32 loc) · 1.9 KB
/
Copy pathDataSourceEditor.xaml
File metadata and controls
32 lines (32 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<UserControl x:Class="TankIconMaker.DataSourceEditor"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:TankIconMaker"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300">
<UserControl.Resources>
<DataTemplate x:Key="tierArabicTemplate">
<TextBlock Margin="0,5,0,5" Text="{Binding Source={x:Static local:WpfTranslations.PropSource_TierArabic}}" FontWeight="Bold"/>
</DataTemplate>
<DataTemplate x:Key="tierRomanTemplate">
<TextBlock Margin="0,5,0,5" Text="{Binding Source={x:Static local:WpfTranslations.PropSource_TierRoman}}" FontWeight="Bold"/>
</DataTemplate>
<DataTemplate x:Key="sourceTemplate">
<StackPanel Margin="0,5,0,5" ToolTip="{Binding Description}">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Name}" FontWeight="Bold" Margin="0,0,8,0"/>
<TextBlock Text="{Binding Language}"/>
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Source={x:Static local:WpfTranslations.PropSource_Author}}" FontWeight="Bold" Margin="0,0,5,0"/>
<TextBlock Text="{Binding Author}"/>
</StackPanel>
<TextBlock Text="{Binding Description}"/>
</StackPanel>
</DataTemplate>
<local:DataSourceTemplateSelector x:Key="sourceTemplateSelector"/>
</UserControl.Resources>
<ComboBox Name="ctCombo" ItemTemplateSelector="{StaticResource sourceTemplateSelector}" />
</UserControl>