From 51f9cbe49d230c8a5f5204c3081a7bd899a6b71e Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Tue, 22 Aug 2017 14:17:38 +0200 Subject: [PATCH] Fix build failure. --- samples/ControlCatalog/MainWindow.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/ControlCatalog/MainWindow.xaml.cs b/samples/ControlCatalog/MainWindow.xaml.cs index 0d24967482..f6894e4d8a 100644 --- a/samples/ControlCatalog/MainWindow.xaml.cs +++ b/samples/ControlCatalog/MainWindow.xaml.cs @@ -19,7 +19,7 @@ namespace ControlCatalog // so we must refer to this resource DLL statically. For // now I am doing that here. But we need a better solution!! var theme = new Avalonia.Themes.Default.DefaultTheme(); - theme.TryGetResource("Button"); + theme.TryGetResource("Button", out var button); AvaloniaXamlLoader.Load(this); } }