From 1a605b5901673a5bc2c81853ef2eefce131b5541 Mon Sep 17 00:00:00 2001 From: Yoshi Askharoun Date: Fri, 17 May 2024 22:58:46 -0500 Subject: [PATCH] Collapse dialog title when null --- ZuneModdingHelper/App.xaml | 2 ++ ZuneModdingHelper/Controls/ZuneLightDialog.xaml | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ZuneModdingHelper/App.xaml b/ZuneModdingHelper/App.xaml index e998589..e47a263 100644 --- a/ZuneModdingHelper/App.xaml +++ b/ZuneModdingHelper/App.xaml @@ -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"> @@ -23,6 +24,7 @@ Segoe MDL2 Assets + False True diff --git a/ZuneModdingHelper/Controls/ZuneLightDialog.xaml b/ZuneModdingHelper/Controls/ZuneLightDialog.xaml index a868470..12410d7 100644 --- a/ZuneModdingHelper/Controls/ZuneLightDialog.xaml +++ b/ZuneModdingHelper/Controls/ZuneLightDialog.xaml @@ -42,7 +42,8 @@ VerticalAlignment="Top" HorizontalAlignment="Left" Fill="{StaticResource ZuneHorizontalGradientAlt}"/> + Foreground="{StaticResource ZuneMediumTextBrush}" + Visibility="{Binding Title, Converter={StaticResource NotNullToVis}}"/>