mirror of
https://github.com/ZuneDev/ZuneModdingHelper.git
synced 2026-07-27 13:12:21 -07:00
Collapse dialog title when null
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="clr-namespace:ZuneModdingHelper"
|
||||
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
||||
xmlns:ocWCBV="clr-namespace:OwlCore.Wpf.Converters.Bools.Visible;assembly=OwlCore.Wpf"
|
||||
StartupUri="AppWindow.xaml">
|
||||
<Application.Resources>
|
||||
<ResourceDictionary>
|
||||
@@ -23,6 +24,7 @@
|
||||
<FontFamily x:Key="SegoeMDL2">Segoe MDL2 Assets</FontFamily>
|
||||
|
||||
<BooleanToVisibilityConverter x:Key="BoolToVis" />
|
||||
<ocWCBV:NotNullToVisibilityConverter x:Key="NotNullToVis" />
|
||||
|
||||
<sys:Boolean x:Key="FalseValue">False</sys:Boolean>
|
||||
<sys:Boolean x:Key="TrueValue">True</sys:Boolean>
|
||||
|
||||
@@ -42,7 +42,8 @@
|
||||
VerticalAlignment="Top" HorizontalAlignment="Left"
|
||||
Fill="{StaticResource ZuneHorizontalGradientAlt}"/>
|
||||
<TextBlock Text="{Binding Title}" d:Text="WINDOWS LIVE ID" FontSize="28" Margin="0,-10,0,12"
|
||||
Foreground="{StaticResource ZuneMediumTextBrush}"/>
|
||||
Foreground="{StaticResource ZuneMediumTextBrush}"
|
||||
Visibility="{Binding Title, Converter={StaticResource NotNullToVis}}"/>
|
||||
|
||||
<StackPanel Grid.Row="1" Grid.ColumnSpan="2">
|
||||
<local:SelectableTextBlock Text="{Binding Description}" FontSize="14" TextWrapping="Wrap" Margin="0,0,0,12"
|
||||
|
||||
Reference in New Issue
Block a user