main
syneffort 11 months ago
parent fc01423840
commit e2915fe210
  1. 9
      OxyPlotExample/GettingStarted/App.xaml
  2. 14
      OxyPlotExample/GettingStarted/App.xaml.cs
  3. 10
      OxyPlotExample/GettingStarted/AssemblyInfo.cs
  4. 16
      OxyPlotExample/GettingStarted/GettingStarted.csproj
  5. 13
      OxyPlotExample/GettingStarted/MainWindow.xaml
  6. 24
      OxyPlotExample/GettingStarted/MainWindow.xaml.cs
  7. 23
      OxyPlotExample/GettingStarted/ViewModels/MainViewModel.cs
  8. 20
      OxyPlotExample/GettingStarted/Views/MainView.xaml
  9. 28
      OxyPlotExample/GettingStarted/Views/MainView.xaml.cs
  10. 25
      OxyPlotExample/OxyPlotExample.sln
  11. 9
      OxyPlotExample/OxyPlotExample/App.xaml
  12. 14
      OxyPlotExample/OxyPlotExample/App.xaml.cs
  13. 10
      OxyPlotExample/OxyPlotExample/AssemblyInfo.cs
  14. 12
      OxyPlotExample/OxyPlotExample/MainWindow.xaml
  15. 24
      OxyPlotExample/OxyPlotExample/MainWindow.xaml.cs
  16. 11
      OxyPlotExample/OxyPlotExample/OxyPlotExample.csproj

@ -1,9 +0,0 @@
<Application x:Class="GettingStarted.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:GettingStarted"
StartupUri="MainWindow.xaml">
<Application.Resources>
</Application.Resources>
</Application>

@ -1,14 +0,0 @@
using System.Configuration;
using System.Data;
using System.Windows;
namespace GettingStarted
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
}
}

@ -1,10 +0,0 @@
using System.Windows;
[assembly: ThemeInfo(
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dictionaries)
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
)]

@ -1,16 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<UseWPF>true</UseWPF>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.2" />
<PackageReference Include="OxyPlot.Wpf" Version="2.1.2" />
</ItemGroup>
</Project>

@ -1,13 +0,0 @@
<Window x:Class="GettingStarted.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:GettingStarted"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:views="clr-namespace:GettingStarted.Views"
Title="MainWindow"
Width="800"
Height="450"
mc:Ignorable="d">
<views:MainView />
</Window>

@ -1,24 +0,0 @@
using System.Text;
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 GettingStarted
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
}
}

@ -1,23 +0,0 @@
using CommunityToolkit.Mvvm.ComponentModel;
using OxyPlot;
using OxyPlot.Series;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GettingStarted.ViewModels
{
public partial class MainViewModel : ObservableObject
{
[ObservableProperty]
private PlotModel _myModel;
public MainViewModel()
{
MyModel = new PlotModel() { Title = "Getting Started" };
MyModel.Series.Add(new FunctionSeries(Math.Cos, 0, 10, 0.1, "cos(x)"));
}
}
}

@ -1,20 +0,0 @@
<Page x:Class="GettingStarted.Views.MainView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:GettingStarted.Views"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:oxy="http://oxyplot.org/wpf"
xmlns:viewModels="clr-namespace:GettingStarted.ViewModels"
Title="MainView"
d:DesignHeight="450"
d:DesignWidth="800"
mc:Ignorable="d">
<Page.DataContext>
<viewModels:MainViewModel />
</Page.DataContext>
<Grid>
<oxy:PlotView Model="{Binding MyModel}" />
</Grid>
</Page>

@ -1,28 +0,0 @@
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 GettingStarted.Views
{
/// <summary>
/// MainView.xaml에 대한 상호 작용 논리
/// </summary>
public partial class MainView : Page
{
public MainView()
{
InitializeComponent();
}
}
}

@ -1,25 +0,0 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.9.34728.123
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GettingStarted", "GettingStarted\GettingStarted.csproj", "{8319F2C0-883D-484E-9745-CA2379A14C49}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{8319F2C0-883D-484E-9745-CA2379A14C49}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8319F2C0-883D-484E-9745-CA2379A14C49}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8319F2C0-883D-484E-9745-CA2379A14C49}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8319F2C0-883D-484E-9745-CA2379A14C49}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {D0EFDA27-685F-442A-AF95-66086C9F9AF2}
EndGlobalSection
EndGlobal

@ -1,9 +0,0 @@
<Application x:Class="OxyPlotExample.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:OxyPlotExample"
StartupUri="MainWindow.xaml">
<Application.Resources>
</Application.Resources>
</Application>

@ -1,14 +0,0 @@
using System.Configuration;
using System.Data;
using System.Windows;
namespace OxyPlotExample
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
}
}

@ -1,10 +0,0 @@
using System.Windows;
[assembly: ThemeInfo(
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dictionaries)
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
)]

@ -1,12 +0,0 @@
<Window x:Class="OxyPlotExample.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
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:local="clr-namespace:OxyPlotExample"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<Grid>
</Grid>
</Window>

@ -1,24 +0,0 @@
using System.Text;
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 OxyPlotExample
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
}
}

@ -1,11 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<UseWPF>true</UseWPF>
</PropertyGroup>
</Project>
Loading…
Cancel
Save