7

Does anyone know of a library I can design UI in HTML/CSS/JS for a C# app?

I need to remake my bot framework, but winforms is just so old.

Comments
  • 7
    Why not WPF?
    Using XAML (similar to XML), but still way better than the old WinForms.
  • 2
    @JS96 Because my app defies MVVM, MVC or any other pattern due to fact there are no resources to manage.
  • 0
    @HelloUglyWorld
    WPF is too hard for begineers.
    Maybe Razor? ASP.NET?
    Or you can make Electron/React apps using Bridge.net
    https://bridge.net
  • 1
    @CozyPlanes Beginners?

    Why does everyone imply I'm a begineer because I don't want to use MVVM where it wouldn't be effective?

    I have over 4 years of professional C# experience, what is going on?
  • 1
    I sm sure you can write spageti code with WPF too so why you dont give it shot?
  • 0
    @Kekica That's exactly the reason I don't want to write it in WPF - because it'll come out as spaghetti code.
  • 1
    I was joking but ok, what is your bot framework written in now?
  • 0
  • 0
    Why not make your bot framework an api then give it a front end to call it with. You can have your app start the api and open a browser from on the start page
  • 3
    Really, if it is a windows only application there is NO justification to not use WPF. Xaml is great!

    And btw, if you did not use Xaml until now you are per definition a beginner in this regards! Xaml is not C#!
  • 0
    @gruff It's a desktop app, C#, .NET.
  • 0
    @geaz As I said, 3 times already.
    I've used WPF - a lot.
    I know WPF, very well.
    That's why - I don't want to use it for this project, because it would force MVVM pattern and it would be terribly ineffective in this case.
  • 3
    @HelloUglyWorld I can't see a single comment where you mentioned that you know WPF ;)

    Furthermore I don't understand how MVVM would be inefficent. What do you want to do within a HTML/JS/CSS solution? Writing spagethi? Most of the web UI frameworks are using MVVM for the UI, too.
  • 0
    @HelloUglyWorld a bit of overkill but maybe use unity and make your fancy modern ui via its ui tools?
  • 0
    Use the webbrowser widget and use HTML/CSS/JS there :^)
  • 0
    @geaz I enjoyed using CefSharp for frontend and C# for backend, hence why I thought there definitely has to be an up-to-date library that I could use to separate frontend and backend by language.
  • 0
    @HelloUglyWorld You can still host an api with your app
  • 1
    @Midnigh-shcode Yeah, a bit of an overkill.
  • 0
    @HelloUglyWorld i meant wpf is hard to learn for those who never learned wpf before

    Maybe use https://retyped.com ?
Add Comment