Skip to content

Commit

Permalink
Fixed DefaultDataGridBehavior
Browse files Browse the repository at this point in the history
  • Loading branch information
RolandKoenig committed Jun 29, 2021
1 parent 9cb61b2 commit 59b1d41
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ namespace MessageCommunicator.TestGui
{
public class DefaultDataGridBehavior : AvaloniaObject
{
public static readonly AttachedProperty<bool> IsDefaultGridBehaviorActiveProperty =
public static readonly AttachedProperty<bool> IsDefaultDataGridBehaviorActiveProperty =
AvaloniaProperty.RegisterAttached<DefaultDataGridBehavior, DataGrid, bool>(
"IsDefaultDataGridBehaviorActive",
coerce: ValidateIsDefaultGridBehaviorActiveProperty);
coerce: ValidateIsDefaultDataGridBehaviorActiveProperty);

public static bool ValidateIsDefaultGridBehaviorActiveProperty(IAvaloniaObject targetObject, bool givenValue)
public static bool ValidateIsDefaultDataGridBehaviorActiveProperty(IAvaloniaObject targetObject, bool givenValue)
{
if ((givenValue) &&
(targetObject is DataGrid targetControl))
Expand Down

0 comments on commit 59b1d41

Please sign in to comment.