Files
OxyPlot/Source/Examples/WPF/SimpleDemo/MainWindow.xaml
2023-09-02 09:24:59 +02:00

15 lines
616 B
XML

<Window x:Class="SimpleDemo.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:oxy="clr-namespace:OxyPlot.Wpf;assembly=OxyPlot.Wpf"
xmlns:simpleDemo="clr-namespace:SimpleDemo"
Title="OxyPlot SimpleDemo" Height="480" Width="640">
<Window.DataContext>
<simpleDemo:MainViewModel />
</Window.DataContext>
<Grid>
<!-- The OxyPlot control is binding to a PlotModel in the MainViewModel -->
<oxy:PlotView Model="{Binding Model}" />
</Grid>
</Window>