增加隐藏标题功能

This commit is contained in:
Booker
2024-01-02 19:50:04 +08:00
parent 7d3f1c9af0
commit f1b4698878
3 changed files with 56 additions and 2 deletions

View File

@@ -353,7 +353,7 @@ namespace GeekDesk.Control.UserControls.PannelCard
DependencyObject dos = sp.Parent;
Image img = sp.Children[0] as Image;
Image img = sp.Children[1] as Image;
double afterHeight = img.Height;
double afterWidth = img.Width;
@@ -683,6 +683,14 @@ namespace GeekDesk.Control.UserControls.PannelCard
MyPoptip.VerticalOffset = 30;
}
/// <summary>
/// 控制图标标题显示及隐藏
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void ShowTitle_Click(object sender, RoutedEventArgs e)
{
appData.AppConfig.ShowIconTitle = !appData.AppConfig.ShowIconTitle;
}
}
}