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" <Application x:Class="KanSan.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
xmlns:local="clr-namespace:KanSan" xmlns:local="clr-namespace:KanSan"
StartupUri="MainWindow.xaml"> StartupUri="MainWindow.xaml">
<Application.Resources> <Application.Resources>

View File

@@ -18,6 +18,7 @@
<PackageReference Include="Syncfusion.DocIO.Wpf" Version="17.4.0.55" /> <PackageReference Include="Syncfusion.DocIO.Wpf" Version="17.4.0.55" />
<PackageReference Include="Syncfusion.DocToPDFConverter.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.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" /> <PackageReference Include="Syncfusion.XlsIO.Wpf" Version="17.4.0.55" />
</ItemGroup> </ItemGroup>

View File

@@ -1,12 +1,16 @@
<Window <syncfusion:ChromelessWindow
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:KanSan" 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" mc:Ignorable="d"
Title="{Binding ApplicationTitle}" Height="450" Width="800" WindowStartupLocation="CenterScreen" WindowState="Maximized"> Title="{Binding ApplicationTitle}" Height="450" Width="800" WindowStartupLocation="CenterScreen" WindowState="Maximized">
<Window.Resources> <Window.Resources>
<ResourceDictionary> <ResourceDictionary>
<ResourceDictionary.MergedDictionaries> <ResourceDictionary.MergedDictionaries>
@@ -37,4 +41,4 @@
<StatusBarItem Content="{Binding SelectedBaustelle.OrtTeil}" /> <StatusBarItem Content="{Binding SelectedBaustelle.OrtTeil}" />
</StatusBar> </StatusBar>
</Grid> </Grid>
</Window> </syncfusion:ChromelessWindow>

View File

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