-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathMainWindow.axaml.cs
More file actions
34 lines (29 loc) · 1.08 KB
/
Copy pathMainWindow.axaml.cs
File metadata and controls
34 lines (29 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="MainWindow.xaml.cs" company="OxyPlot">
// Copyright (c) 2014 OxyPlot contributors
// </copyright>
// <summary>
// Interaction logic for MainWindow.xaml
// </summary>
// --------------------------------------------------------------------------------------------------------------------
namespace AvaloniaExamples.Examples.UserControlDemo
{
using System.Windows;
using AvaloniaExamples;
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
[Example("Demonstrates a Plot in a UserControl.")]
public partial class MainWindow : Avalonia.Controls.Window
{
public MainWindow()
{
this.InitializeComponent();
this.DataContext = new { Model1 = new ViewModel { Title = "Plot1" }, Model2 = new ViewModel { Title = "Plot2" } };
}
private void InitializeComponent()
{
Avalonia.Markup.Xaml.AvaloniaXamlLoader.Load(this);
}
}
}