|
158 | 158 | <TextBlock Grid.Row="4" Grid.Column="3" Grid.ColumnSpan="2" Margin="5" Text="{Binding CurrentProfile.Name , FallbackValue={x:Static pres:ProjectLocales.NoProfile}}" TextAlignment="left" Width="Auto" VerticalAlignment="Center" FontSize="15" /> |
159 | 159 | <Border Grid.Row="6" Grid.Column="3" Grid.ColumnSpan="2" Style="{StaticResource DefaultBorder}" > |
160 | 160 | </Border> |
161 | | - <ListBox Margin="5" Grid.Row="6" Grid.Column="3" Grid.ColumnSpan="2" BorderThickness="0" ItemsSource="{Binding LastActions}" ItemTemplate="{StaticResource ProfileActionTemplate}" ItemsPanel="{StaticResource StackListViewTemplate}" /> |
| 161 | + <ItemsControl Margin="8" Grid.Row="6" Grid.Column="3" Grid.ColumnSpan="2" BorderThickness="0" ItemsSource="{Binding LastActions}" ItemTemplate="{StaticResource ProfileActionTemplate}" ItemsPanel="{StaticResource StackListViewTemplate}" /> |
162 | 162 |
|
163 | 163 | </Grid> |
164 | 164 |
|
|
208 | 208 | <RowDefinition Height="*"/> |
209 | 209 | <RowDefinition Height="Auto" /> |
210 | 210 | </Grid.RowDefinitions> |
211 | | - <Border Style="{StaticResource DefaultBorder}" Margin="10,10,10,10" Grid.Row="0" Grid.ColumnSpan="3"/> |
212 | 211 |
|
213 | 212 | <Grid Grid.IsSharedSizeScope="True" Grid.ColumnSpan="3" Margin="10,10,10,10" > |
214 | | - <ListBox Name="ApplicationList" ItemsSource="{Binding Settings.ApplicationProfileAssignments}" HorizontalContentAlignment="Stretch" > |
| 213 | + <ListBox Name="ApplicationList" ItemContainerStyle="{StaticResource ListBoxItemStyle }" ItemsSource="{Binding Settings.ApplicationProfileAssignments}" HorizontalContentAlignment="Stretch" > |
215 | 214 | <ListBox.Template> |
216 | 215 | <ControlTemplate> |
217 | | - <ScrollViewer> |
218 | 216 | <DockPanel LastChildFill="True"> |
219 | | - <Grid DockPanel.Dock="Top" Height="30" Margin="0,0,0,5" > |
220 | | - <Grid.ColumnDefinitions> |
221 | | - <ColumnDefinition SharedSizeGroup="PriorityColumn" /> |
222 | | - <ColumnDefinition SharedSizeGroup="IconColumn"/> |
223 | | - <ColumnDefinition SharedSizeGroup="ApplicationColumn"/> |
224 | | - <ColumnDefinition /> |
225 | | - </Grid.ColumnDefinitions> |
226 | | - <Label Grid.Column="0" FontWeight="Bold" Margin="5,0" Content="{x:Static pres:ProjectLocales.Priority}"/> |
227 | | - <Label Grid.Column="1" FontWeight="Bold" Margin="5,0" Content="{x:Static pres:ProjectLocales.Icon}"/> |
228 | | - <Label Grid.Column="2" FontWeight="Bold" Margin="5,0" Content="{x:Static pres:ProjectLocales.Application}"/> |
229 | | - <Label Grid.Column="3" FontWeight="Bold" Margin="5,0" Content="{x:Static pres:ProjectLocales.Profile}"/> |
230 | | - </Grid> |
231 | | - <ItemsPresenter></ItemsPresenter> |
232 | | - </DockPanel> |
233 | | - </ScrollViewer> |
| 217 | + |
| 218 | + <Grid DockPanel.Dock="Top" Height="Auto" Margin="0,0,0,5" > |
| 219 | + <Grid.ColumnDefinitions> |
| 220 | + <ColumnDefinition SharedSizeGroup="PriorityColumn" /> |
| 221 | + <ColumnDefinition SharedSizeGroup="IconColumn"/> |
| 222 | + <ColumnDefinition SharedSizeGroup="ApplicationColumn"/> |
| 223 | + <ColumnDefinition /> |
| 224 | + </Grid.ColumnDefinitions> |
| 225 | + <Label Grid.Column="0" FontWeight="Bold" FontSize="25" Margin="5,0" Content="{x:Static pres:ProjectLocales.Priority}"/> |
| 226 | + <Label Grid.Column="1" FontWeight="Bold" FontSize="25" Margin="5,0" Content="{x:Static pres:ProjectLocales.Icon}"/> |
| 227 | + <Label Grid.Column="2" FontWeight="Bold" FontSize="25" Margin="5,0" Content="{x:Static pres:ProjectLocales.Application}"/> |
| 228 | + <Label Grid.Column="3" FontWeight="Bold" FontSize="25" Margin="5,0" Content="{x:Static pres:ProjectLocales.Profile}"/> |
| 229 | + </Grid> |
| 230 | + <Grid> |
| 231 | + <Border Style="{StaticResource DefaultBorder}" /> |
| 232 | + <ScrollViewer> |
| 233 | + <ItemsPresenter Margin="5"></ItemsPresenter> |
| 234 | + </ScrollViewer> |
| 235 | + </Grid> |
| 236 | + |
| 237 | + </DockPanel> |
| 238 | + |
234 | 239 | </ControlTemplate> |
235 | 240 | </ListBox.Template> |
236 | 241 | <ListBox.ItemTemplate> |
237 | 242 | <DataTemplate> |
238 | | - <Grid Margin="0,2" > |
239 | | - <Grid.ColumnDefinitions> |
240 | | - <ColumnDefinition SharedSizeGroup="PriorityColumn" Width="Auto"/> |
241 | | - <ColumnDefinition SharedSizeGroup="IconColumn" Width="Auto"/> |
242 | | - <ColumnDefinition SharedSizeGroup="ApplicationColumn" Width="Auto"/> |
243 | | - <ColumnDefinition Width="*"/> |
244 | | - </Grid.ColumnDefinitions> |
245 | | - <TextBlock Grid.Column="0" Margin="5,0" Width="Auto" FontSize="15" Text="{Binding Position}" VerticalAlignment="Center" HorizontalAlignment="Left" /> |
246 | | - <Border Grid.Column="1" CornerRadius="{StaticResource CornerRadius}" Background="#FF747474"> |
247 | | - <Image Margin="5,0" Source="{Binding Application.Icon, Converter={StaticResource BitmapToBitmapImageConverter}}" Width="50" Height="50" Stretch="Fill"></Image> |
248 | | - </Border> |
249 | | - <TextBlock Grid.Column="2" Width="Auto" Margin="5,0" FontSize="15" Text="{Binding Application.DisplayName}" VerticalAlignment="Center" HorizontalAlignment="Left" /> |
250 | | - <ComboBox Grid.Column="3" Width="Auto" Margin="5,0" FontSize="15" FontWeight="Bold" SelectedItem="{Binding Profile}" ItemTemplate="{StaticResource ProfileItemTemplate}" ItemsSource="{Binding ElementName=MainWindow , Path=DataContext.Settings.ApplicationProfiles}" VerticalAlignment="Center" /> |
251 | | - </Grid> |
| 243 | + <Border> |
| 244 | + <Grid Margin="0,2" > |
| 245 | + <Grid.ColumnDefinitions> |
| 246 | + <ColumnDefinition SharedSizeGroup="PriorityColumn" Width="Auto"/> |
| 247 | + <ColumnDefinition SharedSizeGroup="IconColumn" Width="Auto"/> |
| 248 | + <ColumnDefinition SharedSizeGroup="ApplicationColumn" Width="Auto"/> |
| 249 | + <ColumnDefinition Width="*"/> |
| 250 | + </Grid.ColumnDefinitions> |
| 251 | + <Label Grid.Column="0" Padding="15,0" Width="Auto" FontSize="15" Content="{Binding Position}" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" /> |
| 252 | + <Border Width="70" Grid.Column="1" CornerRadius="{StaticResource CornerRadius}" Background="#FF747474"> |
| 253 | + <Border Height="70" Width="70" CornerRadius="{StaticResource CornerRadius}"> |
| 254 | + <Border.Background> |
| 255 | + <ImageBrush Stretch="Fill" ImageSource="{Binding Application.Icon, Converter={StaticResource BitmapToBitmapImageConverter}}"/> |
| 256 | + </Border.Background> |
| 257 | + </Border> |
| 258 | + </Border> |
| 259 | + <Label Grid.Column="2" Width="Auto" Padding="5,0" FontSize="15" Content="{Binding Application.DisplayName}" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" /> |
| 260 | + <ComboBox VerticalContentAlignment="Stretch" Grid.Column="3" Width="Auto" Margin="5,0,10,0" FontSize="15" FontWeight="Bold" SelectedItem="{Binding Profile}" ItemTemplate="{StaticResource ProfileItemTemplate}" ItemsSource="{Binding ElementName=MainWindow , Path=DataContext.Settings.ApplicationProfiles}" VerticalAlignment="Center" /> |
| 261 | + </Grid> |
| 262 | + </Border> |
252 | 263 | </DataTemplate> |
253 | 264 | </ListBox.ItemTemplate> |
254 | 265 | </ListBox> |
|
0 commit comments