-
Notifications
You must be signed in to change notification settings - Fork 981
Closed
Description
- Avalonia UI v11.0.10
- ScottPlot.Avalonia 5.0.22
Standard Project Template:
MainView.axaml
<UserControl xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:vm="clr-namespace:TestScottplotChart.ViewModels"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
xmlns:ScottPlot="clr-namespace:ScottPlot.Avalonia;assembly=ScottPlot.Avalonia"
x:Class="TestScottplotChart.Views.MainView"
x:DataType="vm:MainViewModel">
<Design.DataContext>
<vm:MainViewModel />
</Design.DataContext>
<ScottPlot:AvaPlot Grid.Column="1" Name="Plot" />
</UserControl>
MainView.axaml.cs
public partial class MainView : UserControl {
public MainView() {
InitializeComponent();
Plot.Plot.Add.Signal(Generate.Sin());
Plot.Plot.Add.Signal(Generate.Cos());
Plot.Refresh();
}
}
MainWindow.axaml
<Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:vm="using:TestScottplotChart.ViewModels"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:views="clr-namespace:TestScottplotChart.Views"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="TestScottplotChart.Views.MainWindow"
Icon="/Assets/avalonia-logo.ico"
Title="TestScottplotChart">
<Grid ColumnDefinitions="300 *">
<Panel Grid.Column="0" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Background="AntiqueWhite"/>
<views:MainView Grid.Column="1" />
</Grid>
</Window>
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels

