aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Console/Themes
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-03-15 01:55:42 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-03-15 01:55:42 +0200
commit96fe20a20e7c107473cefeda3b06950955952bec (patch)
tree0c7efeb2a332eabdab4a551734eb94f4828aa381 /Software/Visual_Studio/Tango.Console/Themes
parentbb82e09c0080cacec65512805ac88f6b3416c3f2 (diff)
downloadTango-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.xaml72
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>