Display a title on groups header menu

This commit is contained in:
BONNEVILLE Geoffroy
2018-06-06 18:26:05 +02:00
parent 7bd6c0dd09
commit 915cad8c85
4 changed files with 28 additions and 13 deletions

View File

@@ -267,7 +267,4 @@
<data name="RecycleBinTitle" xml:space="preserve">
<value>Recycle Bin</value>
</data>
<data name="String" xml:space="preserve">
<value>##</value>
</data>
</root>

View File

@@ -222,6 +222,12 @@
<data name="GroupSearch.PlaceholderText" xml:space="preserve">
<value>Search...</value>
</data>
<data name="GroupsHeaderTextBlock.Text" xml:space="preserve">
<value>Groups</value>
</data>
<data name="GroupsHeaderToolTip.Content" xml:space="preserve">
<value>Groups</value>
</data>
<data name="GroupTitle.PlaceholderText" xml:space="preserve">
<value>New group name...</value>
</data>

View File

@@ -222,6 +222,12 @@
<data name="GroupSearch.PlaceholderText" xml:space="preserve">
<value>Rechercher...</value>
</data>
<data name="GroupsHeaderTextBlock.Text" xml:space="preserve">
<value>Groupes</value>
</data>
<data name="GroupsHeaderToolTip.Content" xml:space="preserve">
<value>Groupes</value>
</data>
<data name="GroupTitle.PlaceholderText" xml:space="preserve">
<value>Nom du nouveau groupe...</value>
</data>

View File

@@ -162,16 +162,22 @@
</ListView.ItemContainerStyle>
<ListView.HeaderTemplate>
<DataTemplate>
<ToggleButton Style="{StaticResource HamburgerToggleButton}">
<interactivity:Interaction.Behaviors>
<core:EventTriggerBehavior EventName="Checked">
<core:ChangePropertyAction PropertyName="Width" Value="Auto" TargetObject="{Binding ElementName=LeftListViewColumn}"/>
</core:EventTriggerBehavior>
<core:EventTriggerBehavior EventName="Unchecked">
<core:ChangePropertyAction PropertyName="Width" Value="50" TargetObject="{Binding ElementName=LeftListViewColumn}"/>
</core:EventTriggerBehavior>
</interactivity:Interaction.Behaviors>
</ToggleButton>
<StackPanel Orientation="Horizontal">
<ToggleButton Style="{StaticResource HamburgerToggleButton}">
<ToolTipService.ToolTip>
<ToolTip x:Uid="GroupsHeaderToolTip" />
</ToolTipService.ToolTip>
<interactivity:Interaction.Behaviors>
<core:EventTriggerBehavior EventName="Checked">
<core:ChangePropertyAction PropertyName="Width" Value="Auto" TargetObject="{Binding ElementName=LeftListViewColumn}"/>
</core:EventTriggerBehavior>
<core:EventTriggerBehavior EventName="Unchecked">
<core:ChangePropertyAction PropertyName="Width" Value="50" TargetObject="{Binding ElementName=LeftListViewColumn}"/>
</core:EventTriggerBehavior>
</interactivity:Interaction.Behaviors>
</ToggleButton>
<TextBlock x:Uid="GroupsHeaderTextBlock" FontWeight="Bold" TextWrapping="NoWrap" VerticalAlignment="Center" Margin="30,0,20,0" />
</StackPanel>
</DataTemplate>
</ListView.HeaderTemplate>
<ListView.FooterTemplate>