Add project files.

This commit is contained in:
SuperBrain 2020-07-16 17:13:22 +02:00
parent 0c4fda77f7
commit f8bae2ea7f
8 changed files with 136 additions and 0 deletions

13
DynamicMenu/App.xaml Normal file
View File

@ -0,0 +1,13 @@
<Application x:Class="Company.WpfApplication1.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:s="https://github.com/canton7/Stylet"
xmlns:local="clr-namespace:Company.WpfApplication1">
<Application.Resources>
<s:ApplicationLoader>
<s:ApplicationLoader.Bootstrapper>
<local:Bootstrapper/>
</s:ApplicationLoader.Bootstrapper>
</s:ApplicationLoader>
</Application.Resources>
</Application>

17
DynamicMenu/App.xaml.cs Normal file
View File

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
namespace Company.WpfApplication1
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
}
}

View File

@ -0,0 +1,19 @@
using Company.WpfApplication1.Pages;
using Stylet;
using StyletIoC;
namespace Company.WpfApplication1
{
public class Bootstrapper : Bootstrapper<ShellViewModel>
{
protected override void ConfigureIoC(IStyletIoCBuilder builder)
{
// Configure the IoC container in here
}
protected override void Configure()
{
// Perform any other configuration before the application starts
}
}
}

View File

@ -0,0 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>netcoreapp3.0</TargetFramework>
<RootNamespace>DynamicMenu</RootNamespace>
<UseWPF>true</UseWPF>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Stylet" Version="1.3.3.0" />
</ItemGroup>
</Project>

View File

@ -0,0 +1,16 @@
<Window x:Class="Company.WpfApplication1.Pages.ShellView"
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:s="https://github.com/canton7/Stylet"
xmlns:local="clr-namespace:Company.WpfApplication1.Pages"
mc:Ignorable="d"
d:DataContext="{d:DesignInstance local:ShellViewModel}"
Title="Stylet Project" Height="450" Width="800">
<Grid>
<TextBlock FontSize="30" HorizontalAlignment="Center" VerticalAlignment="Center">
Hello Stylet!
</TextBlock>
</Grid>
</Window>

View File

@ -0,0 +1,15 @@
using System.Windows;
namespace Company.WpfApplication1.Pages
{
/// <summary>
/// Interaction logic for ShellView.xaml
/// </summary>
public partial class ShellView : Window
{
public ShellView()
{
InitializeComponent();
}
}
}

View File

@ -0,0 +1,8 @@
using Stylet;
namespace Company.WpfApplication1.Pages
{
public class ShellViewModel : Screen
{
}
}

34
StyletTestingGround.sln Normal file
View File

@ -0,0 +1,34 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26124.0
MinimumVisualStudioVersion = 15.0.26124.0
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DynamicMenu", "DynamicMenu\DynamicMenu.csproj", "{508492CF-7253-44CD-9050-A0F159BAC32B}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{508492CF-7253-44CD-9050-A0F159BAC32B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{508492CF-7253-44CD-9050-A0F159BAC32B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{508492CF-7253-44CD-9050-A0F159BAC32B}.Debug|x64.ActiveCfg = Debug|Any CPU
{508492CF-7253-44CD-9050-A0F159BAC32B}.Debug|x64.Build.0 = Debug|Any CPU
{508492CF-7253-44CD-9050-A0F159BAC32B}.Debug|x86.ActiveCfg = Debug|Any CPU
{508492CF-7253-44CD-9050-A0F159BAC32B}.Debug|x86.Build.0 = Debug|Any CPU
{508492CF-7253-44CD-9050-A0F159BAC32B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{508492CF-7253-44CD-9050-A0F159BAC32B}.Release|Any CPU.Build.0 = Release|Any CPU
{508492CF-7253-44CD-9050-A0F159BAC32B}.Release|x64.ActiveCfg = Release|Any CPU
{508492CF-7253-44CD-9050-A0F159BAC32B}.Release|x64.Build.0 = Release|Any CPU
{508492CF-7253-44CD-9050-A0F159BAC32B}.Release|x86.ActiveCfg = Release|Any CPU
{508492CF-7253-44CD-9050-A0F159BAC32B}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal