Announcement

Collapse
No announcement yet.

Silverlight Frontends

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Silverlight Frontends

    I may start up a front end developed with Silverlight as a learning exercise and to build something to do exactly what I want.

    I have developed a WinForm based GUI in C# and could transition most of the operational code to the new front end.

    Are there any Silverlight based front ends out there? Has anyone already tried this?
    2007 Mustang - RockCar Front End

  • #2
    I have a friend who may be undertaking such a project.
    PM me, and I'll put you two together.
    Have you looked in the FAQ yet?
    How about the Wiki?



    Under normal circumstances, a signature would go here.

    Comment


    • #3
      Just out of curiosity, what advantages would building your frontend in Silverlight provide over building it in WPF? Unless of course, you're thinking about running everything in a browser.You're not thinking about running it in a browser, are you?

      VegasGuy

      Comment


      • #4
        Originally posted by VegasGuy View Post
        Just out of curiosity, what advantages would building your frontend in Silverlight provide over building it in WPF? Unless of course, you're thinking about running everything in a browser.You're not thinking about running it in a browser, are you?

        VegasGuy
        Silverlight can run under Linux is a big advantage, I think. If you are developing cross-platform .NET applications, you are forced to use Mono. If you developed an app against .NET instead of Mono, you usually can't swap out one framework for another (even though that should happen, ideally) - Mono isn't 100% compatible. Silverlight, like Flash, should just work, wherever it is supported. The burden of cross-platform compatibility is on the framework developer (Microsoft and Adobe), not on the app developer.

        That being said, I think Microsoft isn't gonna keep Silverlight around for much longer and focus on HTML5 instead - Silverlight isn't exactly taking off right now.
        What about an HTML5 front-end? ChromeOS would be perfect for that!
        ------------------------------------------------------------
        My Project: All-in-one Double Din Unit

        Comment


        • #5
          I think the spoiler is hardware access. As a browser-based technology, Silverlight "lives" in a sandbox and like most browser-based technologies, has VERY limited access to the local computer resources. Something to do with those pesky viruses, trojans and whatnot, I imagine. I agree that a Silverlight solution (among others) could provide a nice cross-platform UI...but I think the underlying framework needed to make it all work will be a show-stopper.

          And just one more little tidbit. I was curious about this: So I have IE showing a blank white webpage with a single button on it. Press the button, and an alert pops up saying "Hello World". Although I "could" have done that in javascript, I used some code behind and c# to accomplish the task as I wanted it to be as close in concept and execution to a regular windows form app as i could get. Then i built a small windows form app that did exactly the same thing. One button, popup, "Hello World".

          Looking at the resource monitor, IE use about 180MB of memory to accomplish this particular task. Firefox..a couple of megs more.

          The windows app? 18mb. Roughly 10% of what IE/FireFox use. That's an awful LOT of overhead to carry around just to get to "hello world". Something to think about.

          VegasGuy

          Comment


          • #6
            A newb question but, can Silverlight run outside the sandbox if configured for out of browser?
            What WPF front ends are out there?

            An interesting approach would be using WCF for the app to make service calls for higher functions.
            Now that would be resource intensive. You would need to request status at least every second to get track time, etc.
            I've not built anything that chatty using services. The more I think about it the more it probably will not work the way I envision.

            At that point I guess you could use Silverlight, HTML 5, anything really as a front end GUI.

            So what would be cool (and a bit crazy) is to have the app talk wirelessly to a server in the car to perform actions get data etc.

            The first downside that comes to mind would be all data would need to be on the server or at least uploaded if not there.
            Video would be an issue as well.

            Oh well fun to think about anyway...

            Current Project
            I'm building my next car PC now and will be using a tablet with no wired connections to the car.
            All com will run wireless via a router and network USB. (That's the plan anyway)
            Using this solution I could just use any ol' front end (audio would be wireless via USB DAC)
            Last edited by Hessian; 08-10-2011, 08:58 AM.
            2007 Mustang - RockCar Front End

            Comment


            • #7
              Silverlight 4 allows COM interface communication, so you can have a DLL that controls the hardware on the low level - if Silverlight has to perform a low-level operation, that DLL has to be called via COM. However, it being COM, you sacrifice the cross-platform aspect.
              Why not use WPF? It's prettier than WinForms and is hardware accelerated (I think, right?). You also get all those nice transitions / animations for free.
              ------------------------------------------------------------
              My Project: All-in-one Double Din Unit

              Comment


              • #8
                Yea, the only thing cross-platform would be the GUI in that case. Ok, maybe time to abandon this idea...

                WPF sounds fun too. Do you know of any WPF based front ends?

                The only thing I really don't like about my current front end is that it is fixed at 800x600.
                2007 Mustang - RockCar Front End

                Comment


                • #9
                  Originally posted by Hessian View Post
                  Yea, the only thing cross-platform would be the GUI in that case. Ok, maybe time to abandon this idea...

                  WPF sounds fun too. Do you know of any WPF based front ends?

                  The only thing I really don't like about my current front end is that it is fixed at 800x600.
                  I don't know any frontends that use WPF. I'm pretty sure Centrafuse runs standard WinForms - hopefully they used good architectural patters (Model-View-Presenter?) so they can swap out the UI - the presenter - with a different, hardware accelerated UI. I doubt it though
                  ------------------------------------------------------------
                  My Project: All-in-one Double Din Unit

                  Comment

                  Working...
                  X