Skip to content

Instantly share code, notes, and snippets.

diff --git a/samples/Sandbox/MainWindow.axaml b/samples/Sandbox/MainWindow.axaml
index 6929f192c75098fa26851573ddd5a3fb70d19e30..d6ddf70b0337675596b283de5e0c680e55c7002c 100644
--- a/samples/Sandbox/MainWindow.axaml
+++ b/samples/Sandbox/MainWindow.axaml
@@ -1,4 +1,20 @@
<Window xmlns="https://github.com/avaloniaui"
xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'
x:Class="Sandbox.MainWindow">
+
+ <Grid RowDefinitions="Auto, *, Auto">
using BenchmarkDotNet.Attributes;
namespace Avalonia.Benchmarks.Data
{
[MemoryDiagnoser, InProcess]
public class PropertyAddClassHandlerBenchmarks
{
private const int Iterations = 100;
[Benchmark(Baseline = true)]
This file has been truncated, but you can view the full file.
TryGetResource SystemAccentColor from avares://Avalonia.Themes.Fluent/Controls/FluentControls.xaml
TryGetResource SystemAccentColor from avares://Avalonia.Themes.Fluent/Controls/TimePicker.xaml
TryGetResource SystemAccentColor from avares://Avalonia.Themes.Fluent/Controls/DatePicker.xaml
TryGetResource SystemAccentColor from avares://Avalonia.Themes.Fluent/Controls/SplitView.xaml
TryGetResource SystemAccentColor from avares://Avalonia.Themes.Fluent/Controls/ToggleSwitch.xaml
TryGetResource SystemAccentColor from avares://Avalonia.Themes.Fluent/Controls/NativeMenuBar.xaml
TryGetResource SystemAccentColor from avares://Avalonia.Themes.Fluent/Controls/NotificationCard.xaml
TryGetResource SystemAccentColor from avares://Avalonia.Themes.Fluent/Controls/WindowNotificationManager.xaml
TryGetResource SystemAccentColor from avares://Avalonia.Themes.Fluent/Controls/AutoCompleteBox.xaml
TryGetResource SystemAccentColor from avares://Avalonia.Themes.Fluent/Controls/NumericUpDown.xaml
using Avalonia;
using Avalonia.Controls;
using Avalonia.Controls.Shapes;
using Avalonia.Input;
using Avalonia.Markup.Xaml;
using Avalonia.Media;
namespace LotsaPaths
{
public class MainWindow : Window
public class MainWindow : Window
{
public MainWindow()
{
this.InitializeComponent();
this.AttachDevTools();
DataContext = new ViewModel();
var btn = this.FindControl<Button>("doit");
btn.Click += (s, e) => ((ViewModel)DataContext).Foo();
public class DateTimePickerColumn : Panel
{
// The type of the column: numbers or months
public DateTimePickerColumnType Type { get; set; }
// The number or month at the top of the column
public int First { get; set; }
// The selected number or month
public int Selected { get; set; }

Simplest Hello World

class Item
{
  public string Header { get; }
  public ObservableCollection<Items> Children { get; }
  public override string ToString() => Header;
}
Processing D:\projects\dotnet\wpf\global.json
strawberry-perl was not found in .
Microsoft.PowerShell.Commands.WriteErrorException: strawberry-perl was not found in .
WARNING: strawberry-perl installation failed
net-framework-48-ref-assemblies was not found in .
Microsoft.PowerShell.Commands.WriteErrorException: net-framework-48-ref-assemblies was not found in .
WARNING: net-framework-48-ref-assemblies installation failed
dotnet-api-docs_netcoreapp3.0 was not found in .
Microsoft.PowerShell.Commands.WriteErrorException: dotnet-api-docs_netcoreapp3.0 was not found in .
WARNING: dotnet-api-docs_netcoreapp3.0 installation failed
using System;
using Avalonia.Animation;
using Avalonia.Controls;
using Avalonia.UnitTests;
using JetBrains.dotMemoryUnit;
using Xunit;
using Xunit.Abstractions;
namespace Avalonia.LeakTests
{