Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
e21b4df
Create README WinUI3.md
tajbender Feb 13, 2025
7675772
Merge branch 'dahall:nullableenabled' into WinUI-3
tajbender Mar 12, 2026
8393cdf
Merge branch 'dahall:nullableenabled' into WinUI-3
tajbender Mar 13, 2026
be98187
Merge branch 'dahall:nullableenabled' into WinUI-3
tajbender Mar 23, 2026
ed2211f
Inital Import of Samples Browser
tajbender Mar 23, 2026
c335430
Update README.md
tajbender Mar 23, 2026
2dc1b76
Bump version to `5.1.0`
tajbender Mar 23, 2026
3385fe7
Merge branch 'WinUI-3' of https://github.com/tajbender/WinClassicSamp…
tajbender Mar 23, 2026
804f3be
Comment out `Vanara.CodeGen` to fix build issues
tajbender Mar 23, 2026
897ef41
Downgrade to `net6.0-windows10.0.19041`.
tajbender Mar 23, 2026
e97acfc
Add `Microsoft.WindowsAppSDK` - version `1.5.250108004`
tajbender Mar 23, 2026
c7020e1
Add project sructure including stubs
tajbender Mar 23, 2026
7a2cd13
Add `CustomControlTemplate`.
tajbender Mar 23, 2026
11913c5
Add `HomePage`
tajbender Mar 24, 2026
661b020
Redesign `HomePage`
tajbender Mar 26, 2026
1c4ab54
Update `README.md`
tajbender Mar 27, 2026
97aa645
Add package `CommunityToolkit.Mvvm`
tajbender Mar 27, 2026
0a158bd
prj: Rename folder `Pages` to `Views`
tajbender Mar 27, 2026
4864b04
Import missing Services, ViewModels, Helpers
tajbender Mar 28, 2026
40ede34
Add Activation Handlers
tajbender Mar 28, 2026
371f03b
Add `Behaviors`, `Services`
tajbender Mar 28, 2026
86d20a1
Merge pull request #5 from dahall/nullableenabled
tajbender Apr 10, 2026
bfc0b7c
Overhaul folder structure
tajbender Apr 10, 2026
0701e64
Remove orphaned Samples Browser
tajbender Apr 10, 2026
a57d42a
Add Solution
tajbender Apr 10, 2026
d5f9a52
Add Build script
tajbender Apr 10, 2026
a8c01b6
Add app skeleton
tajbender Apr 10, 2026
a0ac75f
Update Solution, Cleanup
tajbender Apr 10, 2026
0eb9fc4
Opening `MainWindow` now
tajbender Apr 11, 2026
b1155b8
Add Vanara Packages. Apply `Vanara.CodeGen` while build
tajbender Apr 11, 2026
0a3ff38
Merge branch 'nullableenabled' into april-egg-hunt-1
tajbender Apr 13, 2026
cfb2c61
Uncomment ItemGroup for PackageReference
tajbender Apr 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>
</Project>
7 changes: 6 additions & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,19 @@
<ItemGroup>
<PackageVersion Include="AvalonEdit" Version="6.3.1.120" />
<PackageVersion Include="CommandLineParser" Version="2.9.1" />
<PackageVersion Include="CommunityToolkit.Mvvm" Version="8.1.0" />
<PackageVersion Include="ConEmu.Control.WinForms" Version="1.21.9.5" />
<PackageVersion Include="DirectShowLib.Standard" Version="2.1.0" />
<PackageVersion Include="Markdig" Version="1.1.2" />
<PackageVersion Include="Microsoft.Direct3D.D3D12" Version="1.619.1" />
<PackageVersion Include="Microsoft.Extensions.Hosting" Version="6.0.1" />
<PackageVersion Include="Microsoft.Toolkit.Uwp.Notifications" Version="7.1.3" />
<PackageVersion Include="Microsoft.Win32.Registry" Version="5.0.0" />
<PackageVersion Include="Microsoft.Windows.CsWinRT" Version="2.2.0" />
<PackageVersion Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.26100.7705" />
<PackageVersion Include="Microsoft.Windows.SDK.Contracts" Version="10.0.26100.7705" />
<PackageVersion Include="Microsoft.Xaml.Behaviors.WinUI.Managed" Version="2.0.9" />
<PackageVersion Include="Newtonsoft.Json" Version="13.0.1" />
<PackageVersion Include="Microsoft.WindowsAppSDK" Version="1.8.260209005" />
<PackageVersion Include="NuGet.Commands" Version="7.3.0" />
<PackageVersion Include="NuGet.Versioning" Version="7.3.0" />
Expand All @@ -26,7 +30,7 @@
<PackageVersion Include="System.Management" Version="10.0.4" />
<PackageVersion Include="Vanara.BITS" Version="$(VanaraVer)" />
<PackageVersion Include="Vanara.CodeGen" Version="$(VanaraVer)" />
<PackageVersion Include="Vanara.Core" Version="$(VanaraVer)" />
<PackageVersion Include="Vanara.Core" Version="4.2.1" />
<PackageVersion Include="Vanara.DirectoryServices" Version="$(VanaraVer)" />
<PackageVersion Include="Vanara.Library" Version="$(VanaraVer)" />
<PackageVersion Include="Vanara.PInvoke.AclUI" Version="$(VanaraVer)" />
Expand Down Expand Up @@ -112,5 +116,6 @@
<PackageVersion Include="Vanara.Windows.Forms" Version="$(VanaraVer)" />
<PackageVersion Include="Vanara.Windows.Shell" Version="$(VanaraVer)" />
<PackageVersion Include="Vanara.Windows.Shell.Common" Version="$(VanaraVer)" />
<PackageVersion Include="WinUIEx" Version="2.3.2" />
</ItemGroup>
</Project>
3,790 changes: 0 additions & 3,790 deletions WinClassicSamplesCS.sln

