Click here to Skip to main content
15,867,834 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralWinforms is dead on Linux. What else do you recommend? Pin
Behzad Sedighzadeh1-Jan-23 20:18
Behzad Sedighzadeh1-Jan-23 20:18 
GeneralRe: Winforms is dead on Linux. What else do you recommend? Pin
OriginalGriff1-Jan-23 20:42
mveOriginalGriff1-Jan-23 20:42 
GeneralRe: Winforms is dead on Linux. What else do you recommend? Pin
abmv1-Jan-23 22:50
professionalabmv1-Jan-23 22:50 
GeneralRe: Winforms is dead on Linux. What else do you recommend? Pin
Graeme_Grant2-Jan-23 4:57
mvaGraeme_Grant2-Jan-23 4:57 
GeneralRe: Winforms is dead on Linux. What else do you recommend? Pin
BillWoodruff8-Jan-23 20:50
professionalBillWoodruff8-Jan-23 20:50 
GeneralRe: Winforms is dead on Linux. What else do you recommend? Pin
Graeme_Grant8-Jan-23 21:34
mvaGraeme_Grant8-Jan-23 21:34 
GeneralRe: Winforms is dead on Linux. What else do you recommend? Pin
BillWoodruff9-Jan-23 0:20
professionalBillWoodruff9-Jan-23 0:20 
GeneralRe: Winforms is dead on Linux. What else do you recommend? Pin
Graeme_Grant11-Mar-23 14:32
mvaGraeme_Grant11-Mar-23 14:32 
BillWoodruff wrote:
I may not live long enough to see that.
Are you still alive and kicking old friend?

I have an article that I am finishing up that will cover WinForms, Wpf, and Avalonia. Avalonia was never intended, however, I remembered our conversation, so I added it just for you and for my own curiosity. I have common code for all 3 project types as well as specific to the project type, specifically Control Libraries. Surprisingly, there are very few differences between WPF & Avalonia. A couple of annoyances but it is still early days for Avalonia. I am very impressed. NOTE: Both are Dot Net Core built.

The Avalonia Project I have compiled and run on both Windows and MacOS. I have an animated GIF of the MacOS version for those who don't have MacOS. When I add a GUI Linux version to my WSL, I'll compile and run it there too and post an update with a GIF for that too...

Here is the XAML for WPF:
XML
<Window x:Class="WpfLoggingNoDI.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

        mc:Ignorable="d"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"

        xmlns:control="clr-namespace:LogViewer.Wpf;assembly=LogViewer.Wpf"

        Title="C# WPF MINIMAL | LogViewer Control Example - Dot Net 7.0"
        WindowStartupLocation="CenterScreen" Height="634" Width="600">

    <control:LogViewerControl x:Name="LogViewerControl" />

</Window>

And here for Avalonia:
XML
<Window x:Class="AvaloniaLoggingNoDI.Views.MainWindow"
        xmlns="https://github.com/avaloniaui"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

        mc:Ignorable="d"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        
        xmlns:control="clr-namespace:LogViewer.Avalonia;assembly=LogViewer.Avalonia"

        Title="C# AVALONIA MINIMAL | LogViewer Control Example - Dot Net 7.0"
        Icon="/Assets/avalonia-logo.ico"
        WindowStartupLocation="CenterScreen" Height="634" Width="600">

    <control:LogViewerControl x:Name="LogViewerControl" />

</Window>

Spot the difference! 😛

The article and supporting code will give you a chance to compare all 3.

As for UNO, I will get to it, same for Mobile versions. Life is very busy right now...

Graeme


"I fear not the man who has practiced ten thousand kicks one time, but I fear the man that has practiced one kick ten thousand times!" - Bruce Lee


modified 11-Mar-23 20:47pm.

GeneralRe: Winforms is dead on Linux. What else do you recommend? Pin
BillWoodruff20-May-23 3:52
professionalBillWoodruff20-May-23 3:52 
GeneralRe: Winforms is dead on Linux. What else do you recommend? Pin
jschell2-Jan-23 13:36
jschell2-Jan-23 13:36 
GeneralRe: Winforms is dead on Linux. What else do you recommend? Pin
jmaida2-Jan-23 14:25
jmaida2-Jan-23 14:25 
PraiseWoo hoo! I got free IP from my employer, and i'm gonna share Pin
honey the codewitch1-Jan-23 20:11
mvahoney the codewitch1-Jan-23 20:11 
GeneralRe: Woo hoo! I got free IP from my employer, and i'm gonna share Pin
BillWoodruff2-Jan-23 2:05
professionalBillWoodruff2-Jan-23 2:05 
GeneralRe: Woo hoo! I got free IP from my employer, and i'm gonna share Pin
honey the codewitch2-Jan-23 3:08
mvahoney the codewitch2-Jan-23 3:08 
GeneralRe: Woo hoo! I got free IP from my employer, and i'm gonna share Pin
BillWoodruff2-Jan-23 3:37
professionalBillWoodruff2-Jan-23 3:37 
GeneralRe: Woo hoo! I got free IP from my employer, and i'm gonna share Pin
honey the codewitch2-Jan-23 3:38
mvahoney the codewitch2-Jan-23 3:38 
GeneralRe: Woo hoo! I got free IP from my employer, and i'm gonna share Pin
BillWoodruff2-Jan-23 3:56
professionalBillWoodruff2-Jan-23 3:56 
GeneralRe: Woo hoo! I got free IP from my employer, and i'm gonna share Pin
honey the codewitch2-Jan-23 4:02
mvahoney the codewitch2-Jan-23 4:02 
JokeRe: Woo hoo! I got free IP from my employer, and i'm gonna share Pin
Randor 2-Jan-23 9:15
professional Randor 2-Jan-23 9:15 
RantRe: Woo hoo! I got free IP from my employer, and i'm gonna share Pin
Randor 2-Jan-23 9:07
professional Randor 2-Jan-23 9:07 
GeneralRe: Woo hoo! I got free IP from my employer, and i'm gonna share Pin
fgs19632-Jan-23 9:54
fgs19632-Jan-23 9:54 
JokeRe: Woo hoo! I got free IP from my employer, and i'm gonna share Pin
Randor 2-Jan-23 10:02
professional Randor 2-Jan-23 10:02 
GeneralRe: Woo hoo! I got free IP from my employer, and i'm gonna share Pin
BillWoodruff3-Jan-23 1:48
professionalBillWoodruff3-Jan-23 1:48 
AnswerRe: Woo hoo! I got free IP from my employer, and i'm gonna share Pin
Randor 5-Jan-23 15:21
professional Randor 5-Jan-23 15:21 
GeneralRe: Woo hoo! I got free IP from my employer, and i'm gonna share Pin
BillWoodruff5-Jan-23 16:07
professionalBillWoodruff5-Jan-23 16:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.