|
166 | 166 | Width="437" Height="20" |
167 | 167 | Drop="Tb_Input_Drop" DragOver="Tb_Input_DragOver" |
168 | 168 | PreviewDragOver="Tb_Input_PreviewDragOver" IsReadOnly="False" |
169 | | - TargetUpdated="Tb_Input_OnTargetUpdated" |
170 | | - SourceUpdated="Tb_Input_OnSourceUpdated" |
171 | | - Text="{Binding SelectedItem.Value, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnTargetUpdated=True, |
172 | | - NotifyOnSourceUpdated=True, ElementName=Lb_Queue}" /> |
| 169 | + TextChanged="Tb_Input_OnTextChanged" |
| 170 | + Text="{Binding CurrentQueueItem.Value, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ElementName=Wnd_Main}" /> |
173 | 171 |
|
174 | 172 | <Button x:Name="Btn_Run" Content="Run" HorizontalAlignment="Left" Margin="499,8,0,0" |
175 | 173 | VerticalAlignment="Top" Click="Btn_Run_Click" Height="20" FontWeight="Bold" |
|
245 | 243 | <Button x:Name="Btn_Remove" Content="Remove" |
246 | 244 | HorizontalAlignment="Left" Margin="583,8,0,0" VerticalAlignment="Top" |
247 | 245 | Click="Btn_Remove_Click" Height="20" Width="46" |
248 | | - IsEnabled="{Binding Path=CurrentQueueItem.IsNonPrimitive, ElementName=Wnd_Main}"> |
| 246 | + IsEnabled="{Binding Path=CurrentQueueItem.HasQuery, UpdateSourceTrigger=PropertyChanged, ElementName=Wnd_Main}"> |
249 | 247 |
|
250 | 248 | <Button.Style> |
251 | 249 | <Style TargetType="{x:Type Button}"> |
|
317 | 315 | DragOver="Lb_Queue_DragOver" PreviewDragOver="Lb_Queue_PreviewDragOver" AllowDrop="True" |
318 | 316 | Background="{DynamicResource Black2}" Foreground="White" |
319 | 317 | SelectionChanged="Lb_Queue_SelectionChanged" |
320 | | - SelectedItem="{Binding CurrentQueueItem, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnTargetUpdated=True}" |
| 318 | + SelectedItem="{Binding CurrentQueueItem, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, IsAsync=True, ElementName=Wnd_Main}" |
321 | 319 |
|
322 | | - TargetUpdated="Lb_Queue_OnTargetUpdated" |
323 | 320 | KeyDown="Lb_Queue_KeyDown" Margin="0,2,174,0" HorizontalAlignment="Right" |
324 | 321 | VerticalAlignment="Top" Width="320" Height="150" Grid.Column="1" Grid.RowSpan="2" |
325 | | - ItemsSource="{Binding Queue}" DisplayMemberPath="Value"> |
| 322 | + ItemsSource="{Binding Queue}"> |
326 | 323 | <!-- IsSynchronizedWithCurrentItem="True" --> |
| 324 | + <ListBox.ItemTemplate> |
| 325 | + <DataTemplate> |
| 326 | + <TextBlock Text="{Binding Value, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"> |
| 327 | + <TextBlock.Style> |
| 328 | + <Style TargetType="TextBlock"> |
| 329 | + <Style.Triggers> |
| 330 | + <DataTrigger Binding="{Binding IsPrimitive}" Value="True"> |
| 331 | + <Setter Property="Foreground" Value="LightGray" /> |
| 332 | + </DataTrigger> |
| 333 | + |
| 334 | + <DataTrigger Binding="{Binding HasQuery}" Value="True"> |
| 335 | + <Setter Property="Foreground" Value="Cyan" /> |
| 336 | + </DataTrigger> |
| 337 | + |
| 338 | + <DataTrigger Binding="{Binding IsComplete}" Value="True"> |
| 339 | + <Setter Property="Foreground" Value="GreenYellow" /> |
| 340 | + </DataTrigger> |
| 341 | + |
| 342 | + </Style.Triggers> |
| 343 | + </Style> |
| 344 | + </TextBlock.Style> |
| 345 | + </TextBlock> |
| 346 | + </DataTemplate> |
| 347 | + </ListBox.ItemTemplate> |
327 | 348 | </ListBox> |
328 | 349 |
|
329 | 350 | <Border x:Name="Br_Preview" Height="150" Margin="0,3,11,0" Width="150" |
|
456 | 477 |
|
457 | 478 | <TextBox x:Name="Tb_Info" HorizontalAlignment="Left" Margin="57,65,0,0" TextWrapping="Wrap" |
458 | 479 | VerticalAlignment="Top" Width="437" IsReadOnly="True" Height="20" Background="Black" |
459 | | - DataContext="{Binding CurrentQueueItem}" |
460 | 480 | Foreground="White" MouseDoubleClick="Tb_Info_MouseDoubleClick" |
461 | | - Text="{Binding Info, UpdateSourceTrigger=PropertyChanged}" /> |
| 481 | + Text="{Binding CurrentQueueItem.Info, Mode=OneWay, UpdateSourceTrigger=PropertyChanged, ElementName=Wnd_Main, IsAsync=True}" /> |
462 | 482 |
|
463 | 483 | <Image x:Name="Img_Status" HorizontalAlignment="Left" Height="20px" Width="20px" |
464 | 484 | Margin="10,5,0,0" |
|
575 | 595 | <Image x:Name="Img_Type" Width="20px" Height="20px" Stretch="None" Margin="48,5,0,0" |
576 | 596 | HorizontalAlignment="Left" VerticalAlignment="Top" Grid.Row="1" /> |
577 | 597 | <TextBlock x:Name="Tb_Status" HorizontalAlignment="Left" Margin="4,33,0,0" |
578 | | - DataContext="{Binding CurrentQueueItem}" |
| 598 | + |
579 | 599 | VerticalAlignment="Top" Foreground="White" FontStyle="Italic" Grid.Row="1" |
580 | | - Text="{Binding Status, UpdateSourceTrigger=PropertyChanged}" /> |
| 600 | + Text="{Binding CurrentQueueItem.Status, UpdateSourceTrigger=PropertyChanged}" /> |
581 | 601 |
|
582 | 602 | <TextBlock x:Name="Tb_Status2" HorizontalAlignment="Left" Margin="115,49,0,0" |
583 | | - DataContext="{Binding CurrentQueueItem}" |
584 | 603 | VerticalAlignment="Top" Foreground="White" Grid.Row="1" TextDecorations="Underline" |
585 | | - Text="{Binding Status2, UpdateSourceTrigger=PropertyChanged}" /> |
| 604 | + Text="{Binding CurrentQueueItem.Status2, UpdateSourceTrigger=PropertyChanged}" /> |
586 | 605 | <Button x:Name="Btn_Filter" Content="Filter" HorizontalAlignment="Left" Margin="501,65,0,0" |
587 | 606 | VerticalAlignment="Top" Click="Btn_Filter_Click" /> |
588 | 607 | <TextBox x:Name="Tb_Search" HorizontalAlignment="Right" Margin="0,46,499,0" Grid.Row="1" |
|
0 commit comments