mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Gradient picker button - Always update gradient on UI thread
Data bindings - Added AlwaysApplyDataBindings setting
This commit is contained in:
1 parent
29ef160975
commit
f09b4a20bf
3 files changed
+27
-7
No files matched your search
@@ -10,6 +10,7 @@ using Avalonia.Controls.Primitives;
|
||||
using Avalonia.Data;
|
||||
using Avalonia.Interactivity;
|
||||
using Avalonia.Media;
|
||||
using Avalonia.Threading;
|
||||
using FluentAvalonia.Core;
|
||||
using Button = FluentAvalonia.UI.Controls.Button;
|
||||
|
||||
@@ -138,12 +139,12 @@ public class GradientPickerButton : TemplatedControl
|
||||
|
||||
private void ColorGradientOnCollectionChanged(object? sender, NotifyCollectionChangedEventArgs e)
|
||||
{
|
||||
UpdateGradient();
|
||||
Dispatcher.UIThread.Post(UpdateGradient);
|
||||
}
|
||||
|
||||
private void ColorGradientOnStopChanged(object? sender, EventArgs e)
|
||||
{
|
||||
UpdateGradient();
|
||||
Dispatcher.UIThread.Post(UpdateGradient);
|
||||
}
|
||||
|
||||
private void OnButtonClick(object? sender, RoutedEventArgs e)
|
||||
|
||||
Reference in new issue
Block a user