feat: 优化UI

This commit is contained in:
GukSang.Jin
2026-02-26 11:30:31 +08:00
parent 4bb18d3c4a
commit 28ded026a2
10 changed files with 1349 additions and 557 deletions

View File

@@ -70,3 +70,21 @@ public class InverseBoolToVisibilityConverter : IValueConverter
throw new NotImplementedException();
}
}
public class ProgressToWidthConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value is int progress)
{
// 假设进度条容器宽度为300根据百分比计算实际宽度
return progress * 3.0; // 300px * (progress/100)
}
return 0.0;
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}