Skip to content

Commit

Permalink
Add starter kit
Browse files Browse the repository at this point in the history
  • Loading branch information
NotYoojun committed Apr 6, 2024
1 parent af97472 commit bc83020
Show file tree
Hide file tree
Showing 10 changed files with 129 additions and 21 deletions.
25 changes: 24 additions & 1 deletion iNKORE.UI.WPF.Modern.sln
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Fonts", "Fonts", "{1413BB5F
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NoAppXamlTest", "source\samples\NoAppXamlTest\NoAppXamlTest.csproj", "{7C68372B-A2EE-43DB-A6B1-EC0CA6471BA3}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FlyoutTest", "source\samples\FlyoutTest\FlyoutTest.csproj", "{3614991C-ECC0-474A-BC8E-1D0A56FD0BDE}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FlyoutTest", "source\samples\FlyoutTest\FlyoutTest.csproj", "{3614991C-ECC0-474A-BC8E-1D0A56FD0BDE}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StarterKit", "source\samples\StarterKit\StarterKit.csproj", "{B13E16CB-55E0-42CB-B761-216D82273473}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down Expand Up @@ -217,6 +219,26 @@ Global
{3614991C-ECC0-474A-BC8E-1D0A56FD0BDE}.Release|x64.Build.0 = Release|Any CPU
{3614991C-ECC0-474A-BC8E-1D0A56FD0BDE}.Release|x86.ActiveCfg = Release|Any CPU
{3614991C-ECC0-474A-BC8E-1D0A56FD0BDE}.Release|x86.Build.0 = Release|Any CPU
{B13E16CB-55E0-42CB-B761-216D82273473}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B13E16CB-55E0-42CB-B761-216D82273473}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B13E16CB-55E0-42CB-B761-216D82273473}.Debug|ARM.ActiveCfg = Debug|Any CPU
{B13E16CB-55E0-42CB-B761-216D82273473}.Debug|ARM.Build.0 = Debug|Any CPU
{B13E16CB-55E0-42CB-B761-216D82273473}.Debug|ARM64.ActiveCfg = Debug|Any CPU
{B13E16CB-55E0-42CB-B761-216D82273473}.Debug|ARM64.Build.0 = Debug|Any CPU
{B13E16CB-55E0-42CB-B761-216D82273473}.Debug|x64.ActiveCfg = Debug|Any CPU
{B13E16CB-55E0-42CB-B761-216D82273473}.Debug|x64.Build.0 = Debug|Any CPU
{B13E16CB-55E0-42CB-B761-216D82273473}.Debug|x86.ActiveCfg = Debug|Any CPU
{B13E16CB-55E0-42CB-B761-216D82273473}.Debug|x86.Build.0 = Debug|Any CPU
{B13E16CB-55E0-42CB-B761-216D82273473}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B13E16CB-55E0-42CB-B761-216D82273473}.Release|Any CPU.Build.0 = Release|Any CPU
{B13E16CB-55E0-42CB-B761-216D82273473}.Release|ARM.ActiveCfg = Release|Any CPU
{B13E16CB-55E0-42CB-B761-216D82273473}.Release|ARM.Build.0 = Release|Any CPU
{B13E16CB-55E0-42CB-B761-216D82273473}.Release|ARM64.ActiveCfg = Release|Any CPU
{B13E16CB-55E0-42CB-B761-216D82273473}.Release|ARM64.Build.0 = Release|Any CPU
{B13E16CB-55E0-42CB-B761-216D82273473}.Release|x64.ActiveCfg = Release|Any CPU
{B13E16CB-55E0-42CB-B761-216D82273473}.Release|x64.Build.0 = Release|Any CPU
{B13E16CB-55E0-42CB-B761-216D82273473}.Release|x86.ActiveCfg = Release|Any CPU
{B13E16CB-55E0-42CB-B761-216D82273473}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -230,6 +252,7 @@ Global
{1413BB5F-D932-4C64-B7B4-2F253DDE36B2} = {445FD5A2-621B-450B-B0AB-4B9A070ECC1E}
{7C68372B-A2EE-43DB-A6B1-EC0CA6471BA3} = {A96F98E9-18B5-4863-8F28-9B7BDF70A128}
{3614991C-ECC0-474A-BC8E-1D0A56FD0BDE} = {A96F98E9-18B5-4863-8F28-9B7BDF70A128}
{B13E16CB-55E0-42CB-B761-216D82273473} = {A96F98E9-18B5-4863-8F28-9B7BDF70A128}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {6251E140-0FAA-4DE9-B245-1C5BE188E578}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<AssemblyOriginatorKeyFile>..\..\assets\misc\iNKORE.Pulic.snk</AssemblyOriginatorKeyFile>
<RootNamespace>iNKORE.UI.WPF.Modern</RootNamespace>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<NoWarn>$(NoWarn);CS1591;1701;1702;CA1416;CS1573</NoWarn>
</PropertyGroup>

