diff options
Diffstat (limited to 'Software/Visual_Studio/Tango.Console/ConsoleControl.xaml')
| -rw-r--r-- | Software/Visual_Studio/Tango.Console/ConsoleControl.xaml | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Software/Visual_Studio/Tango.Console/ConsoleControl.xaml b/Software/Visual_Studio/Tango.Console/ConsoleControl.xaml index 6b0aaf8b6..11d5044cd 100644 --- a/Software/Visual_Studio/Tango.Console/ConsoleControl.xaml +++ b/Software/Visual_Studio/Tango.Console/ConsoleControl.xaml @@ -19,6 +19,9 @@ </DataTemplate> </Setter.Value> </Setter> + <Setter Property="local:ConsoleControl.SuggestionsBorderBrush" Value="DimGray"></Setter> + <Setter Property="local:ConsoleControl.SuggestionsForeground" Value="Silver"></Setter> + <Setter Property="local:ConsoleControl.SuggestionsBackground" Value="#383838"></Setter> </Style> </UserControl.Style> @@ -39,11 +42,11 @@ <Run Text="{Binding WorkingFolder}"></Run><Run Text=">"></Run> </TextBlock> <StackPanel VerticalAlignment="Center" Margin="5 0 0 0" Orientation="Horizontal"> - <TextBox VerticalAlignment="Center" IsReadOnly="True" Cursor="Arrow" AcceptsReturn="True" Background="Transparent" BorderThickness="0" Foreground="{Binding ElementName=control,Path=Foreground}" CaretBrush="{Binding ElementName=control,Path=CaretBrush}" SelectionBrush="{Binding ElementName=control,Path=SelectionBrush}" Text="{Binding CommandText}"></TextBox> + <TextBox Style="{x:Null}" VerticalAlignment="Center" IsReadOnly="True" Cursor="Arrow" AcceptsReturn="True" Background="Transparent" BorderThickness="0" Foreground="{Binding ElementName=control,Path=Foreground}" CaretBrush="{Binding ElementName=control,Path=CaretBrush}" SelectionBrush="{Binding ElementName=control,Path=SelectionBrush}" Text="{Binding CommandText}"></TextBox> </StackPanel> </StackPanel> - <TextBox IsReadOnly="True" Cursor="Arrow" TextWrapping="Wrap" AcceptsReturn="True" Background="Transparent" BorderThickness="0" Foreground="Silver" CaretBrush="White" SelectionBrush="#777777" Text="{Binding Output,Mode=OneWay}"></TextBox> + <TextBox Style="{x:Null}" IsReadOnly="True" Cursor="Arrow" TextWrapping="Wrap" AcceptsReturn="True" Background="Transparent" BorderThickness="0" Foreground="Silver" CaretBrush="White" SelectionBrush="#777777" Text="{Binding Output,Mode=OneWay}"></TextBox> </StackPanel> </DataTemplate> </ItemsControl.ItemTemplate> @@ -54,7 +57,7 @@ </TextBlock> <StackPanel Margin="0 0 0 0" Orientation="Horizontal"> <ContentControl Margin="0 0 5 0" Content="{Binding}" ContentTemplate="{Binding ElementName=control,Path=BusyTemplate}" Visibility="{Binding CurrentCommand.IsExecuting,Converter={StaticResource BooleanToVisibilityConverter}}"/> - <local:ConsoleTextBox x:Name="txtCurrentCommand" Height="Auto" AcceptsReturn="False" TextWrapping="Wrap" VerticalScrollBarVisibility="Hidden" HorizontalScrollBarVisibility="Disabled" Cursor="Arrow" MinWidth="10" Background="Transparent" BorderThickness="0" Foreground="{Binding ElementName=control,Path=Foreground}" CaretBrush="Transparent" CaretBottomBrush="{Binding ElementName=control,Path=CaretBrush}" SelectionBrush="{Binding ElementName=control,Path=SelectionBrush}" Text="{Binding CurrentCommand.CommandText,UpdateSourceTrigger=PropertyChanged}" IsReadOnly="{Binding CurrentCommand.IsExecuting}"> + <local:ConsoleTextBox x:Name="txtCurrentCommand" Suggestions="{Binding Suggestions}" Height="Auto" AcceptsReturn="False" TextWrapping="Wrap" VerticalScrollBarVisibility="Hidden" HorizontalScrollBarVisibility="Disabled" Cursor="Arrow" MinWidth="10" Background="Transparent" BorderThickness="0" SuggestionsBackground="{Binding ElementName=control,Path=SuggestionsBackground}" SuggestionsForeground="{Binding ElementName=control,Path=SuggestionsForeground}" SuggestionsBorderBrush="{Binding ElementName=control,Path=SuggestionsBorderBrush}" Foreground="{Binding ElementName=control,Path=Foreground}" CaretBrush="Transparent" CaretBottomBrush="{Binding ElementName=control,Path=CaretBrush}" SelectionBrush="{Binding ElementName=control,Path=SelectionBrush}" Text="{Binding CurrentCommand.CommandText,UpdateSourceTrigger=PropertyChanged}" IsReadOnly="{Binding CurrentCommand.IsExecuting}"> <local:ConsoleTextBox.MaxWidth> <MultiBinding Converter="{StaticResource ConsoleTextBoxMaxWidthConverter}"> <Binding ElementName="lbWorkingFolder" Path="ActualWidth" /> |
