|
|
@ -33,7 +33,7 @@ namespace Avalonia.Markup.Xaml.UnitTests.MarkupExtensions |
|
|
|
|
|
|
|
|
DelayedBinding.ApplyBindings(border); |
|
|
DelayedBinding.ApplyBindings(border); |
|
|
|
|
|
|
|
|
var brush = (SolidColorBrush)border.Background; |
|
|
var brush = (ISolidColorBrush)border.Background; |
|
|
Assert.Equal(0xff506070, brush.Color.ToUint32()); |
|
|
Assert.Equal(0xff506070, brush.Color.ToUint32()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -80,7 +80,7 @@ namespace Avalonia.Markup.Xaml.UnitTests.MarkupExtensions |
|
|
|
|
|
|
|
|
DelayedBinding.ApplyBindings(border); |
|
|
DelayedBinding.ApplyBindings(border); |
|
|
|
|
|
|
|
|
var brush = (SolidColorBrush)border.Background; |
|
|
var brush = (ISolidColorBrush)border.Background; |
|
|
Assert.Equal(0xff506070, brush.Color.ToUint32()); |
|
|
Assert.Equal(0xff506070, brush.Color.ToUint32()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -108,7 +108,7 @@ namespace Avalonia.Markup.Xaml.UnitTests.MarkupExtensions |
|
|
|
|
|
|
|
|
DelayedBinding.ApplyBindings(border); |
|
|
DelayedBinding.ApplyBindings(border); |
|
|
|
|
|
|
|
|
var brush = (SolidColorBrush)border.Background; |
|
|
var brush = (ISolidColorBrush)border.Background; |
|
|
Assert.Equal(0xff506070, brush.Color.ToUint32()); |
|
|
Assert.Equal(0xff506070, brush.Color.ToUint32()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -140,7 +140,7 @@ namespace Avalonia.Markup.Xaml.UnitTests.MarkupExtensions |
|
|
|
|
|
|
|
|
DelayedBinding.ApplyBindings(border); |
|
|
DelayedBinding.ApplyBindings(border); |
|
|
|
|
|
|
|
|
var brush = (SolidColorBrush)border.Background; |
|
|
var brush = (ISolidColorBrush)border.Background; |
|
|
Assert.Equal(0xff506070, brush.Color.ToUint32()); |
|
|
Assert.Equal(0xff506070, brush.Color.ToUint32()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -212,7 +212,7 @@ namespace Avalonia.Markup.Xaml.UnitTests.MarkupExtensions |
|
|
|
|
|
|
|
|
var window = (Window)AvaloniaRuntimeXamlLoader.Load(xaml); |
|
|
var window = (Window)AvaloniaRuntimeXamlLoader.Load(xaml); |
|
|
var button = window.FindControl<Button>("button"); |
|
|
var button = window.FindControl<Button>("button"); |
|
|
var brush = (SolidColorBrush)button.Background; |
|
|
var brush = (ISolidColorBrush)button.Background; |
|
|
|
|
|
|
|
|
Assert.Equal(0xff506070, brush.Color.ToUint32()); |
|
|
Assert.Equal(0xff506070, brush.Color.ToUint32()); |
|
|
} |
|
|
} |
|
|
@ -241,7 +241,7 @@ namespace Avalonia.Markup.Xaml.UnitTests.MarkupExtensions |
|
|
|
|
|
|
|
|
var window = (Window)AvaloniaRuntimeXamlLoader.Load(xaml); |
|
|
var window = (Window)AvaloniaRuntimeXamlLoader.Load(xaml); |
|
|
var button = window.FindControl<Button>("button"); |
|
|
var button = window.FindControl<Button>("button"); |
|
|
var brush = (SolidColorBrush)button.Background; |
|
|
var brush = (ISolidColorBrush)button.Background; |
|
|
|
|
|
|
|
|
Assert.Equal(0xff506070, brush.Color.ToUint32()); |
|
|
Assert.Equal(0xff506070, brush.Color.ToUint32()); |
|
|
} |
|
|
} |
|
|
@ -275,7 +275,7 @@ namespace Avalonia.Markup.Xaml.UnitTests.MarkupExtensions |
|
|
|
|
|
|
|
|
var window = (Window)AvaloniaRuntimeXamlLoader.Load(xaml); |
|
|
var window = (Window)AvaloniaRuntimeXamlLoader.Load(xaml); |
|
|
var border = window.FindControl<Border>("border"); |
|
|
var border = window.FindControl<Border>("border"); |
|
|
var brush = (SolidColorBrush)border.Background; |
|
|
var brush = (ISolidColorBrush)border.Background; |
|
|
|
|
|
|
|
|
Assert.Equal(0xff506070, brush.Color.ToUint32()); |
|
|
Assert.Equal(0xff506070, brush.Color.ToUint32()); |
|
|
} |
|
|
} |
|
|
@ -317,7 +317,7 @@ namespace Avalonia.Markup.Xaml.UnitTests.MarkupExtensions |
|
|
window.Show(); |
|
|
window.Show(); |
|
|
|
|
|
|
|
|
var border = (Border)button.GetVisualChildren().Single(); |
|
|
var border = (Border)button.GetVisualChildren().Single(); |
|
|
var brush = (SolidColorBrush)border.Background; |
|
|
var brush = (ISolidColorBrush)border.Background; |
|
|
|
|
|
|
|
|
Assert.Equal(0xff506070, brush.Color.ToUint32()); |
|
|
Assert.Equal(0xff506070, brush.Color.ToUint32()); |
|
|
} |
|
|
} |
|
|
@ -648,7 +648,7 @@ namespace Avalonia.Markup.Xaml.UnitTests.MarkupExtensions |
|
|
|
|
|
|
|
|
DelayedBinding.ApplyBindings(border); |
|
|
DelayedBinding.ApplyBindings(border); |
|
|
|
|
|
|
|
|
var brush = (SolidColorBrush)border.Background; |
|
|
var brush = (ISolidColorBrush)border.Background; |
|
|
Assert.Equal(0xff506070, brush.Color.ToUint32()); |
|
|
Assert.Equal(0xff506070, brush.Color.ToUint32()); |
|
|
|
|
|
|
|
|
window.Content = null; |
|
|
window.Content = null; |
|
|
@ -657,7 +657,7 @@ namespace Avalonia.Markup.Xaml.UnitTests.MarkupExtensions |
|
|
|
|
|
|
|
|
window.Content = border; |
|
|
window.Content = border; |
|
|
|
|
|
|
|
|
brush = (SolidColorBrush)border.Background; |
|
|
brush = (ISolidColorBrush)border.Background; |
|
|
Assert.Equal(0xff506070, brush.Color.ToUint32()); |
|
|
Assert.Equal(0xff506070, brush.Color.ToUint32()); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|