6 changed files with 68 additions and 14 deletions
@ -0,0 +1,17 @@ |
|||||
|
<UserControl x:Class="SunlightCentralizedControlManagement_SCCM_.View.CurveDiagram" |
||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||
|
xmlns:local="clr-namespace:SunlightCentralizedControlManagement_SCCM_.View" |
||||
|
xmlns:lvc="clr-namespace:LiveChartsCore.SkiaSharpView.WPF;assembly=LiveChartsCore.SkiaSharpView.WPF" |
||||
|
xmlns:ConvertMoels="clr-namespace:SunlightCentralizedControlManagement_SCCM_.ConvertMoels" |
||||
|
xmlns:viewmodel="clr-namespace:SunlightCentralizedControlManagement_SCCM_.ViewModel" |
||||
|
mc:Ignorable="d" |
||||
|
d:DataContext="{d:DesignInstance Type=viewmodel:CurveDiagramViewModel}" |
||||
|
d:DesignHeight="300" d:DesignWidth="400"> |
||||
|
<Grid> |
||||
|
<lvc:CartesianChart x:Name="OscChart" MinWidth="400" MinHeight="300" EasingFunction="{x:Null}" ZoomMode="X" |
||||
|
Series="{Binding Series}" YAxes="{Binding YAxes}" XAxes="{Binding XAxes}" Margin="0,0,0,0"/> |
||||
|
</Grid> |
||||
|
</UserControl> |
@ -0,0 +1,30 @@ |
|||||
|
using SunlightCentralizedControlManagement_SCCM_.ViewModel; |
||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
using System.Windows; |
||||
|
using System.Windows.Controls; |
||||
|
using System.Windows.Data; |
||||
|
using System.Windows.Documents; |
||||
|
using System.Windows.Input; |
||||
|
using System.Windows.Media; |
||||
|
using System.Windows.Media.Imaging; |
||||
|
using System.Windows.Navigation; |
||||
|
using System.Windows.Shapes; |
||||
|
|
||||
|
namespace SunlightCentralizedControlManagement_SCCM_.View |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// CurveDiagram.xaml 的交互逻辑
|
||||
|
/// </summary>
|
||||
|
public partial class CurveDiagram : UserControl |
||||
|
{ |
||||
|
public CurveDiagram() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
DataContext = new CurveDiagramViewModel(); |
||||
|
} |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue