Welcome to Karthi's blah blah... After switching from product development to the industrial automation field, I was expecting to work with WPF. However, I was surprised to find that most developers here build their UIs using WinForms and proudly say, "I do frontend too!" Meanwhile, I'm left wondering what happened to CSS, Flexbox, and Grid.

Well, let's explore my frustrations, surprises, and experiences in this blog!

Bro I do Frontend Too!

I started a conversation with a colleague from the neighbouring team and asked him about their project architecture. He explained how their frontend and backend were structured, On seeing their UI it was somewhat like a 80's film picture like black and white and the buttons alone are coloured, I asked whether it is flex or grid, he asked me "What is flex?", at that moment my world stops and everything around me felt as though time had stopped

Every frontend developer will start their career with a basic three lines mantra

.container { display: flex; align-items: center; justify-content: center; } 

I'm surprised to see that UI without these!!!

Just WinForms things

After my office work is wrapped up I came home and started to explore about WinForms, I watched a video in which I saw a toolbox, and they were just selecting the components and they were just drag and dropping, in there there exists options to change the colour, layout, size.

Like the above picture , a button is created and touched it up with some colors

Just CSS things

As I had experience in Angular, I know about .css and .scss. For me, designing a UI usually starts with HTML structure, followed by styling. HTML provides the basic structure or skeleton of a component, while CSS brings it to life by defining its appearance, layout, and visual consistency. Whether it's adjusting alignment, padding, border radius, colours, or adding animations, CSS gives me the flexibility to control every visual aspect of a component.

For me, styling with CSS is like preparing a good biryani - every detail, every ingredient, and every little adjustment contributes to the final outcome. It's not just about making a component functional; it's about making it visually appealing and well-presented.

A simple layout might look something like this:

<div class="container"> <button class="start-btn">Start</button> <button class="stop-btn">Stop</button> </div> 

And then comes the SCSS:

.container { display: flex; justify-content: space-between; align-items: center; gap: 20px; } .start-btn { background-color: green; padding: 10px 20px; } .stop-btn { background-color: red; padding: 10px 20px; } 

At least until someone asks you to change one small thing. Then you open the browser DevTools, inspect the element, check the computed styles, trace three different class names, and discover that some random parent component is overriding your CSS. And the debugging journey begins.

Frontend developers don't just write CSS. We negotiate with CSS.

Drag → Drop → Done

I genuinely wonder about WinForms developers. They seem to have a god-gifted ability to create an entire UI just by dragging and dropping components. Watching my friend create a complete view in less than ten minutes left me completely stunned. I was still processing what had happened when he turned around, smiled, and said, "It's done!"

Honestly, I was jealous!

But I also understood how this approach makes development easier and more productive. In the industrial automation field, the primary focus is on functionality and productivity rather than making the UI visually attractive. After all, an HMI is meant to provide clear and efficient interaction with the machine, not win a UI design competition.

In product development, we often ask, "Does it look good?" In automation, the first question is, "Does it work efficiently?"

Width of WPF

In my current project, I'm working with WPF, and honestly, I finally got a chance to breathe! The moment I saw XAML, .xaml.cs, properties, and the familiar development structure, I felt like I had found a small piece of my frontend world in the automation domain.

Unlike WinForms, WPF gives me more flexibility to design components. It feels less like arranging controls on a screen and more like creating something from scratch. For someone coming from Angular, it was a refreshing experience.

Let's look at two familiar layout concepts:

  1. Grid
  2. Flexbox

1. Grid – The CSS Grid Cousin

In CSS, we use Grid to divide a layout into rows and columns. WPF has its own Grid, and the syntax feels surprisingly familiar.

<Grid> <Grid.RowDefinitions> <RowDefinition /> <RowDefinition /> </Grid.RowDefinitions> </Grid> 

When I first saw this, I was like, "Okay, finally, something I don't need to Google!"

2. StackPanel – The Flexbox Relative

In Angular, we use Flexbox to arrange components horizontally or vertically. In WPF, StackPanel gives us a similar experience.

<StackPanel Orientation="Horizontal"> <Button Content="Start" /> <Button Content="Stop" /> </StackPanel> 

I almost wanted to ask my colleague, "See, this is what I was looking for! Why didn't you show me this earlier?" Of course, StackPanel isn't a complete replacement for Flexbox, but it gives me that familiar feeling of arranging components without having to negotiate with CSS. For the first time since entering the automation domain, I wasn't looking at a UI and wondering where my CSS had gone.

The Struggle of Being a Frontend Developer in Automation

Coming from product development, where UI design, user experience, responsiveness, and visual consistency are important parts of development, moving into industrial automation has been quite an adjustment. Here, the priority is functionality, machine operations, reliability, and productivity. Nobody seems particularly concerned about whether a button has the perfect border radius or whether the layout looks visually appealing. As a frontend developer, I naturally want to make things look better, but sometimes I have to remind myself that this is an industrial HMI, not a product landing page. Apparently, making the machine work efficiently matters more than making the interface look beautiful!

WinForms Developers vs Real Frontend Developers?

Sometimes, I feel like WinForms developers and frontend developers belong to two completely different worlds, even though we're technically doing the same job. They can build an entire UI by dragging and dropping components, while I'm used to writing HTML, styling with CSS, adjusting layouts with Flexbox and Grid, and spending time getting every little detail right. When I see someone finish a view in ten minutes using WinForms, I genuinely wonder whether I've been making my life unnecessarily complicated all these years. No offence to WinForms developers, but calling both approaches the same frontend experience is something I'll need more time to accept!

Conclusion – Different Worlds, Same Development

At the end of the day, I realised that every technology has its own purpose and advantages. WinForms makes UI development quicker, WPF gives more flexibility and control, and web technologies offer greater freedom in designing modern interfaces. My journey from Angular to industrial automation has definitely challenged the way I think about frontend development. I still miss CSS, Flexbox, and those little UI design experiments, but I'm also enjoying learning something completely different. Maybe that's what development is all about: getting comfortable with being uncomfortable and learning to adapt.

Though, honestly, I still believe every UI deserves a little CSS love!