Steven Kirk преди 8 години
родител
ревизия
51f9cbe49d
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      samples/ControlCatalog/MainWindow.xaml.cs

+ 1 - 1
samples/ControlCatalog/MainWindow.xaml.cs

@@ -19,7 +19,7 @@ namespace ControlCatalog
             // so we must refer to this resource DLL statically. For
             // so we must refer to this resource DLL statically. For
             // now I am doing that here. But we need a better solution!!
             // now I am doing that here. But we need a better solution!!
             var theme = new Avalonia.Themes.Default.DefaultTheme();
             var theme = new Avalonia.Themes.Default.DefaultTheme();
-            theme.TryGetResource("Button");
+            theme.TryGetResource("Button", out var button);
             AvaloniaXamlLoader.Load(this);
             AvaloniaXamlLoader.Load(this);
         }
         }
     }
     }