Skip to content
This repository was archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
Move and rename
Browse files Browse the repository at this point in the history
  • Loading branch information
wieslawsoltes committed Sep 10, 2024
1 parent dbc6516 commit 0e32976
Show file tree
Hide file tree
Showing 15 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<HideOnKeyPressedBehavior TargetControl="TextBoxEdit" Key="Escape" />
<HideOnKeyPressedBehavior TargetControl="TextBoxEdit" Key="Enter" />
<HideOnLostFocusBehavior TargetControl="TextBoxEdit" />
<SelectAllOnGotFocusBehavior />
<TextBoxSelectAllOnGotFocusBehavior />
</Interaction.Behaviors>
</TextBox>
<StackPanel x:Name="TextStackPanel"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Avalonia.Xaml.Interactions.Custom;
/// <summary>
/// Binds AssociatedObject object Tag property to root visual DataContext.
/// </summary>
public class BindTagToVisualRootDataContextBehavior : DisposingBehavior<ContentControl>
public class BindTagToVisualRootDataContextBehavior : DisposingBehavior<Control>
{
/// <summary>
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ namespace Avalonia.Xaml.Interactions.Custom;
/// <summary>
///
/// </summary>
public class HideButtonFlyoutBehavior : DisposingBehavior<Button>
public class ButtonHideFlyoutBehavior : DisposingBehavior<Button>
{
/// <summary>
///
/// </summary>
public static readonly StyledProperty<bool> IsFlyoutOpenProperty =
AvaloniaProperty.Register<HideButtonFlyoutBehavior, bool>(nameof(IsFlyoutOpen));
AvaloniaProperty.Register<ButtonHideFlyoutBehavior, bool>(nameof(IsFlyoutOpen));

/// <summary>
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Avalonia.Xaml.Interactions.Custom;
/// <summary>
///
/// </summary>
public class HideButtonFlyoutOnClickBehavior : AttachedToVisualTreeBehavior<Button>
public class ButtonHideFlyoutOnClickBehavior : AttachedToVisualTreeBehavior<Button>
{
/// <summary>
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class HideAttachedFlyoutBehavior : DisposingBehavior<Control>
///
/// </summary>
public static readonly StyledProperty<bool> IsFlyoutOpenProperty =
AvaloniaProperty.Register<HideButtonFlyoutBehavior, bool>(nameof(IsFlyoutOpen));
AvaloniaProperty.Register<ButtonHideFlyoutBehavior, bool>(nameof(IsFlyoutOpen));

/// <summary>
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Avalonia.Xaml.Interactions.Custom;
/// <summary>
/// A behavior that allows to select all <see cref="TextBox"/> text on got focus event.
/// </summary>
public class SelectAllOnGotFocusBehavior : Behavior<TextBox>
public class TextBoxSelectAllOnGotFocusBehavior : Behavior<TextBox>
{
/// <inheritdoc />
protected override void OnAttachedToVisualTree()
Expand Down

0 comments on commit 0e32976

Please sign in to comment.