Full-Stack.lt
Get in touch
WPFStack WPF · 01/04

Desktop窓WPF

Windows desktop apps in WPF and .NET: responsive XAML interfaces, MVVM that stays testable, and integration with the hardware the business runs on.

01 / 04

Desktop

Windows apps that feel at home

WPF with clean MVVM and WinForms for fast, proven forms, both on .NET and built for the hardware they run on.

VS
FileEditViewGitProjectBuildDebugTools
Search
Checkout
Debug
Any CPU
Checkout
Toolbox
▾ Common WPF Controls
Button
CheckBox
ComboBox
Grid
Image
Label
ListView
StackPanel
TextBlock
TextBox
MainWindow.xaml
CartViewModel.cs
Checkout
2*
*
66%
DesignXAML
1<Window x:Class="Checkout.MainWindow"
2 Title="Checkout" Height="720" Width="1280">
3 <Grid Margin="24">
4 <Grid.ColumnDefinitions> 2* | * </Grid.ColumnDefinitions>
5 </Grid>
6</Window>
Properties
NameWindow
MainWindow
▾ Common
Title
Checkout
Width
1280
Height
720
Background
#F3F3F3
Ready
feature/cart Checkout XAML .NET 8

View models you can test

Commands, validation and state live in plain C# classes with unit tests, not in code-behind.

Checkout — CartViewModel.cs
CartViewModel.cs
MainWindow.xaml
1using CommunityToolkit.Mvvm.ComponentModel;
2using CommunityToolkit.Mvvm.Input;
3
4public partial class CartViewModel : ObservableObject
5{
6 public ObservableCollection<CartLine> Items { get; } = new();
7
8 [ObservableProperty]
9 private decimal total;
10
11 [RelayCommand(CanExecute = nameof(CanPay))]
12 private async Task PayAsync() => await payments.ChargeAsync(Total);
13
14 private bool CanPay() => Items.Count > 0;
15}
feature/cart
✓ 0 problems
Ln 12, Col 70 C# 12

.NET MAUI

One codebase, every device

Phones, tablets and desktops from shared C# and XAML, with native controls on each platform.

FieldApp — MainPage.xaml
MainPage.xaml
MainViewModel.cs
MauiProgram.cs
1<ContentPage x:Class="FieldApp.MainPage"
2 Title="Deliveries">
3 <CollectionView ItemsSource="{Binding Deliveries}">
4 <CollectionView.ItemTemplate>
5 <DataTemplate>
6 <Grid ColumnDefinitions="*,Auto" Padding="16">
7 <Label Text="{Binding Address}" />
+ <Label Text="{Binding Eta}" Grid.Column="1" />
9 </Grid>
10 </DataTemplate>
11 </CollectionView.ItemTemplate>
12 </CollectionView>
13</ContentPage>
$ dotnet build -t:Run -f net9.0-android
Deploying to Pixel 8 (Android 15) · also targets iOS, Windows, macOS
✓ FieldApp running
main
✓ 0 problems
XAML .NET MAUI 9

Android

Native Android with Android Studio

Kotlin and Jetpack Compose apps for devices in the field, from phones to rugged scanners.

AS
ScanApp
release/2.4
Pixel 8 · API 35
ScanScreen.kt
ScanViewModel.kt
Code
Split
Design
1@Preview(showBackground = true)
2@Composable
3fun ScanScreen(items: List<Item> = sampleItems) {
4 Column(Modifier.fillMaxSize().padding(16.dp)) {
5 Text("Scanned items", style = MaterialTheme.typography.titleLarge)
6 LazyColumn(Modifier.weight(1f)) {
7 items(items) { item ->
8 ListItem(
9 headlineContent = { Text(item.name) },
10 )
11 }
12 }
13 }
14}
ScanScreen
Live Edit
9:41
Scanned items
Pallet A-17
Handheld scanner
Shrink wrap roll
ScanApp › app › ScanScreen.kt
Kotlin 2.0 Compose LF UTF-8 4 spaces

Payments

POS, SCO and crypto payments, built in

