class Item
{
public string Header { get; }
public ObservableCollection<Items> Children { get; }
public override string ToString() => Header;
}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; } |
Thoughts on a combined DataGrid/TreeView control.
https://docs.telerik.com/devtools/wpf/controls/radtreelistview/overview
- Based on
ItemsRepeater - Tree structure would be flattened at the model level
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using Avalonia.Animation; | |
| using Avalonia.Controls; | |
| using Avalonia.UnitTests; | |
| using JetBrains.dotMemoryUnit; | |
| using Xunit; | |
| using Xunit.Abstractions; | |
| namespace Avalonia.LeakTests | |
| { |
NewerOlder