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. WPF - Why was it formed?

WPF - Why was it formed?

Scheduled Pinned Locked Moved The Lounge
csharpquestionasp-netwpfwinforms
47 Posts 31 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.
  • P preaa

    Hi, Having worked with Various Micrsoft programming languages for many years, now I am dabbling into WPF for a project. I don't know a single bit about it, but as I started to read the manual, I got confused as to what is the real purpose of WPF? Why would you put your UI in painful XML tags when you can use Windows forms? If it were to separate UI completely with the behaviour, aren't the developers doing that already with clean layering architecture with the forms based applications? and why somebody would like to load a desktop application on a browser? If its a browser based application, it should be developed in ASP.NET. Thanks,

    Kornfeld Eliyahu PeterK Offline
    Kornfeld Eliyahu PeterK Offline
    Kornfeld Eliyahu Peter
    wrote on last edited by
    #7

    The original idea was to create a single design platform for web and desktop (Silverlight - WPF - WinRT) - it does not succeeded too much...

    I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)

    "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

    P N 2 Replies Last reply
    0
    • P preaa

      Hi, Having worked with Various Micrsoft programming languages for many years, now I am dabbling into WPF for a project. I don't know a single bit about it, but as I started to read the manual, I got confused as to what is the real purpose of WPF? Why would you put your UI in painful XML tags when you can use Windows forms? If it were to separate UI completely with the behaviour, aren't the developers doing that already with clean layering architecture with the forms based applications? and why somebody would like to load a desktop application on a browser? If its a browser based application, it should be developed in ASP.NET. Thanks,

      D Offline
      D Offline
      dan sh
      wrote on last edited by
      #8

      Apart from rich UI that works on dpi based location and sizing, it was made to make my life hell.

      1 Reply Last reply
      0
      • P preaa

        Hi, Having worked with Various Micrsoft programming languages for many years, now I am dabbling into WPF for a project. I don't know a single bit about it, but as I started to read the manual, I got confused as to what is the real purpose of WPF? Why would you put your UI in painful XML tags when you can use Windows forms? If it were to separate UI completely with the behaviour, aren't the developers doing that already with clean layering architecture with the forms based applications? and why somebody would like to load a desktop application on a browser? If its a browser based application, it should be developed in ASP.NET. Thanks,

        S Offline
        S Offline
        Septimus Hedgehog
        wrote on last edited by
        #9

        Perhaps it's a solution to a problem that didn't exist.:confused:

        If there is one thing more dangerous than getting between a bear and her cubs it's getting between my wife and her chocolate.

        1 Reply Last reply
        0
        • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

          The original idea was to create a single design platform for web and desktop (Silverlight - WPF - WinRT) - it does not succeeded too much...

          I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)

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

          Kornfeld Eliyahu Peter wrote:

          The original idea was to create a single design platform for web and desktop (Silverlight - WPF - WinRT)

          No it wasn't. Originally, the vision was for WPF to be usable everywhere and WinRT wasn't even a twinkle in Steve Sinofsky's eyes at that point - bear in mind that WPF was developed before Vista was released. I guess that no one has read Adam Nathan's books then. The original remit was spelled out there.

          Kornfeld Eliyahu PeterK 1 Reply Last reply
          0
          • G glennPattonWork3

            WPF = WTF from my view point :-O

            M Offline
            M Offline
            Mycroft Holmes
            wrote on last edited by
            #11

            I feel the same way about ASPX, Javascript, CSS and MVC, probably for the same reasons, outside my comfort zone. Having said that I was fiddling with a winforms app in vs2013 and they have changed to DataRow construction and I was completely lost. Did not help that I was trying to show a young kids the basics on a strange machine. bloody embarrassing!

            Never underestimate the power of human stupidity RAH

            G S 2 Replies Last reply
            0
            • P preaa

              Hi, Having worked with Various Micrsoft programming languages for many years, now I am dabbling into WPF for a project. I don't know a single bit about it, but as I started to read the manual, I got confused as to what is the real purpose of WPF? Why would you put your UI in painful XML tags when you can use Windows forms? If it were to separate UI completely with the behaviour, aren't the developers doing that already with clean layering architecture with the forms based applications? and why somebody would like to load a desktop application on a browser? If its a browser based application, it should be developed in ASP.NET. Thanks,

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

              preaa wrote:

              If it were to separate UI completely with the behaviour, aren't the developers doing that already with clean layering architecture with the forms based applications?

              No they aren't. Have you seen how hard it is to get a complete break and clean layering going in Windows Forms?

              preaa wrote:

              and why somebody would like to load a desktop application on a browser? If its a browser based application, it should be developed in ASP.NET

              Again no. There are much better alternatives to the bloat that is ASP.NET for web based applications, unless you are talking about ASP MVC. You are looking at the state of the world as it exists now, not back in 2003 when WPF was heavily under development. Back then, doing fancy UIs in ASP.NET was extremely limited. The reason that WPF was invented, and this is from the team that wrote it in the first place, was because Microsoft wanted to provide developers to create the types of applications that people were used to seeing in films and TV shows, but which were not easily achievable in the technologies that were around at the time such as Windows Forms and MFC. They offered several advances over these technologies, including breaking away from using GDI/GDI+ for rendering, display independence, a sophisticated binding mechanism, animation, markup extensions, dependency properties and so on. I would suggest that you start by reading Adam Nathan's excellent WPF Unleashed, as well as articles by Josh Smith, Sacha Barber, Dan Vaughan, Karl Shifflett, Jesse Liberty and so on.

              M G B 3 Replies Last reply
              0
              • P Pete OHanlon

                Kornfeld Eliyahu Peter wrote:

                The original idea was to create a single design platform for web and desktop (Silverlight - WPF - WinRT)

                No it wasn't. Originally, the vision was for WPF to be usable everywhere and WinRT wasn't even a twinkle in Steve Sinofsky's eyes at that point - bear in mind that WPF was developed before Vista was released. I guess that no one has read Adam Nathan's books then. The original remit was spelled out there.

                Kornfeld Eliyahu PeterK Offline
                Kornfeld Eliyahu PeterK Offline
                Kornfeld Eliyahu Peter
                wrote on last edited by
                #13

                Pete O'Hanlon wrote:

                no one has read Adam Nathan's books then

                Wrong!

                Quote:

                Windows Presentation Foundation (WPF) is Microsoft’s premier technology for creating Windows graphical user interfaces (...) it’s also the basis for Silverlight, which has extended WPF technology onto the Web and into devices such as Windows phones

                (from the unread book...) And even Sinfosky went home - he is behind WinRT, which is the next step, as it tries to unify development technologies in the Web-Desktop-Mobile line, based on the same idea of WPF...

                I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)

                "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

                P 1 Reply Last reply
                0
                • P preaa

                  Hi, Having worked with Various Micrsoft programming languages for many years, now I am dabbling into WPF for a project. I don't know a single bit about it, but as I started to read the manual, I got confused as to what is the real purpose of WPF? Why would you put your UI in painful XML tags when you can use Windows forms? If it were to separate UI completely with the behaviour, aren't the developers doing that already with clean layering architecture with the forms based applications? and why somebody would like to load a desktop application on a browser? If its a browser based application, it should be developed in ASP.NET. Thanks,

                  P Offline
                  P Offline
                  Programm3r
                  wrote on last edited by
                  #14

                  Well I think most of the other members already said why is was formed, but I would like to add the following. Please go and have a look at some of the articles drafted by Sacha Barber[^], which makes use of xaml (wpf, silverlight, metro), then I would like you to ask yourself one simple question; how easy / difficult / impossible would that have been in WinForms... Kind regards,

                  1 Reply Last reply
                  0
                  • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                    Pete O'Hanlon wrote:

                    no one has read Adam Nathan's books then

                    Wrong!

                    Quote:

                    Windows Presentation Foundation (WPF) is Microsoft’s premier technology for creating Windows graphical user interfaces (...) it’s also the basis for Silverlight, which has extended WPF technology onto the Web and into devices such as Windows phones

                    (from the unread book...) And even Sinfosky went home - he is behind WinRT, which is the next step, as it tries to unify development technologies in the Web-Desktop-Mobile line, based on the same idea of WPF...

                    I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)

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

                    If you had read the book properly, and this goes back to his original version which predates Silverlight, he has a whole chapter devoted to the history. Perhaps you might want to revisit your original answer and cover what the original motivation of WPF was. Of course, I've only been doing WPF since 2008 and was one of the reviewers for his later books, as well as being friends with several members of that team so what do I know about their original motivation.

                    Kornfeld Eliyahu Peter wrote:

                    based on the same idea of WPF...

                    And there's the kicker - based on the same idea, not developed alongside. Oh, and the WinRT implementation is still way behind what WPF did back in .NET 3.5 when it was released, as was Silverlight until version 5 and as is Windows Phone's implementation.

                    Kornfeld Eliyahu PeterK 1 Reply Last reply
                    0
                    • P Pete OHanlon

                      If you had read the book properly, and this goes back to his original version which predates Silverlight, he has a whole chapter devoted to the history. Perhaps you might want to revisit your original answer and cover what the original motivation of WPF was. Of course, I've only been doing WPF since 2008 and was one of the reviewers for his later books, as well as being friends with several members of that team so what do I know about their original motivation.

                      Kornfeld Eliyahu Peter wrote:

                      based on the same idea of WPF...

                      And there's the kicker - based on the same idea, not developed alongside. Oh, and the WinRT implementation is still way behind what WPF did back in .NET 3.5 when it was released, as was Silverlight until version 5 and as is Windows Phone's implementation.

                      Kornfeld Eliyahu PeterK Offline
                      Kornfeld Eliyahu PeterK Offline
                      Kornfeld Eliyahu Peter
                      wrote on last edited by
                      #16

                      Clearly we read different editions (mine is WPF 4 + Silverlight) - but you right, the original goal does not included as much as Web (and for sure WinRT much later, there was no argument there, I was merely pointing out the continuity I see there)...

                      Quote:

                      Microsoft recognized that something brand new was needed that escaped the limitations of GDI+ and USER yet provided the kind of productivity that people enjoy with frameworks like Windows Forms. And with the continual rise of cross-platform applications based on HTML and JavaScript, Windows desperately needed a technology that’s as fun and easy to use as these, yet with the power to exploit the capabilities of the local computer. Windows Presentation Foundation (WPF) is the answer for software developers and graphic designers who want to create modern user experiences without having to master several difficult technologies. Although “Presentation” sounds like a lofty term for what I would simply call a user interface, it’s probably more appropriate for describing the higher level of visual polish that’s expected of today’s applications and the wide range of functionality included in WPF!

                      It seems a paragraph from the original (as Silverlight comes some pages later)... I also found it interesting (you just made me re-read parts of that book :))

                      Quote:

                      In short, WPF aims to combine the best attributes of systems such as DirectX (3D and hardware acceleration), Windows Forms (developer productivity), Adobe Flash (powerful animation support), and HTML (declarative markup).

                      Some one may add this book to CP's recommendations (CM started it some time ago), as it explains much about the ideas behind WPF...

                      I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)

                      "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

                      P K D 3 Replies Last reply
                      0
                      • M Marco Bertschi

                        Keith Barrow wrote:

                        ?????? This doesn't sound like WPF to me

                        it does to me, WPF applications can be displayed in a browser. Source[^]

                        K Offline
                        K Offline
                        Keith Barrow
                        wrote on last edited by
                        #17

                        Ahhh, I'd read the OP's screed as it only starting in a browser, as per Silverlight (hence the bit about Flash)

                        PB 369,783 wrote:

                        I just find him very unlikeable, and I think the way he looks like a prettier version of his Mum is very disturbing.[^]

                        1 Reply Last reply
                        0
                        • M Mycroft Holmes

                          I feel the same way about ASPX, Javascript, CSS and MVC, probably for the same reasons, outside my comfort zone. Having said that I was fiddling with a winforms app in vs2013 and they have changed to DataRow construction and I was completely lost. Did not help that I was trying to show a young kids the basics on a strange machine. bloody embarrassing!

                          Never underestimate the power of human stupidity RAH

                          G Offline
                          G Offline
                          glennPattonWork3
                          wrote on last edited by
                          #18

                          Been there, done that, got the T-shirt :)

                          1 Reply Last reply
                          0
                          • P preaa

                            Hi, Having worked with Various Micrsoft programming languages for many years, now I am dabbling into WPF for a project. I don't know a single bit about it, but as I started to read the manual, I got confused as to what is the real purpose of WPF? Why would you put your UI in painful XML tags when you can use Windows forms? If it were to separate UI completely with the behaviour, aren't the developers doing that already with clean layering architecture with the forms based applications? and why somebody would like to load a desktop application on a browser? If its a browser based application, it should be developed in ASP.NET. Thanks,

                            P Offline
                            P Offline
                            preaa
                            wrote on last edited by
                            #19

                            Well thanks a lot again for the kind replies.. I think I should look at Windows RT as well along with WPF.. Best

                            B 1 Reply Last reply
                            0
                            • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                              Clearly we read different editions (mine is WPF 4 + Silverlight) - but you right, the original goal does not included as much as Web (and for sure WinRT much later, there was no argument there, I was merely pointing out the continuity I see there)...

                              Quote:

                              Microsoft recognized that something brand new was needed that escaped the limitations of GDI+ and USER yet provided the kind of productivity that people enjoy with frameworks like Windows Forms. And with the continual rise of cross-platform applications based on HTML and JavaScript, Windows desperately needed a technology that’s as fun and easy to use as these, yet with the power to exploit the capabilities of the local computer. Windows Presentation Foundation (WPF) is the answer for software developers and graphic designers who want to create modern user experiences without having to master several difficult technologies. Although “Presentation” sounds like a lofty term for what I would simply call a user interface, it’s probably more appropriate for describing the higher level of visual polish that’s expected of today’s applications and the wide range of functionality included in WPF!

                              It seems a paragraph from the original (as Silverlight comes some pages later)... I also found it interesting (you just made me re-read parts of that book :))

                              Quote:

                              In short, WPF aims to combine the best attributes of systems such as DirectX (3D and hardware acceleration), Windows Forms (developer productivity), Adobe Flash (powerful animation support), and HTML (declarative markup).

                              Some one may add this book to CP's recommendations (CM started it some time ago), as it explains much about the ideas behind WPF...

                              I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)

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

                              If you have the WPF 4 version, take a look at the inside front cover. And yes, I started Nathan's book at the 3.5 release.

                              1 Reply Last reply
                              0
                              • P Pete OHanlon

                                preaa wrote:

                                If it were to separate UI completely with the behaviour, aren't the developers doing that already with clean layering architecture with the forms based applications?

                                No they aren't. Have you seen how hard it is to get a complete break and clean layering going in Windows Forms?

                                preaa wrote:

                                and why somebody would like to load a desktop application on a browser? If its a browser based application, it should be developed in ASP.NET

                                Again no. There are much better alternatives to the bloat that is ASP.NET for web based applications, unless you are talking about ASP MVC. You are looking at the state of the world as it exists now, not back in 2003 when WPF was heavily under development. Back then, doing fancy UIs in ASP.NET was extremely limited. The reason that WPF was invented, and this is from the team that wrote it in the first place, was because Microsoft wanted to provide developers to create the types of applications that people were used to seeing in films and TV shows, but which were not easily achievable in the technologies that were around at the time such as Windows Forms and MFC. They offered several advances over these technologies, including breaking away from using GDI/GDI+ for rendering, display independence, a sophisticated binding mechanism, animation, markup extensions, dependency properties and so on. I would suggest that you start by reading Adam Nathan's excellent WPF Unleashed, as well as articles by Josh Smith, Sacha Barber, Dan Vaughan, Karl Shifflett, Jesse Liberty and so on.

                                M Offline
                                M Offline
                                Mycroft Holmes
                                wrote on last edited by
                                #21

                                Pete O'Hanlon wrote:

                                he types of applications that people were used to seeing in films and TV shows

                                Bloody Minority Report has got a lot to answer for!

                                Never underestimate the power of human stupidity RAH

                                1 Reply Last reply
                                0
                                • P preaa

                                  Hi, Having worked with Various Micrsoft programming languages for many years, now I am dabbling into WPF for a project. I don't know a single bit about it, but as I started to read the manual, I got confused as to what is the real purpose of WPF? Why would you put your UI in painful XML tags when you can use Windows forms? If it were to separate UI completely with the behaviour, aren't the developers doing that already with clean layering architecture with the forms based applications? and why somebody would like to load a desktop application on a browser? If its a browser based application, it should be developed in ASP.NET. Thanks,

                                  Mike HankeyM Offline
                                  Mike HankeyM Offline
                                  Mike Hankey
                                  wrote on last edited by
                                  #22

                                  WPF - Why Program Functionally...need I say more?

                                  1 Reply Last reply
                                  0
                                  • M Mycroft Holmes

                                    I feel the same way about ASPX, Javascript, CSS and MVC, probably for the same reasons, outside my comfort zone. Having said that I was fiddling with a winforms app in vs2013 and they have changed to DataRow construction and I was completely lost. Did not help that I was trying to show a young kids the basics on a strange machine. bloody embarrassing!

                                    Never underestimate the power of human stupidity RAH

                                    S Offline
                                    S Offline
                                    SoMad
                                    wrote on last edited by
                                    #23

                                    Mycroft Holmes wrote:

                                    I was fiddling with a winforms app in vs2013 and they have changed to DataRow construction and I was completely lost.

                                    If you keep fiddling, you will go blind. ;) Soren Madsen

                                    "When you don't know what you're doing it's best to do it quickly" - Jase #DuckDynasty

                                    M 1 Reply Last reply
                                    0
                                    • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                                      Clearly we read different editions (mine is WPF 4 + Silverlight) - but you right, the original goal does not included as much as Web (and for sure WinRT much later, there was no argument there, I was merely pointing out the continuity I see there)...

                                      Quote:

                                      Microsoft recognized that something brand new was needed that escaped the limitations of GDI+ and USER yet provided the kind of productivity that people enjoy with frameworks like Windows Forms. And with the continual rise of cross-platform applications based on HTML and JavaScript, Windows desperately needed a technology that’s as fun and easy to use as these, yet with the power to exploit the capabilities of the local computer. Windows Presentation Foundation (WPF) is the answer for software developers and graphic designers who want to create modern user experiences without having to master several difficult technologies. Although “Presentation” sounds like a lofty term for what I would simply call a user interface, it’s probably more appropriate for describing the higher level of visual polish that’s expected of today’s applications and the wide range of functionality included in WPF!

                                      It seems a paragraph from the original (as Silverlight comes some pages later)... I also found it interesting (you just made me re-read parts of that book :))

                                      Quote:

                                      In short, WPF aims to combine the best attributes of systems such as DirectX (3D and hardware acceleration), Windows Forms (developer productivity), Adobe Flash (powerful animation support), and HTML (declarative markup).

                                      Some one may add this book to CP's recommendations (CM started it some time ago), as it explains much about the ideas behind WPF...

                                      I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)

                                      K Offline
                                      K Offline
                                      Kyudos
                                      wrote on last edited by
                                      #24

                                      Kornfeld Eliyahu Peter wrote:

                                      Windows desperately needed a technology that’s as fun and easy to use as these...

                                      They failed there then.

                                      S J 2 Replies Last reply
                                      0
                                      • K Kyudos

                                        Kornfeld Eliyahu Peter wrote:

                                        Windows desperately needed a technology that’s as fun and easy to use as these...

                                        They failed there then.

                                        S Offline
                                        S Offline
                                        Simon ORiordan from UK
                                        wrote on last edited by
                                        #25

                                        Now with added Silverfish. WTF? :zzz:

                                        1 Reply Last reply
                                        0
                                        • P preaa

                                          Well thanks a lot again for the kind replies.. I think I should look at Windows RT as well along with WPF.. Best

                                          B Offline
                                          B Offline
                                          BubingaMan
                                          wrote on last edited by
                                          #26

                                          WPF has the richest xaml-based feature set. Silverlight was pretty much a stripped down version of WPF. WinRT xaml looks like a stripped down version of silverlight ("looks like", because I haven't done anything worthwhile in it yet, it's just first impressions). In any case, as long as you get the xaml principles down along with MVVM, you'll be up and running on all xaml platforms in no time. The learning curve can be quite steap though, it's a lot to take in at first. But it's real fun imo.

                                          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