|
|
|
@ -68,10 +68,6 @@ namespace Avalonia.Controls |
|
|
|
|
|
|
|
private IDisposable? _flyoutPropertyChangedDisposable; |
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
// Constructor / Destructors
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Initializes a new instance of the <see cref="SplitButton"/> class.
|
|
|
|
/// </summary>
|
|
|
|
@ -79,10 +75,6 @@ namespace Avalonia.Controls |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
// Properties
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the <see cref="ICommand"/> invoked when the primary part is pressed.
|
|
|
|
/// </summary>
|
|
|
|
@ -123,10 +115,6 @@ namespace Avalonia.Controls |
|
|
|
/// <inheritdoc/>
|
|
|
|
protected override bool IsEnabledCore => base.IsEnabledCore && _commandCanExecute; |
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
// Methods
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
/// <inheritdoc/>
|
|
|
|
void ICommandSource.CanExecuteChanged(object sender, EventArgs e) => this.CanExecuteChanged(sender, e); |
|
|
|
|
|
|
|
@ -221,10 +209,6 @@ namespace Avalonia.Controls |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
// OnEvent Overridable Methods
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
/// <inheritdoc/>
|
|
|
|
protected override void OnApplyTemplate(TemplateAppliedEventArgs e) |
|
|
|
{ |
|
|
|
@ -428,10 +412,6 @@ namespace Avalonia.Controls |
|
|
|
// Available for derived types
|
|
|
|
} |
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
// Event Handling
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Event handler for when the internal primary button part is pressed.
|
|
|
|
/// </summary>
|
|
|
|
|