更新整理

This commit is contained in:
GG Z
2025-04-24 20:56:44 +08:00
parent 155cef46f8
commit 5b6d67b571
813 changed files with 14437 additions and 12362 deletions

View File

@@ -1,7 +1,8 @@
using WPFluent.Input;
using System.Windows.Controls;
using WPFluent.Input;
// ReSharper disable once CheckNamespace
namespace WPFluent.Controls;
@@ -438,7 +439,7 @@ public class ContentDialog : ContentControl
/// <summary>
/// Gets command triggered after clicking the button in the template.
/// </summary>
public IRelayCommand TemplateButtonCommand => (IRelayCommand)GetValue(TemplateButtonCommandProperty);
internal IRelayCommand TemplateButtonCommand => (IRelayCommand)GetValue(TemplateButtonCommandProperty);
/// <summary>
/// Occurs after the dialog is opened.
@@ -572,7 +573,7 @@ public class ContentDialog : ContentControl
if (!closingEventArgs.Cancel)
{
_ = Tcs?.TrySetResult(result);
Tcs?.TrySetResult(result);
}
}
@@ -632,7 +633,7 @@ public class ContentDialog : ContentControl
/// </summary>
protected virtual void OnLoaded()
{
_ = Focus();
Focus();
RaiseEvent(new RoutedEventArgs(OpenedEvent));
}