-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMainWindow.axaml
More file actions
28 lines (25 loc) · 918 Bytes
/
MainWindow.axaml
File metadata and controls
28 lines (25 loc) · 918 Bytes
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
<Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:oxy="clr-namespace:OxyPlot.Avalonia;assembly=OxyPlot.Avalonia"
x:Class="Lab1.MainWindow"
Title="Графики"
Width="800" Height="600">
<!-- TabControl, где каждая вкладка — отдельный PlotModel -->
<TabControl ItemsSource="{Binding Plots}">
<!-- Заголовок вкладки -->
<TabControl.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Title}" />
</DataTemplate>
</TabControl.ItemTemplate>
<!-- Содержимое вкладки -->
<TabControl.ContentTemplate>
<DataTemplate>
<oxy:PlotView Model="{Binding}"
Background="White"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch" />
</DataTemplate>
</TabControl.ContentTemplate>
</TabControl>
</Window>