Point-of-sale checkouts on WinPos and AndroidPos, self-checkout (SCO) kiosks, card terminals and receipt printers, and websites that take crypto through MetaMask, with every payment confirmed and reconciled by the same backend.

WinPos
AndroidPos
SCO
EMV & contactless
Receipt printers
MetaMask
Ethereum & USDC
Webhooks

Services

The layer between apps and data

APIs and background services in .NET and Python keep every app simple and every database behind one set of rules.

architecture — apps · services · data
APPS
WPF desktop
.NET MAUI
Android
Web
SERVICES
Orders API · ASP.NET Core
Inventory · FastAPI
Sync worker · .NET
Import jobs · Python
DATA
SQL Server
PostgreSQL
Redis cache
Message queue
GET /orders/42 → Orders API → SQL Server 200 · 18 ms
PUB stock.changed → queue → Sync worker → apps delivered

ASP.NET Core APIs

REST and gRPC endpoints with Entity Framework Core, validation and versioned contracts, so desktop, mobile and web clients all follow the same business rules.

OrdersApi — Program.cs
Program.cs
OrderService.cs
appsettings.json
1var builder = WebApplication.CreateBuilder(args);
2builder.Services.AddDbContext<ShopDb>(o => o.UseSqlServer(connection));
3builder.Services.AddHostedService<OutboxWorker>();
4var app = builder.Build();
5
6app.MapGet("/orders/{id:int}", async (int id, ShopDb db) =>
7 await db.Orders.FindAsync(id) is { } order
8 ? Results.Ok(order)
9 : Results.NotFound());
10
+app.MapPost("/orders", async (CreateOrder cmd, OrderService orders) =>
+ Results.Created($"/orders/{await orders.CreateAsync(cmd)}", null));
13
14app.Run();
$ dotnet run
info: Now listening on: http://localhost:5080
GET /orders/42 → 200 OK (18 ms)
feature/orders
✓ 0 problems
C# 12 ASP.NET Core

Python services

FastAPI services and workers for data processing, integrations and scheduled jobs, working with the same databases through SQLAlchemy.

inventory-svc — main.py
main.py
db.py
jobs.py
1from fastapi import Depends, FastAPI, HTTPException
2from sqlalchemy.orm import Session
3from .db import Item, get_db
4
5app = FastAPI(title="inventory")
6
7@app.get("/items/{sku}")
8def read_item(sku: str, db: Session = Depends(get_db)):
9 item = db.get(Item, sku)
10 if item is None:
11 raise HTTPException(404, "unknown sku")
+ return {"sku": item.sku, "stock": item.stock}
$ uvicorn app.main:app --port 8000
INFO: Uvicorn running on http://127.0.0.1:8000
GET /items/A-100 → 200 OK · docs at /docs
main
✓ 0 problems
Python 3.12 FastAPI
C#
.NET
ASP.NET Core
Hangfire
Python
FastAPI
Go
Kotlin
SQL Server
PostgreSQL

1 contract

one API contract shared by .NET, Python and Go microservices, so each service is written in the language that fits it best and every client talks to all of them the same way

Background work, done reliably.

Imports, exports, sync and notifications run in queued workers and Hangfire jobs, on cron schedules or as system scheduled tasks (Windows Task Scheduler, systemd timers), so apps stay fast and nothing is lost when another system is down.

architecture — apps · services · data
APPS
WPF desktop
.NET MAUI
Android
Web
SERVICES
Orders API · ASP.NET Core
Inventory · FastAPI
Sync worker · .NET
Import jobs · Python
DATA
SQL Server
PostgreSQL
Redis cache
Message queue
GET /orders/42 → Orders API → SQL Server 200 · 18 ms
PUB stock.changed → queue → Sync worker → apps delivered

Contact

Let’s build your software

A website, a 3D experience, an app or the service behind them: tell me what it needs to do, and let’s talk it through together.

Get in touch

Tell me about your project or question. I usually reply within a day.

0 / 2000

Your name, email and message are stored only so I can reply to you, and are not shared with anyone.