Skip to content

Commit e292f51

Browse files
committed
Added code view model
1 parent 9314c08 commit e292f51

3 files changed

Lines changed: 59 additions & 0 deletions

File tree

CutCode/CodeViewModel.cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
using Stylet;
2+
using System;
3+
using System.Collections.Generic;
4+
using System.Linq;
5+
using System.Text;
6+
using System.Threading.Tasks;
7+
8+
namespace CutCode
9+
{
10+
public class CodeViewModel : Screen
11+
{
12+
private readonly IThemeService themeService;
13+
public CodeViewModel(IThemeService _themeService)
14+
{
15+
themeService = _themeService;
16+
}
17+
}
18+
}

CutCode/Views/CodeView.xaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<Grid x:Class="CutCode.CodeView"
2+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
5+
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
6+
xmlns:local="clr-namespace:CutCode"
7+
d:DataContext="{d:DesignInstance local:CodeViewModel}"
8+
mc:Ignorable="d">
9+
10+
<Grid.Resources>
11+
12+
</Grid.Resources>
13+
</Grid>

CutCode/Views/CodeView.xaml.cs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
using System.Windows;
7+
using System.Windows.Controls;
8+
using System.Windows.Data;
9+
using System.Windows.Documents;
10+
using System.Windows.Input;
11+
using System.Windows.Media;
12+
using System.Windows.Media.Imaging;
13+
using System.Windows.Navigation;
14+
using System.Windows.Shapes;
15+
16+
namespace CutCode
17+
{
18+
/// <summary>
19+
/// Interaction logic for CodeView.xaml
20+
/// </summary>
21+
public partial class CodeView : Grid
22+
{
23+
public CodeView()
24+
{
25+
InitializeComponent();
26+
}
27+
}
28+
}

0 commit comments

Comments
 (0)