blob: ef16c34d89b5bfb9770d27d1448d9904af9edbe6 (
plain)
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
33
34
35
36
37
|
<UserControl x:Class="Tango.PanelPC.UI.Views.JobsView"
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:vm="clr-namespace:Tango.PanelPC.UI.ViewModels"
xmlns:global="clr-namespace:Tango.PanelPC.UI"
xmlns:keyboard="clr-namespace:Tango.SharedUI.Keyboard;assembly=Tango.SharedUI"
xmlns:entities="clr-namespace:Tango.BL.Entities;assembly=Tango.BL"
xmlns:local="clr-namespace:Tango.PanelPC.UI.Views"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300" d:DataContext="{d:DesignInstance Type=vm:JobsViewVM, IsDesignTimeCreatable=False}" DataContext="{x:Static global:ViewModelLocator.JobsViewVM}">
<Grid>
<ListBox ItemsSource="{Binding Jobs}" SelectionMode="Single" Style="{StaticResource JobsListBox}">
<ListBox.ItemContainerStyle>
<Style TargetType="ListBoxItem" BasedOn="{StaticResource {x:Type ListBoxItem}}">
<Setter Property="Margin" Value="2"></Setter>
</Style>
</ListBox.ItemContainerStyle>
<ListBox.ItemTemplate>
<DataTemplate DataType="{x:Type entities:Job}">
<Border Padding="10">
<StackPanel Orientation="Horizontal">
<Image Source="/Images/liquid.png" Width="50"></Image>
<StackPanel Margin="10 0 0 0">
<TextBlock Text="{Binding Name}"></TextBlock>
<TextBlock Text="{Binding Description}" FontSize="12" Foreground="Gray"></TextBlock>
</StackPanel>
<TextBox Margin="40 0 0 0" VerticalAlignment="Center" Width="100" Text="{Binding Name}" keyboard:KeyboardView.Mode="AlphaNumeric"></TextBox>
</StackPanel>
</Border>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</Grid>
</UserControl>
|