diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-03-15 01:55:42 +0200 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-03-15 01:55:42 +0200 |
| commit | 96fe20a20e7c107473cefeda3b06950955952bec (patch) | |
| tree | 0c7efeb2a332eabdab4a551734eb94f4828aa381 /Software/Visual_Studio/Tango.Console/Themes | |
| parent | bb82e09c0080cacec65512805ac88f6b3416c3f2 (diff) | |
| download | Tango-96fe20a20e7c107473cefeda3b06950955952bec.tar.gz Tango-96fe20a20e7c107473cefeda3b06950955952bec.zip | |
Improved Console.
Increased SignalR adapter connect timeout.
Implemented Tango.FileSystem !!!
Diffstat (limited to 'Software/Visual_Studio/Tango.Console/Themes')
| -rw-r--r-- | Software/Visual_Studio/Tango.Console/Themes/Generic.xaml | 72 |
1 files changed, 37 insertions, 35 deletions
diff --git a/Software/Visual_Studio/Tango.Console/Themes/Generic.xaml b/Software/Visual_Studio/Tango.Console/Themes/Generic.xaml index e2a9e2b8f..cc62cbbf5 100644 --- a/Software/Visual_Studio/Tango.Console/Themes/Generic.xaml +++ b/Software/Visual_Studio/Tango.Console/Themes/Generic.xaml @@ -47,41 +47,43 @@ </EventTrigger> </Border.Triggers> </Border> - <Border x:Name="PART_borderSuggestions" BorderThickness="1" BorderBrush="{TemplateBinding SuggestionsBorderBrush}" Background="{TemplateBinding SuggestionsBackground}" MinWidth="200" MaxHeight="300" Canvas.Left="{TemplateBinding CaretPosition}" Canvas.Top="20" Visibility="{TemplateBinding SuggestionsVisibility}"> - <Grid> - <ListBox Foreground="{TemplateBinding SuggestionsForeground}" x:Name="PART_listSuggestions" FocusVisualStyle="{x:Null}" Background="Transparent" ItemsSource="{TemplateBinding FilteredSuggestions}" SelectedItem="{Binding RelativeSource={RelativeSource AncestorType=local:ConsoleTextBox},Path=SelectedSuggestion,Mode=TwoWay}"> - <ListBox.ItemTemplate> - <DataTemplate> - <StackPanel Orientation="Horizontal"> - <Image Stretch="Uniform" Width="16" Height="16" VerticalAlignment="Center"> - <Image.Style> - <Style TargetType="Image"> - <Setter Property="Source" Value="pack://application:,,,/Tango.Console;component/Images/thunder.png"></Setter> - <Style.Triggers> - <DataTrigger Binding="{Binding Type}" Value="Folder"> - <Setter Property="Source" Value="pack://application:,,,/Tango.Console;component/Images/folder.png"></Setter> - </DataTrigger> - <DataTrigger Binding="{Binding Type}" Value="File"> - <Setter Property="Source" Value="pack://application:,,,/Tango.Console;component/Images/file.png"></Setter> - </DataTrigger> - </Style.Triggers> - </Style> - </Image.Style> - </Image> - <TextBlock Margin="5 0 0 0" VerticalAlignment="Center" FontSize="11" Text="{Binding Name}"></TextBlock> - </StackPanel> - </DataTemplate> - </ListBox.ItemTemplate> - </ListBox> - <Canvas HorizontalAlignment="Right" VerticalAlignment="Top"> - <Popup x:Name="PART_popup" IsOpen="False" Placement="Right" HorizontalOffset="10"> - <Border Padding="5" CornerRadius="3" MaxWidth="500" BorderThickness="1" BorderBrush="{TemplateBinding SuggestionsBorderBrush}" Background="{TemplateBinding SuggestionsBackground}"> - <TextBlock FontSize="11" Foreground="{TemplateBinding SuggestionsForeground}" TextWrapping="Wrap" Text="{Binding ElementName=PART_listSuggestions,Path=SelectedItem.Description}"></TextBlock> - </Border> - </Popup> - </Canvas> - </Grid> - </Border> + <Popup x:Name="PART_SuggestionsPopup" MinWidth="200" MaxHeight="300" Placement="RelativePoint" StaysOpen="False" IsOpen="{TemplateBinding IsSuggestionsOpened}"> + <Border BorderThickness="1" BorderBrush="{TemplateBinding SuggestionsBorderBrush}" Background="{TemplateBinding SuggestionsBackground}" MinWidth="200" MaxHeight="300"> + <Grid> + <ListBox Foreground="{TemplateBinding SuggestionsForeground}" x:Name="PART_listSuggestions" FocusVisualStyle="{x:Null}" Background="Transparent" ItemsSource="{TemplateBinding FilteredSuggestions}" SelectedItem="{Binding RelativeSource={RelativeSource AncestorType=local:ConsoleTextBox},Path=SelectedSuggestion,Mode=TwoWay}"> + <ListBox.ItemTemplate> + <DataTemplate> + <StackPanel Orientation="Horizontal"> + <Image Stretch="Uniform" Width="16" Height="16" VerticalAlignment="Center"> + <Image.Style> + <Style TargetType="Image"> + <Setter Property="Source" Value="pack://application:,,,/Tango.Console;component/Images/thunder.png"></Setter> + <Style.Triggers> + <DataTrigger Binding="{Binding Type}" Value="Folder"> + <Setter Property="Source" Value="pack://application:,,,/Tango.Console;component/Images/folder.png"></Setter> + </DataTrigger> + <DataTrigger Binding="{Binding Type}" Value="File"> + <Setter Property="Source" Value="pack://application:,,,/Tango.Console;component/Images/file.png"></Setter> + </DataTrigger> + </Style.Triggers> + </Style> + </Image.Style> + </Image> + <TextBlock Margin="5 0 0 0" VerticalAlignment="Center" FontSize="11" Text="{Binding Name}"></TextBlock> + </StackPanel> + </DataTemplate> + </ListBox.ItemTemplate> + </ListBox> + <Canvas HorizontalAlignment="Right" VerticalAlignment="Top"> + <Popup x:Name="PART_popup" IsOpen="False" Placement="Right" HorizontalOffset="10"> + <Border Padding="5" CornerRadius="3" MaxWidth="500" BorderThickness="1" BorderBrush="{TemplateBinding SuggestionsBorderBrush}" Background="{TemplateBinding SuggestionsBackground}"> + <TextBlock FontSize="11" Foreground="{TemplateBinding SuggestionsForeground}" TextWrapping="Wrap" Text="{Binding ElementName=PART_listSuggestions,Path=SelectedItem.Description}"></TextBlock> + </Border> + </Popup> + </Canvas> + </Grid> + </Border> + </Popup> </Canvas> </Grid> <ControlTemplate.Triggers> |
