Peyman's Avatar

Peyman

@peymanr34.bsky.social

Friendly neighborhood software developer. https://github.com/peymanr34

24 Followers  |  80 Following  |  44 Posts  |  Joined: 30.08.2023  |  1.4434

Latest posts by peymanr34.bsky.social on Bluesky

Preview
GH4720: Use non-boolean self-contained arguments for dotnet publish. by peymanr34 Β· Pull Request #4722 Β· cake-build/cake This PR replaces the boolean self-contained arguments with their non-boolean counterparts: Value Before After SelfContained = true --self-contained true --self-contained SelfContained = fa...

I did a thing:

github.com/cake-build/c...

09.02.2026 23:35 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

WinUI 3 in Windows 10 is really broken... The placeholder text placement is wrong and there is something wrong with stack panel that causes the text to not lineup properly. #WinUI

09.12.2025 11:35 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Add support for msi product info. Β· peymanr34/installer-studio@3d48163

It took me a long time to figure out how to get the product info from a Windows Installer (.msi) file but I learnt a lot about native stuff which absolutely worth it. #dotnet #winui

github.com/peymanr34/in...

30.11.2025 19:24 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

This probably works:

Get-AppxPackage | Where-Object -Property IsDevelopmentMode -eq True | Remove-AppxPackage -Confirm

21.11.2025 04:43 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
DataGridView column border differences between .NET Framework and .NET 10 Β· Issue #14052 Β· dotnet/winforms .NET version .NET 10.0.100 Did it work in .NET Framework? Yes Did it work in any of the earlier releases of .NET Core or .NET 5+? Works as expected in .NET 6.0 Issue description There are some bord...

Maybe I've stared at it too much but DataGridView (In .NET 7.0+) has extra contrast in the border lines which I find very distracting.

I haven't found a easy workaround for this yet.

Please upvote if you agree with me. #dotnet #winforms

github.com/dotnet/winfo...

18.11.2025 16:08 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

This is a first... Maybe I should stop P/Invoking stuff since I really don't know what I'm doing.

12.11.2025 19:21 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

I really hate showing dialogs in #WinUI

06.11.2025 18:10 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

I truly hate this feature, but it's nice to have the option for people who want it.

27.10.2025 17:47 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

I was working on replacing FolderBrowserDialog with FolderPicker in my WinForms app (.NET Framework 4.8) but not having SelectedPath property was a deal breaker for me.

I guess I have to wait until I migrate to .NET 10 or later which already has the *better* FolderBrowserDialog. #dotnet

22.10.2025 23:22 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Thanks to @dotmorten.xaml.dev my app is now complete with a proper tray icon. #dotnet #winuiex

18.10.2025 16:16 β€” πŸ‘ 7    πŸ” 2    πŸ’¬ 0    πŸ“Œ 0
Post image

If you want your WinUI app to launch to the tray, and optionally add a context menu to the tray, it is now SUPER simple with WinUIEx!

11.10.2025 00:17 β€” πŸ‘ 13    πŸ” 6    πŸ’¬ 2    πŸ“Œ 0

Awesome! thanks very much.

09.10.2025 17:33 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
GitHub - peymanr34/WinUIEx at tray-only-sample WinUI Extensions. Contribute to peymanr34/WinUIEx development by creating an account on GitHub.

Actually that was the first thing I did, but when the Window is not WindowEx it still throws an exception.

This sample doesn't work:
github.com/peymanr34/Wi...

And as soon as I change the Window to inherit from WindowEx, works as expected:

github.com/peymanr34/Wi...

09.10.2025 12:47 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0

The MainWindow wasn't a WindowEx so it didn't have an icon.

It would be nice if I could set the icon myself or the WindowManager could somehow get it from the app itself.

Otherwise works like a charm!

09.10.2025 01:48 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0
Post image

Absolutely! since I don't already use WinUIEx I need to figure out why the icon didn't show up first.

09.10.2025 01:32 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Yes please!

09.10.2025 01:01 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

The worst part is when you don't know which email you signed up with and when you enter the wrong email it creates a new account.

05.10.2025 18:15 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Collection<T> and ObservableCollection<T> do not support ranges Β· Issue #18087 Β· dotnet/runtime Update 10/04/2018 @ianhays and I discussed this and we agree to add this 6 APIs for now: // Adds a range to the end of the collection. // Raises CollectionChanged (NotifyCollectionChangedAction.Add...

9 years of not having ObservableCollection.AddRange() #dotnet

github.com/dotnet/runti...

24.09.2025 22:17 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Save a File with a Windows App SDK Picker - Windows apps Learn how to use FileSavePicker in Windows App SDK to let users specify the name and location where they want your WinUI app to save a file. Implement file save functionality with code examples.

Save a file with the new Windows App SDK picker in WinUI | Microsoft Learn

buff.ly/PytenbY

#windowsdev #windowsappsdk #wasdk #winui #dotnet #csharp #windev

12.09.2025 19:01 β€” πŸ‘ 3    πŸ” 3    πŸ’¬ 0    πŸ“Œ 0
Preview
Trusted Publishing Trusted Publishing on nuget.org

nuget trusted publishing from GitHub actions is rolling out.

No more api keys needed to publish from your release process.

learn.microsoft.com/en-us/nuget/...

10.09.2025 22:30 β€” πŸ‘ 55    πŸ” 19    πŸ’¬ 6    πŸ“Œ 1
Post image

I can't believe System[.]Text[.]Json can't deserialize these to DateTime on its own! #dotnet

18.07.2025 00:26 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

KB5001716 is basically a malware at this point, no matter how may times you uninstall it, it will come back.

30.06.2025 02:20 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Write to a temp file then move?

03.06.2025 17:17 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Voted, thanks.

03.06.2025 17:16 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

So... WinUI doesn't have SharedSizeGroup.
<sigh>

01.06.2025 20:49 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Having been frustrated with many blogging systems, I finally rolled out my own custom (markdown) blog. I'm slowly migrating the posts over.

30.05.2025 11:38 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
GitHub - betwixt-labs/dot-env-generator: A source generator for C# that turns .env files into runtime constants. A source generator for C# that turns .env files into runtime constants. - GitHub - betwixt-labs/dot-env-generator: A source generator for C# that turns .env files into runtime constants.

Do you mean like this?
github.com/betwixt-labs...

28.05.2025 19:17 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I'm surprised no one said VR

25.05.2025 20:48 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

Nice! If you make the following change to your WinUI app, replacing the meta pacakge with just the WinUI and Packages package, you'll significantly reduce the size of your WinUI app!

19.05.2025 17:42 β€” πŸ‘ 5    πŸ” 3    πŸ’¬ 1    πŸ“Œ 0

What!! I've been using Ctrl, + for this :(

21.04.2025 13:36 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

@peymanr34 is following 19 prominent accounts