#0004 增加telerik 界面
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,40 @@
|
|||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Reflection;
|
||||||
|
using System.Windows;
|
||||||
|
using Telerik.Windows.Controls;
|
||||||
|
using Telerik.Windows.Documents.Spreadsheet.FormatProviders;
|
||||||
|
using Telerik.Windows.Documents.Spreadsheet.FormatProviders.OpenXml.Xlsx;
|
||||||
|
using Telerik.Windows.Documents.Spreadsheet.FormatProviders.Pdf;
|
||||||
|
using TelerikWpfApp2.ViewModel;
|
||||||
|
|
||||||
|
namespace TelerikWpfApp2
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Interaction logic for MainWindow.xaml
|
||||||
|
/// </summary>
|
||||||
|
public partial class MainWindow : RadRibbonWindow
|
||||||
|
{
|
||||||
|
private readonly MainViewModel viewModel;
|
||||||
|
|
||||||
|
static MainWindow()
|
||||||
|
{
|
||||||
|
RadRibbonWindow.IsWindowsThemeEnabled = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MainWindow()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
|
||||||
|
this.viewModel = new MainViewModel();
|
||||||
|
this.DataContext = this.viewModel;
|
||||||
|
|
||||||
|
this.Loaded += this.MainWindow_Loaded;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void MainWindow_Loaded(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
this.viewModel.OpenSampleCommand.Execute(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user