|
1 | 1 | <UserControl x:Class="DotPilot.Presentation.Controls.ChatFleetBoard" |
2 | 2 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
3 | 3 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 4 | + xmlns:controls="using:DotPilot.Presentation.Controls" |
4 | 5 | xmlns:presentation="using:DotPilot.Presentation" |
5 | 6 | AutomationProperties.AutomationId="ChatFleetBoardSection"> |
6 | 7 | <UserControl.Resources> |
|
46 | 47 | </Button> |
47 | 48 | </DataTemplate> |
48 | 49 |
|
49 | | - <DataTemplate x:Key="FleetProviderTemplate" |
50 | | - x:DataType="presentation:FleetBoardProviderItem"> |
51 | | - <Border Background="{StaticResource AppInputSurfaceBrush}" |
52 | | - BorderBrush="{StaticResource AppOutlineBrush}" |
53 | | - BorderThickness="1" |
54 | | - CornerRadius="10" |
55 | | - Padding="12,10" |
56 | | - AutomationProperties.AutomationId="ChatFleetProviderItem"> |
57 | | - <StackPanel Spacing="6"> |
58 | | - <Grid ColumnSpacing="8"> |
59 | | - <Grid.ColumnDefinitions> |
60 | | - <ColumnDefinition Width="*" /> |
61 | | - <ColumnDefinition Width="Auto" /> |
62 | | - </Grid.ColumnDefinitions> |
63 | | - |
64 | | - <TextBlock FontSize="12.5" |
65 | | - FontWeight="SemiBold" |
66 | | - Foreground="{StaticResource AppPrimaryTextBrush}" |
67 | | - Text="{x:Bind DisplayName}" /> |
68 | | - |
69 | | - <Border Grid.Column="1" |
70 | | - Background="{x:Bind StatusBrush}" |
71 | | - CornerRadius="999" |
72 | | - Padding="8,2"> |
73 | | - <TextBlock FontSize="10" |
74 | | - FontWeight="SemiBold" |
75 | | - Foreground="{StaticResource AppPrimaryTextBrush}" |
76 | | - Text="{x:Bind StatusLabel}" /> |
77 | | - </Border> |
78 | | - </Grid> |
79 | | - |
80 | | - <TextBlock FontSize="11.5" |
81 | | - Foreground="{StaticResource AppMutedTextBrush}" |
82 | | - Text="{x:Bind Summary}" |
83 | | - TextWrapping="WrapWholeWords" /> |
84 | | - </StackPanel> |
85 | | - </Border> |
86 | | - </DataTemplate> |
87 | 50 | </UserControl.Resources> |
88 | 51 |
|
89 | 52 | <StackPanel Spacing="12"> |
|
125 | 88 | Text="PROVIDER HEALTH" /> |
126 | 89 |
|
127 | 90 | <ItemsControl AutomationProperties.AutomationId="ChatFleetProvidersList" |
128 | | - ItemTemplate="{StaticResource FleetProviderTemplate}" |
129 | | - ItemsSource="{Binding FleetBoard.Providers}" /> |
| 91 | + ItemsSource="{Binding FleetBoard.Providers}"> |
| 92 | + <ItemsControl.ItemTemplate> |
| 93 | + <DataTemplate> |
| 94 | + <controls:ChatFleetProviderCard /> |
| 95 | + </DataTemplate> |
| 96 | + </ItemsControl.ItemTemplate> |
| 97 | + </ItemsControl> |
130 | 98 | </StackPanel> |
131 | 99 | </StackPanel> |
132 | 100 | </UserControl> |
0 commit comments