Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. WinJS

WinJS

Scheduled Pinned Locked Moved The Lounge
wpfcomquestiondiscussion
18 Posts 9 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Abhinav S

    Did anyone try using it? Opinions or ideas? Xaml still seems to be ok so why would one switch to WinJS? I can find some comparison charts on the internet but nothing beats experience.

    Mobile Apps - Sound Meter | Color Analyzer | SMBC | Football Doodles

    M Offline
    M Offline
    Marc Clifton
    wrote on last edited by
    #4

    Abhinav S wrote:

    why would one switch to WinJS?

    Windows Library for JavaScript Yeah, exactly. Why??? Marc

    Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

    L 1 Reply Last reply
    0
    • M Marc Clifton

      Abhinav S wrote:

      why would one switch to WinJS?

      Windows Library for JavaScript Yeah, exactly. Why??? Marc

      Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #5

      I have the impression it is kind of a Microsoft Bootstrap. Edit: (There will be probably an API war again)

      1 Reply Last reply
      0
      • A Abhinav S

        Did anyone try using it? Opinions or ideas? Xaml still seems to be ok so why would one switch to WinJS? I can find some comparison charts on the internet but nothing beats experience.

        Mobile Apps - Sound Meter | Color Analyzer | SMBC | Football Doodles

        P Offline
        P Offline
        Pete OHanlon
        wrote on last edited by
        #6

        You're looking at it from the wrong angle. WinJS was never intended to pull people from the XAML stack; rather, it was introduced to try to persuade JavaScript/web developers to develop apps that would run on the confusingly named WinRT/Metro/insert name here platform. If you are a web developer, the theory is that it makes more sense for you to target WinJS than it does learning C#/XAML (for instance).

        A 1 Reply Last reply
        0
        • OriginalGriffO OriginalGriff

          I know what you mean - I looked at moving from WinForms to WPF a couple of years ago, but it looked and felt very "unfinished", a work in progress as it were. And the VS support was frankly very poor, even in VS2010. So I figured either the tools would evolve into a profession package or MS would drop it as they do with many good ideas. Looks like they have just sat on it and done nothing so far.

          Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #7

          In the meantime, WinForms (or rather, the common controls) is still one of the most tested and tried user-control set available. They're intuitive, well-known, tested to death and well documented. It is available on every platform that runs Mono, which is quite a lot. If I am to change a winning formula, there'd better be a good argument or incentive to do so.

          Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

          J B 2 Replies Last reply
          0
          • P Pete OHanlon

            You're looking at it from the wrong angle. WinJS was never intended to pull people from the XAML stack; rather, it was introduced to try to persuade JavaScript/web developers to develop apps that would run on the confusingly named WinRT/Metro/insert name here platform. If you are a web developer, the theory is that it makes more sense for you to target WinJS than it does learning C#/XAML (for instance).

            A Offline
            A Offline
            Abhinav S
            wrote on last edited by
            #8

            Documentation on WinJS is limited and at first instance it seems rather cumbersome to use. Imagine they have a namespace concept in JavaScript (sort of neither here nor there)! Any experience working on WinJS?

            Mobile Apps - Sound Meter | Color Analyzer | SMBC | Football Doodles

            P 1 Reply Last reply
            0
            • L Lost User

              In the meantime, WinForms (or rather, the common controls) is still one of the most tested and tried user-control set available. They're intuitive, well-known, tested to death and well documented. It is available on every platform that runs Mono, which is quite a lot. If I am to change a winning formula, there'd better be a good argument or incentive to do so.

              Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

              J Offline
              J Offline
              JimmyRopes
              wrote on last edited by
              #9

              Eddy Vluggen wrote:

              It is available on every platform that runs Mono, which is quite a lot.

              Having mono sounds like a disease. :-D

              Once you lose your pride the rest is easy. In the end, only three things matter: how much you loved, how gently you lived, and how gracefully you let go of things not meant for you. – Buddha

              1 Reply Last reply
              0
              • A Abhinav S

                Documentation on WinJS is limited and at first instance it seems rather cumbersome to use. Imagine they have a namespace concept in JavaScript (sort of neither here nor there)! Any experience working on WinJS?

                Mobile Apps - Sound Meter | Color Analyzer | SMBC | Football Doodles

                P Offline
                P Offline
                Pete OHanlon
                wrote on last edited by
                #10

                I did evaluate it when it first came out - there was nothing that would make me switch from XAML, but as I have been using XAML a long time, I'm not really part of the target profile.

                1 Reply Last reply
                0
                • A Abhinav S

                  Did anyone try using it? Opinions or ideas? Xaml still seems to be ok so why would one switch to WinJS? I can find some comparison charts on the internet but nothing beats experience.

                  Mobile Apps - Sound Meter | Color Analyzer | SMBC | Football Doodles

                  N Offline
                  N Offline
                  Nathan Minier
                  wrote on last edited by
                  #11

                  I've poked at it a little bit, and it seems more built to interact with a stack back end template than with a actual developer. Just the navigation model is oblique and, as mentioned previously, cumbersome. There's also the fact that several of the hooks in it are for Windows API and not for a browser, which makes its usefulness as web application UX component limited. I can't recommend it.

                  1 Reply Last reply
                  0
                  • A Abhinav S

                    Did anyone try using it? Opinions or ideas? Xaml still seems to be ok so why would one switch to WinJS? I can find some comparison charts on the internet but nothing beats experience.

                    Mobile Apps - Sound Meter | Color Analyzer | SMBC | Football Doodles

                    D Offline
                    D Offline
                    David Purkiss
                    wrote on last edited by
                    #12

                    I've looked into using WinJS as a control suite/UI framework for Web Apps, as the most recent version, 4.0, can be run straight out of the browser. In this regard, it looks like a very good competitor. However, for writing Windows Store Apps, if targeting other platforms is not a concern then XAML wins. XAML/C# is far more elegant than HTML/JS. As for WinForms, XAML was definitely a step in the right direction and then came along the whole web craze which kind of killed it. Web frameworks are only starting to catch up to the abilities of XAML (check out http://aurelia.io).

                    1 Reply Last reply
                    0
                    • L Lost User

                      In the meantime, WinForms (or rather, the common controls) is still one of the most tested and tried user-control set available. They're intuitive, well-known, tested to death and well documented. It is available on every platform that runs Mono, which is quite a lot. If I am to change a winning formula, there'd better be a good argument or incentive to do so.

                      Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

                      B Offline
                      B Offline
                      Basketcase Software
                      wrote on last edited by
                      #13

                      It's not WPF that attracts me to the methodology, but XAML. The ability to see immediate results for my UI design is mission critical. The code-compile-test-debug-compile-test cycle is a major slowdown. But XAML does have that unfinished feel. Things you would think would be part of the markup system, aren't, it omits standard elements, etc. An example of the last one is the lack of 3D primitives (sphere, torus). And the documentation is quite poor. And of course the solid entanglement with the Microsoft platform that currently exists is what stopped the Mono project from trying to import things over. But given a choice of WinForms vs. XAML? XAML/WPF wins every time (at least on Windows platforms).

                      L 1 Reply Last reply
                      0
                      • B Basketcase Software

                        It's not WPF that attracts me to the methodology, but XAML. The ability to see immediate results for my UI design is mission critical. The code-compile-test-debug-compile-test cycle is a major slowdown. But XAML does have that unfinished feel. Things you would think would be part of the markup system, aren't, it omits standard elements, etc. An example of the last one is the lack of 3D primitives (sphere, torus). And the documentation is quite poor. And of course the solid entanglement with the Microsoft platform that currently exists is what stopped the Mono project from trying to import things over. But given a choice of WinForms vs. XAML? XAML/WPF wins every time (at least on Windows platforms).

                        L Offline
                        L Offline
                        Lost User
                        wrote on last edited by
                        #14

                        Basketcase Software wrote:

                        The ability to see immediate results for my UI design is mission critical. The code-compile-test-debug-compile-test cycle is a major slowdown.

                        So, you can't design a WinForm and see the results without compiling/testing/debugging? How is it mission-critical to see EACH instance of a textbox or button you create?

                        Basketcase Software wrote:

                        But XAML does have that unfinished feel.

                        It is not a feeling; compare it to WinForms and it is immature. The XAML-designer ate roughly 20Gb of my harddisk before crashing the IDE. You run into all kinds of crap that has already been solved before.

                        Basketcase Software wrote:

                        But given a choice of WinForms vs. XAML? XAML/WPF wins every time (at least on Windows platforms).

                        No, it doesn't. Some people/companies/governments prefer recognizable, consistent UI's, and will not pay to have some hardware-accelerated animations and gradients. They'll pay to not have those.

                        Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

                        B 1 Reply Last reply
                        0
                        • L Lost User

                          Basketcase Software wrote:

                          The ability to see immediate results for my UI design is mission critical. The code-compile-test-debug-compile-test cycle is a major slowdown.

                          So, you can't design a WinForm and see the results without compiling/testing/debugging? How is it mission-critical to see EACH instance of a textbox or button you create?

                          Basketcase Software wrote:

                          But XAML does have that unfinished feel.

                          It is not a feeling; compare it to WinForms and it is immature. The XAML-designer ate roughly 20Gb of my harddisk before crashing the IDE. You run into all kinds of crap that has already been solved before.

                          Basketcase Software wrote:

                          But given a choice of WinForms vs. XAML? XAML/WPF wins every time (at least on Windows platforms).

                          No, it doesn't. Some people/companies/governments prefer recognizable, consistent UI's, and will not pay to have some hardware-accelerated animations and gradients. They'll pay to not have those.

                          Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

                          B Offline
                          B Offline
                          Basketcase Software
                          wrote on last edited by
                          #15

                          Eddy Vluggen wrote:

                          So, you can't design a WinForm and see the results without compiling/testing/debugging? How is it mission-critical to see EACH instance of a textbox or button you create?

                          Because it's not just the textbox or button, but its appearance, location, etc. I'm a game UI designer and the aesthetics often matter as much as the function. If you want "plain vanilla" appearance and function then the usual cycle is shortened as there isn't much new - but you aren't being very creative.

                          Eddy Vluggen wrote:

                          It is not a feeling; compare it to WinForms and it is immature. The XAML-designer ate roughly 20Gb of my harddisk before crashing the IDE. You run into all kinds of crap that has already been solved before.

                          Agreed. That's the bad thing about Microsoft. They start off with some wonderful technologies that look promising and then just let them die. And of course typically never let them completely mature in the first place. WinForms has had a LOT of developer feedback. For the longest time it was the only game in town and it's what everyone got used to. XAML/WPF comes along and there has been resistance to learning a new paradigm (as if that's a surprise!) even when some things have really needed to be overhauled. A case in point. Even with XAML/WPF I'm presently still stuck with the the standard file load/save/print dialogues - Microsoft (last I knew) never developed versions for the framework. The code is ancient and doesn't seem to grasp asynchronous operations very well. The result? I've seen some weird hangs just saving several image files to a USB drive. ...What on earth were you doing that used 20GB? Hell, I've run XAML on an old XP machine with VS 2010 and a HDD of less the 20GB in size. Never had the IDE crash. I had it give up on some malformed XAML, but never had to go as far what's happened to you.

                          Eddy Vluggen wrote:

                          No, it doesn't.

                          For me it does, which is what I meant.

                          Eddy Vluggen wrote:

                          Some people/companies/governments prefer recognizable, consistent UI's, and will not pay to have some hardware-accelerated animations and gradients. They'll pay to not have those.

                          Yep, those are the people who have stubbornly stuck to Internet Explorer 6, Windows XP, etc. If they are willing to pay for it, I'll give it to them. I don't need animations or gradie

                          L 1 Reply Last reply
                          0
                          • B Basketcase Software

                            Eddy Vluggen wrote:

                            So, you can't design a WinForm and see the results without compiling/testing/debugging? How is it mission-critical to see EACH instance of a textbox or button you create?

                            Because it's not just the textbox or button, but its appearance, location, etc. I'm a game UI designer and the aesthetics often matter as much as the function. If you want "plain vanilla" appearance and function then the usual cycle is shortened as there isn't much new - but you aren't being very creative.

                            Eddy Vluggen wrote:

                            It is not a feeling; compare it to WinForms and it is immature. The XAML-designer ate roughly 20Gb of my harddisk before crashing the IDE. You run into all kinds of crap that has already been solved before.

                            Agreed. That's the bad thing about Microsoft. They start off with some wonderful technologies that look promising and then just let them die. And of course typically never let them completely mature in the first place. WinForms has had a LOT of developer feedback. For the longest time it was the only game in town and it's what everyone got used to. XAML/WPF comes along and there has been resistance to learning a new paradigm (as if that's a surprise!) even when some things have really needed to be overhauled. A case in point. Even with XAML/WPF I'm presently still stuck with the the standard file load/save/print dialogues - Microsoft (last I knew) never developed versions for the framework. The code is ancient and doesn't seem to grasp asynchronous operations very well. The result? I've seen some weird hangs just saving several image files to a USB drive. ...What on earth were you doing that used 20GB? Hell, I've run XAML on an old XP machine with VS 2010 and a HDD of less the 20GB in size. Never had the IDE crash. I had it give up on some malformed XAML, but never had to go as far what's happened to you.

                            Eddy Vluggen wrote:

                            No, it doesn't.

                            For me it does, which is what I meant.

                            Eddy Vluggen wrote:

                            Some people/companies/governments prefer recognizable, consistent UI's, and will not pay to have some hardware-accelerated animations and gradients. They'll pay to not have those.

                            Yep, those are the people who have stubbornly stuck to Internet Explorer 6, Windows XP, etc. If they are willing to pay for it, I'll give it to them. I don't need animations or gradie

                            L Offline
                            L Offline
                            Lost User
                            wrote on last edited by
                            #16

                            For textboxes and buttons in a WinForm, the location would be rather predictable; games are a class in its own; it will be judged mostly by its graphics, something which would not be my primary concern for, say, Visual Studio or a data-entry application :)

                            Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

                            B 1 Reply Last reply
                            0
                            • L Lost User

                              For textboxes and buttons in a WinForm, the location would be rather predictable; games are a class in its own; it will be judged mostly by its graphics, something which would not be my primary concern for, say, Visual Studio or a data-entry application :)

                              Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

                              B Offline
                              B Offline
                              Basketcase Software
                              wrote on last edited by
                              #17

                              WPF has that nice "Device Independent Pixel" feature that WinForms lack, so location isn't as readily predictable as a developer would like (this was brought elsewhere in these forums: What is the big deal with WPF[^]) Not sure why you included VS in your short list, but a data entry application is somewhere we would agree. Check out that article link. Found it after my last posting in this thread.

                              L 1 Reply Last reply
                              0
                              • B Basketcase Software

                                WPF has that nice "Device Independent Pixel" feature that WinForms lack, so location isn't as readily predictable as a developer would like (this was brought elsewhere in these forums: What is the big deal with WPF[^]) Not sure why you included VS in your short list, but a data entry application is somewhere we would agree. Check out that article link. Found it after my last posting in this thread.

                                L Offline
                                L Offline
                                Lost User
                                wrote on last edited by
                                #18

                                Basketcase Software wrote:

                                WPF has that nice "Device Independent Pixel" feature that WinForms lack

                                I never missed it, but it IS fun to read the history of scaling and how we try to negate different resolutions and dimensions.

                                Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

                                1 Reply Last reply
                                0
                                Reply
                                • Reply as topic
                                Log in to reply
                                • Oldest to Newest
                                • Newest to Oldest
                                • Most Votes


                                • Login

                                • Don't have an account? Register

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • Categories
                                • Recent
                                • Tags
                                • Popular
                                • World
                                • Users
                                • Groups