* add padding setting * `=` instead of `:` Co-Authored-By: fauzie811 <fauzie811@yahoo.com> * call setPadding in createTerminal function * Add "px" suffix to padding slider tooltip Based on this tutorial: https://www.codeproject.com/Tips/715438/Slider-Thumb-Tooltip * term.fit() after setPadding() * move back term.fit() below term.open() * Changed max value, added throttling, moved converter
19 lines
503 B
C#
19 lines
503 B
C#
using System;
|
|
using Windows.UI.Xaml.Data;
|
|
|
|
namespace FluentTerminal.App.Converters
|
|
{
|
|
public class ToolTipValueToPixelConverter : IValueConverter
|
|
{
|
|
public object Convert(object value, Type targetType, object parameter, string language)
|
|
{
|
|
return string.Format("{0} px", value);
|
|
}
|
|
|
|
public object ConvertBack(object value, Type targetType, object parameter, string language)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
}
|