Skip to content

Commit b1b7830

Browse files
authored
Merge pull request #39 from TheJoeFin/dev
v 1.9
2 parents 99d3175 + b81769f commit b1b7830

17 files changed

+868
-243
lines changed

.github/workflows/build.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build
2+
3+
on:
4+
# push:
5+
# branches:
6+
# - main
7+
# - dev
8+
# pull_request:
9+
# branches:
10+
# - main
11+
# - dev
12+
workflow_dispatch:
13+
14+
concurrency:
15+
group: ${{ github.workflow }}
16+
cancel-in-progress: true
17+
18+
jobs:
19+
build:
20+
runs-on: windows-latest
21+
22+
steps:
23+
- name: Checkout code
24+
uses: actions/checkout@v6
25+
26+
- name: Setup .NET
27+
uses: actions/setup-dotnet@v5
28+
with:
29+
dotnet-version: '9.0.x'
30+
31+
- name: Setup MSBuild
32+
uses: microsoft/setup-msbuild@v2
33+
34+
- name: Restore
35+
run: msbuild "Simple QR Code Maker.sln" /t:Restore /p:Configuration=Release /p:Platform=x64
36+
37+
- name: Build
38+
run: msbuild "Simple QR Code Maker.sln" /p:Configuration=Release /p:Platform=x64
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net8.0</TargetFramework>
3+
<TargetFramework>net9.0</TargetFramework>
44
<RootNamespace>Simple_QR_Code_Maker.Core</RootNamespace>
5-
<Platforms>x86;x64;arm64;AnyCPU</Platforms>
5+
<Platforms>x64;arm64</Platforms>
66
<ImplicitUsings>enable</ImplicitUsings>
77
</PropertyGroup>
88

@@ -11,6 +11,6 @@
1111
</ItemGroup>
1212

1313
<ItemGroup>
14-
<PackageReference Include="System.Text.Json" Version="9.0.4" />
14+
<PackageReference Include="System.Text.Json" Version="10.0.0" />
1515
</ItemGroup>
1616
</Project>

Simple QR Code Maker.sln

Lines changed: 0 additions & 69 deletions
This file was deleted.

Simple QR Code Maker.slnx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<Solution>
2+
<Configurations>
3+
<Platform Name="arm64" />
4+
<Platform Name="x64" />
5+
</Configurations>
6+
<Project Path="Simple QR Code Maker.Core/Simple QR Code Maker.Core.csproj">
7+
<Platform Solution="*|arm64" Project="arm64" />
8+
<Platform Solution="*|x64" Project="x64" />
9+
<Platform Solution="*|x86" Project="x86" />
10+
</Project>
11+
<Project Path="Simple QR Code Maker/Simple QR Code Maker.csproj">
12+
<Platform Solution="*|arm64" Project="arm64" />
13+
<Platform Solution="*|x64" Project="x64" />
14+
<Platform Solution="*|x86" Project="x86" />
15+
<Deploy />
16+
</Project>
17+
</Solution>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<StackPanel
3+
x:Class="Simple_QR_Code_Maker.Controls.IconAndTextContent"
4+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
5+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
6+
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
7+
xmlns:local="using:Simple_QR_Code_Maker.Controls"
8+
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
9+
DataContext="{Binding}"
10+
Orientation="Horizontal"
11+
Spacing="6"
12+
mc:Ignorable="d">
13+
<Viewbox Height="14">
14+
<SymbolIcon Symbol="{x:Bind Icon}" />
15+
</Viewbox>
16+
<TextBlock Text="{x:Bind ContentText}" />
17+
</StackPanel>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
using Microsoft.UI.Xaml;
2+
using Microsoft.UI.Xaml.Controls;
3+
4+
namespace Simple_QR_Code_Maker.Controls;
5+
6+
public sealed partial class IconAndTextContent : StackPanel
7+
{
8+
public IconAndTextContent()
9+
{
10+
InitializeComponent();
11+
}
12+
13+
public Symbol Icon
14+
{ get => (Symbol)GetValue(IconProperty); set => SetValue(IconProperty, value);
15+
}
16+
17+
public static readonly DependencyProperty IconProperty =
18+
DependencyProperty.Register(nameof(Icon), typeof(Symbol), typeof(IconAndTextContent), new PropertyMetadata(Symbol.Placeholder));
19+
20+
public string ContentText
21+
{ get => (string)GetValue(ContentTextProperty); set => SetValue(ContentTextProperty, value);
22+
}
23+
24+
public static readonly DependencyProperty ContentTextProperty =
25+
DependencyProperty.Register(nameof(ContentText), typeof(string), typeof(IconAndTextContent), new PropertyMetadata(string.Empty));
26+
}

0 commit comments

Comments
 (0)