This file was deleted.

30 changes: 30 additions & 0 deletions WinUiClassicSamplesBrowser/.github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build WinUI 3 App

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: windows-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x

- name: Restore dependencies
run: dotnet restore

- name: Build solution
run: dotnet build --configuration Release --no-restore

- name: Publish (optional for unpackaged)
if: ${{ false }} # set to true if you want publish output
run: dotnet publish -c Release
5 changes: 5 additions & 0 deletions WinUiClassicSamplesBrowser/App.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<Application
x:Class="ClassicSamplesBrowser.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
</Application>
18 changes: 18 additions & 0 deletions WinUiClassicSamplesBrowser/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using Microsoft.UI.Xaml;
//using LaunchActivatedEventArgs = Windows.ApplicationModel.Activation.LaunchActivatedEventArgs;

namespace ClassicSamplesBrowser;

public partial class App : Application
{
public App()
{
this.InitializeComponent();
}

protected override void OnLaunched(LaunchActivatedEventArgs args)
{
var window = new MainWindow();
window.Activate();
}
}
16 changes: 16 additions & 0 deletions WinUiClassicSamplesBrowser/ClassicSamplesBrowser.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<EnableMsixTooling>true</EnableMsixTooling>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<OutputType>WinExe</OutputType>
<TargetFramework>net8.0-windows10.0.19041.0</TargetFramework>
<UseWinUI>true</UseWinUI>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.8.260317003" />
<PackageReference Include="Vanara.Core" Version="5.0.3" />
<PackageReference Include="Vanara.PInvoke.Shell32" Version="5.0.3" />
<PackageReference Include="Vanara.Windows.Shell" Version="5.0.3" />
</ItemGroup>
</Project>
12 changes: 12 additions & 0 deletions WinUiClassicSamplesBrowser/Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<Project>
<ItemGroup>
<PackageReference Include="Vanara.CodeGen" Version="5.0.3">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<PackageVersion Include="Microsoft.Web.WebView2" Version="1.0.2592.51" />
<PackageVersion Include="Microsoft.WindowsAppSDK" Version="1.8.0" />
</ItemGroup>
</Project>
9 changes: 9 additions & 0 deletions WinUiClassicSamplesBrowser/MainWindow.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<Window
x:Class="ClassicSamplesBrowser.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="ClassicSamplesBrowser">
<Grid>
<TextBlock Text="Hello WinUI 3" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Grid>
</Window>
11 changes: 11 additions & 0 deletions WinUiClassicSamplesBrowser/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using Microsoft.UI.Xaml;

namespace ClassicSamplesBrowser;

public sealed partial class MainWindow : Window
{
public MainWindow()
{
this.InitializeComponent();
}
}
31 changes: 31 additions & 0 deletions WinUiClassicSamplesBrowser/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
@ -1,30 +0,0 @@
# Win Classic Samples Browser
### a fork of `WinClassicSamples` using Vanara in WinUI3 Apps.

# Introduction
This Repoitory is an example of [WinClassicSamples](https://github.com/dahall/WinClassicSamplesCS/) using the Vanara
libraries in a WinUI3 App. The goal is to demonstrate the use of the Vanara libraries in a side-by-side model with full
featured modern WinUI environment.

This repository is intended to be a reference for developers who want to use the Vanara libraries in their own projects, and to provide
a starting point for those who want to learn how to use the Vanara libraries in a WinUI3 App.

First, take a look at [Template Studio for WinUI (C#)](https://marketplace.visualstudio.com/items?itemName=TemplateStudio.TemplateStudioForWinUICs),
available through Visual Studio Marketplace:

> Template Studio for WinUI accelerates the creation of new WinUI apps using a wizard-based UI.
>
> Projects created with this extension contain well-formed, readable code and incorporate the latest development features while implementing proven patterns and leading practices. The generated code includes links to documentation and TODO comments that provide useful insight and guidance for turning the generated projects into production applications.
>
> To get started, install the extension, then select the corresponding Template Studio project template when creating a new project in Visual Studio. Name your project, then click Create to launch the Template Studio wizard.

## Project Intent
Test and validate that the structures, methods and interfaces in Vanara using known code and outcomes.
Demonstrate the use of the Vanara libraries in a side-by-side model with the native Win32 API.

# Resources
- [Vanara on GitHub](https://github.com/dahall/Vanara)
- [WinClassicSamples using Vanara on GitHub](https://github.com/dahall/WinClassicSamplesCS)
- [Native Microsoft WinClassicSamples on GitHub](https://github.com/Microsoft/Windows-classic-samples)
- [Official WinUI3 on Microsoft.com](https://docs.microsoft.com/en-us/windows/apps/winui/winui3/)
- [Template Studio for WinUI (C#) on VisualStudio Marketplace](https://marketplace.visualstudio.com/items?itemName=TemplateStudio.TemplateStudioForWinUICs)
11 changes: 11 additions & 0 deletions WinUiClassicSamplesBrowser/WinUiClassicSamplesBrowser.slnx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<Solution>
<Configurations>
<Platform Name="ARM64" />
<Platform Name="x64" />
<Platform Name="x86" />
</Configurations>

<Project Path="ClassicSamplesBrowser.csproj">
<Deploy />
</Project>
</Solution>