<!--<PropertyGroup>
Expand All @@ -37,23 +37,6 @@
</CsWinRTExcludes>
</PropertyGroup>-->

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net6.0-windows10.0.18362.0|AnyCPU'">
<NoWarn>1701;1702;CA1416</NoWarn>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net452|AnyCPU'">
<NoWarn>1701;1702;CA1416</NoWarn>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net6.0-windows10.0.18362.0|AnyCPU'">
<NoWarn>1701;1702;CA1416</NoWarn>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net452|AnyCPU'">
<NoWarn>1701;1702;CA1416</NoWarn>
</PropertyGroup>


<ItemGroup Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'">
<PackageReference Include="Resource.Embedder" Version="2.2.0" PrivateAssets="all" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion source/iNKORE.UI.WPF.Modern/iNKORE.UI.WPF.Modern.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<AssemblyOriginatorKeyFile>..\..\assets\misc\iNKORE.Pulic.snk</AssemblyOriginatorKeyFile>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>$(NoWarn);1591</NoWarn>
<NoWarn>$(NoWarn);CS1591;1701;1702;CA1416</NoWarn>
</PropertyGroup>

<PropertyGroup>
Expand Down
15 changes: 15 additions & 0 deletions source/samples/StarterKit/App.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<Application x:Class="StarterKit.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:StarterKit"
xmlns:ui="http://schemas.inkore.net/lib/ui/wpf/modern"
StartupUri="MainWindow.xaml">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ui:ThemeResources/>
<ui:XamlControlsResources />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
14 changes: 14 additions & 0 deletions source/samples/StarterKit/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using System.Configuration;
using System.Data;
using System.Windows;

namespace StarterKit
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
}

}
10 changes: 10 additions & 0 deletions source/samples/StarterKit/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using System.Windows;

[assembly: ThemeInfo(
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dictionaries)
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
)]
18 changes: 18 additions & 0 deletions source/samples/StarterKit/MainWindow.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<Window x:Class="StarterKit.MainWindow"
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:StarterKit"
xmlns:ui="http://schemas.inkore.net/lib/ui/wpf/modern"
ui:WindowHelper.UseModernWindowStyle="True"
ui:WindowHelper.SystemBackdropType="Mica"
mc:Ignorable="d"
Title="Welcome!" Height="450" Width="800">
<ui:SimpleStackPanel VerticalAlignment="Center" Spacing="5">
<TextBlock Text="Fluent Design is beautiful." FontSize="24" FontWeight="Bold" TextAlignment="Center"/>
<TextBlock Text="But hey, we deserve it :-)" FontSize="20" TextAlignment="Center"/>

<Button Content="Hello world!" HorizontalAlignment="Center" Margin="0,20,0,0"/>
</ui:SimpleStackPanel>
</Window>
24 changes: 24 additions & 0 deletions source/samples/StarterKit/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace StarterKit
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
}
}
16 changes: 16 additions & 0 deletions source/samples/StarterKit/StarterKit.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows10.0.18362.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<UseWPF>true</UseWPF>
<SupportedOSPlatformVersion>7.0</SupportedOSPlatformVersion>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="iNKORE.UI.WPF.Modern" Version="0.9.26.3" />
</ItemGroup>

</Project>
7 changes: 6 additions & 1 deletion source/samples/WpfApp1/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,12 @@
</ToggleButton>
<RichTextBox HorizontalAlignment="Left" VerticalAlignment="Top" Margin="539,110,0,0" Height="86"/>
<PasswordBox HorizontalAlignment="Left" VerticalAlignment="Top" Margin="622,127,0,0" Height="200"/>
<Button x:Name="Button_MessageBox" Content="MessageBox" Click="Button_MessageBox_Click" Canvas.Left="152" Canvas.Top="145" VerticalAlignment="Top"/>
<Button x:Name="Button_MessageBox" Click="Button_MessageBox_Click" Canvas.Left="152" Canvas.Top="145" VerticalAlignment="Top">
<ui:SimpleStackPanel Spacing="5" Orientation="Horizontal">
<ui:FontIcon Glyph="{x:Static ui:SegoeIcons.Message}"/>
<TextBlock Text="MessageBox"/>
</ui:SimpleStackPanel>
</Button>

<TextBox Width="200" Canvas.Left="89" Canvas.Top="300" ui:TextBoxHelper.IsDeleteButtonVisible="False"/>

Expand Down

0 comments on commit bc83020

Please sign in to comment.