Aufchromeless umgebaut

This commit is contained in:
Husky
2020-03-19 11:58:34 +01:00
parent e056fa5126
commit 29caceb5d6
4 changed files with 13 additions and 6 deletions

View File

@@ -1,6 +1,7 @@
<Application x:Class="KanSan.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
xmlns:local="clr-namespace:KanSan"
StartupUri="MainWindow.xaml">
<Application.Resources>

View File

@@ -18,6 +18,7 @@
<PackageReference Include="Syncfusion.DocIO.Wpf" Version="17.4.0.55" />
<PackageReference Include="Syncfusion.DocToPDFConverter.Wpf" Version="17.4.0.55" />
<PackageReference Include="Syncfusion.Grid.WPF" Version="17.4.0.55" />
<PackageReference Include="Syncfusion.Shared.WPF" Version="17.4.0.55" />
<PackageReference Include="Syncfusion.XlsIO.Wpf" Version="17.4.0.55" />
</ItemGroup>

View File

@@ -1,12 +1,16 @@
<Window
<syncfusion:ChromelessWindow
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:KanSan"
xmlns:syncfusion="http://schemas.syncfusion.com/wpf" x:Class="KanSan.MainWindow"
xmlns:syncfusion="clr-namespace:Syncfusion.Windows.Shared;assembly=Syncfusion.Shared.WPF" x:Class="KanSan.MainWindow"
TitleTextAlignment="Center"
mc:Ignorable="d"
Title="{Binding ApplicationTitle}" Height="450" Width="800" WindowStartupLocation="CenterScreen" WindowState="Maximized">
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
@@ -37,4 +41,4 @@
<StatusBarItem Content="{Binding SelectedBaustelle.OrtTeil}" />
</StatusBar>
</Grid>
</Window>
</syncfusion:ChromelessWindow>

View File

@@ -17,28 +17,29 @@ using KanSan.Base;
using KanSan.Base.Models;
using KanSan.ViewModel;
using Microsoft.EntityFrameworkCore;
using Syncfusion.Windows.Shared;
namespace KanSan
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
public partial class MainWindow : ChromelessWindow
{
UI.UCKundeEdit UCKundeEdit;
UI.UCKundeList UCKundeList;
UI.UCProjektList UCProjektList;
UI.UCBaustelleList UCBaustelleList;
public MainWindow()
{
InitializeComponent();
this.DataContext = new MainWindowViewModel();
UCKundeList = new UI.UCKundeList();
UCKundeList.KundeAdded += UCKundeList_KundeAdded;
UCKundeList.KundeSelect += UCKundeList_KundeSelect;
}
private void UCProjektList_ProjektAdded(object sender, UI.SelectProjektEventArgs e)