add styles for the title text hiding
MODIFY
WalletWasabi.Fluent/Views/Shell/TitleBarView.axaml
WalletWasabi.Fluent/Views/Shell/TitleBarView.axaml
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:searchBar="clr-namespace:WalletWasabi.Fluent.Views.SearchBar"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ xmlns:behaviors="clr-namespace:WalletWasabi.Fluent.Behaviors"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="100"
x:Class="WalletWasabi.Fluent.Views.Shell.TitleBarView"
x:Name="UserControl">
+ <UserControl.Styles>
+ <Style Selector="Panel#TitlePanel">
+ <Setter Property="Transitions">
+ <Transitions>
+ <DoubleTransition Property="Opacity" Duration="0:0:0.275" />
+ <TransformOperationsTransition Duration="0:0:0.275" Property="RenderTransform" />
+ </Transitions>
+ </Setter>
+ <Setter Property="Opacity" Value="1" />
+ <Setter Property="RenderTransform" Value="translateX(0px)" />
+ </Style>
+ <Style Selector="Panel#TitlePanel.minWidth">
+ <Setter Property="Opacity" Value="0" />
+ <Setter Property="RenderTransform" Value="translateX(-30px)" />
+ </Style>
+ </UserControl.Styles>
+
<UserControl.Resources>
<DataTemplate x:Key="WasabiLogo">
</Grid.ColumnDefinitions>
<ContentControl ContentTemplate="{StaticResource WasabiLogo}" />
- <ContentControl Grid.Column="1" Grid.ColumnSpan="2" ContentTemplate="{StaticResource Title}" />
+ <Panel x:Name="TitlePanel" Grid.Column="1" Grid.ColumnSpan="2">
+ <Interaction.Behaviors>
+ <behaviors:TriggerOnMinimumWidthBehavior Bounds="{Binding #TitlePanel.Bounds}"
+ MinimumWidth="150"
+ ClassName="minWidth" />
+ </Interaction.Behaviors>
+ <ContentControl ContentTemplate="{StaticResource Title}" />
+ </Panel>
<ContentControl Grid.Column="3" ContentTemplate="{StaticResource SearchBar}" />
-
</Grid>
</DataTemplate>
<DockPanel Grid.Column="1">
<ContentControl ContentTemplate="{StaticResource WasabiLogo}" />
+ <Panel x:Name="TitlePanel">
+ <Interaction.Behaviors>
+ <behaviors:TriggerOnMinimumWidthBehavior Bounds="{Binding #TitlePanel.Bounds}"
+ MinimumWidth="150"
+ ClassName="minWidth" />
+ </Interaction.Behaviors>
<ContentControl ContentTemplate="{StaticResource Title}" />
+ </Panel>
</DockPanel>
<ContentControl Grid.Column="2" ContentTemplate="{StaticResource SearchBar}" />
</Grid>

add styles for the title text hiding