-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🎨 Finally fix the ticks layout in the control curve editor.
This was far from critical but it was utterly ugly. There might be better solutions than the one currently impelmented, but gives the expected results, so that would be good enough. Had to resort to Binding with TemplatedParent instead of TemplateBinding (bug?) at many places though. But again, it works…
- Loading branch information
Showing
5 changed files
with
140 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/Exo/Ui/Exo.Settings.Ui/Converters/GridLengthConverter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using Microsoft.UI.Xaml; | ||
using Microsoft.UI.Xaml.Data; | ||
|
||
namespace Exo.Settings.Ui.Converters; | ||
|
||
internal sealed class GridLengthConverter : IValueConverter | ||
{ | ||
public object? Convert(object value, Type targetType, object parameter, string language) => value is not null ? new GridLength(System.Convert.ToDouble(value)) : null; | ||
|
||
public object ConvertBack(object value, Type targetType, object parameter, string language) => throw new NotSupportedException(); | ||
} |