更新整理
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user