aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/FSE/Tango.FSE.Common
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-11-04 13:01:49 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-11-04 13:01:49 +0200
commit024eb7867d2b400212ce4ce0e4845d99bf532568 (patch)
tree65e379ad4b25bb2c8e0ebe6f05eb67cad1a2ff2e /Software/Visual_Studio/FSE/Tango.FSE.Common
parentee3f1aa159ebb326e7c7053501130afa06bf47d4 (diff)
downloadTango-024eb7867d2b400212ce4ce0e4845d99bf532568.tar.gz
Tango-024eb7867d2b400212ce4ce0e4845d99bf532568.zip
First steps on FSE configuration module.
Diffstat (limited to 'Software/Visual_Studio/FSE/Tango.FSE.Common')
-rw-r--r--Software/Visual_Studio/FSE/Tango.FSE.Common/Resources/Styles.xaml80
1 files changed, 80 insertions, 0 deletions
diff --git a/Software/Visual_Studio/FSE/Tango.FSE.Common/Resources/Styles.xaml b/Software/Visual_Studio/FSE/Tango.FSE.Common/Resources/Styles.xaml
index 24c4e91ec..8d5e5ae0d 100644
--- a/Software/Visual_Studio/FSE/Tango.FSE.Common/Resources/Styles.xaml
+++ b/Software/Visual_Studio/FSE/Tango.FSE.Common/Resources/Styles.xaml
@@ -3,6 +3,7 @@
xmlns:editors="clr-namespace:Tango.AutoComplete.Editors;assembly=Tango.AutoComplete"
xmlns:actions="clr-namespace:Tango.FSE.Common.EventTriggerActions"
xmlns:material="http://materialdesigninxaml.net/winfx/xaml/themes"
+ xmlns:controls="clr-namespace:Tango.SharedUI.Controls;assembly=Tango.SharedUI"
xmlns:wpf="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:mahapps="http://metro.mahapps.com/winfx/xaml/controls"
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
@@ -821,4 +822,83 @@
</Setter>
</Style>
+ <Style x:Key="FSE_Game_GroupBox" TargetType="GroupBox">
+ <Setter Property="Foreground" Value="{StaticResource FSE_PrimaryForegroundBrush}"></Setter>
+ <Setter Property="Background" Value="{StaticResource FSE_PrimaryBackgroundDarkBrush}"></Setter>
+ <Setter Property="BorderBrush" Value="{StaticResource FSE_PrimaryBackgroundLightBrush}"></Setter>
+ <Setter Property="FontSize" Value="{StaticResource FSE_DefaultFontSize}"></Setter>
+ <Setter Property="Padding" Value="5"></Setter>
+ <Setter Property="Template">
+ <Setter.Value>
+ <ControlTemplate TargetType="GroupBox">
+ <DockPanel HorizontalAlignment="Left" VerticalAlignment="Top">
+ <Grid HorizontalAlignment="Left" DockPanel.Dock="Top">
+ <Polygon HorizontalAlignment="Left" VerticalAlignment="Top" Width="{Binding ElementName=border,Path=ActualWidth}" Height="{Binding ElementName=border,Path=ActualHeight}" Fill="{StaticResource FSE_PrimaryAccentDarkBrush}" Stretch="Fill" Points="0,0 100,0 130,30 0,30"></Polygon>
+ <Border HorizontalAlignment="Left" VerticalAlignment="Top" Padding="0 0 50 0" x:Name="border">
+ <Border Padding="{TemplateBinding Padding}" TextElement.FontSize="{StaticResource FSE_LargeFontSize}">
+ <ContentPresenter Content="{TemplateBinding Header}" />
+ </Border>
+ </Border>
+ </Grid>
+ <Border TextElement.Foreground="{TemplateBinding Foreground}" TextElement.FontSize="{TemplateBinding FontSize}" Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}" CornerRadius="0 3 3 3" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1">
+ <ContentPresenter Content="{TemplateBinding Content}" />
+ </Border>
+ </DockPanel>
+ </ControlTemplate>
+ </Setter.Value>
+ </Setter>
+ </Style>
+
+ <Style TargetType="{x:Type controls:SearchComboBox}" BasedOn="{StaticResource MaterialDesignComboBox}">
+ <Setter Property="KeyboardNavigation.DirectionalNavigation" Value="Once"></Setter>
+ <Setter Property="ItemTemplate">
+ <Setter.Value>
+ <DataTemplate>
+ <TextBlock Text="{Binding}"></TextBlock>
+ </DataTemplate>
+ </Setter.Value>
+ </Setter>
+ <Setter Property="Template">
+ <Setter.Value>
+ <ControlTemplate TargetType="{x:Type controls:SearchComboBox}">
+ <Border Background="{TemplateBinding Background}"
+ BorderBrush="{TemplateBinding BorderBrush}"
+ BorderThickness="{TemplateBinding BorderThickness}">
+
+ <Grid Background="Transparent">
+ <DockPanel>
+ <Grid VerticalAlignment="Center" Margin="15 10 10 10" DockPanel.Dock="Right" Width="10" Height="10">
+ <Path Stretch="Uniform" Data="M7,10L12,15L17,10H7Z" Fill="{StaticResource FSE_PrimaryForegroundBrush}">
+
+ </Path>
+ </Grid>
+ <ContentControl Focusable="False" FocusVisualStyle="{x:Null}" Content="{TemplateBinding SelectedItem}" ContentTemplate="{TemplateBinding ItemTemplate}">
+
+ </ContentControl>
+ </DockPanel>
+ <ToggleButton x:Name="btnToggle" Focusable="False" FocusVisualStyle="{x:Null}" KeyboardNavigation.DirectionalNavigation="Once" Opacity="0" Style="{x:Null}" IsChecked="{Binding RelativeSource={RelativeSource Mode=TemplatedParent},Path=IsOpened,Mode=TwoWay}">
+
+ </ToggleButton>
+
+ <Popup StaysOpen="False" MinWidth="{Binding ElementName=btnToggle,Path=ActualWidth}" PlacementTarget="{Binding ElementName=btnToggle}" Placement="Bottom" IsOpen="{Binding RelativeSource={RelativeSource Mode=TemplatedParent},Path=IsOpened,Mode=TwoWay}" MaxHeight="{TemplateBinding MaxDropDownHeight}" AllowsTransparency="True">
+ <Border Margin="5" Background="{StaticResource WhiteBrush}" CornerRadius="3" Padding="5" MinWidth="{Binding ElementName=btnToggle,Path=ActualWidth}">
+ <Border.Effect>
+ <DropShadowEffect ShadowDepth="0" />
+ </Border.Effect>
+ <DockPanel>
+ <TextBox x:Name="txt" KeyboardNavigation.DirectionalNavigation="Once" DockPanel.Dock="Top" Margin="10" Padding="0 5" Text="{Binding RelativeSource={RelativeSource Mode=TemplatedParent},Path=SearchFilter,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBox>
+ <ListBox x:Name="list" FocusVisualStyle="{x:Null}" ItemsSource="{TemplateBinding ListItemsSource}" ItemTemplate="{TemplateBinding ItemTemplate}" SelectedValue="{TemplateBinding SelectedValue}" SelectedValuePath="{TemplateBinding SelectedValuePath}" DisplayMemberPath="{TemplateBinding DisplayMemberPath}">
+
+ </ListBox>
+ </DockPanel>
+ </Border>
+ </Popup>
+ </Grid>
+
+ </Border>
+ </ControlTemplate>
+ </Setter.Value>
+ </Setter>
+ </Style>
+
</ResourceDictionary> \ No newline at end of file