UIs

Author Message
TNO

  • Total Posts : 2094
  • Scores: 36
  • Reward points : 0
  • Joined: 12/18/2004
  • Location: Earth
  • Status: offline
UIs Saturday, September 11, 2010 8:21 AM (permalink)
0
Has anyone tried any significant UI development with PS yet? I've seen a  few articles on the web, but most of them end up looking terribly verbose. Perhaps XAML makes things a little easier?
To iterate is human, to recurse divine. -- L. Peter Deutsch
 
#1
    ebgreen

    • Total Posts : 8227
    • Scores: 98
    • Reward points : 0
    • Joined: 7/12/2005
    • Status: offline
    Re:UIs Monday, September 13, 2010 3:22 AM (permalink)
    0
    I will be the first to admit that doing a UI in powershell does look verbose. The only reason it looks that way though is because all the UI code is crammed into one file along with all the program logic. If you took a C#(VB.Net) app that did the same thing and pulled all the generated hidden code that rarely gets looked into one file it would be verbose too.
    "... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
    Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
    http://www.visualbasicscript.com/m_47117/tm.htm
     
    #2
      TomRiddle

      • Total Posts : 620
      • Scores: 12
      • Reward points : 0
      • Joined: 2/7/2008
      • Location: Australia
      • Status: offline
      Re:UIs Thursday, September 16, 2010 1:54 PM (permalink)
      0
      Hi TNO,
       
      Do you mean a PowerShell UI as in a like a dotnet form type GUI?
       
      And do you mean verbose like this simple powershell calculator app which is over a thousand lines long?
      http://gallery.technet.microsoft.com/ScriptCenter/en-us/7e08cb64-f621-44b2-810b-dab3827755ce
       
      The cool thing about this app is that it generated by primal forms and the majority of the verbose code can be almost ignored.
       
      -join([int[]][char[]]'Ut|jwXmjqq%Wzqjx'|%{[char]($_-5)})
       
      #3
        TNO

        • Total Posts : 2094
        • Scores: 36
        • Reward points : 0
        • Joined: 12/18/2004
        • Location: Earth
        • Status: offline
        Re:UIs Thursday, September 16, 2010 11:06 PM (permalink)
        0
        TomRiddle

        Hi TNO,
         
        Do you mean a PowerShell UI as in a like a dotnet form type GUI?


        Indeed

        TomRiddle

        And do you mean verbose like this simple powershell calculator app which is over a thousand lines long?
        http://gallery.technet.microsoft.com/ScriptCenter/en-us/7e08cb64-f621-44b2-810b-dab3827755ce
         
        The cool thing about this app is that it generated by primal forms and the majority of the verbose code can be almost ignored.
         


        Yep. In comparison to other approaches: HTA, .gadgets, etc. This is terribly verbose especially for a scripting language.

        Though I did come across this:

        http://blogs.msdn.com/b/p...xaml-show-control.aspx

        Improves things quite a bit. Its a shame I can't run a sidebar .gadget like an HTA file. The API is a wonderful improvement:
        http://msdn.microsoft.com...5853%28v=VS.85%29.aspx
        To iterate is human, to recurse divine. -- L. Peter Deutsch
         
        #4
          TomRiddle

          • Total Posts : 620
          • Scores: 12
          • Reward points : 0
          • Joined: 2/7/2008
          • Location: Australia
          • Status: offline
          Re:UIs Friday, September 17, 2010 12:05 PM (permalink)
          0
          Thanks TNO for showing me WPF with XAML
          -join([int[]][char[]]'Ut|jwXmjqq%Wzqjx'|%{[char]($_-5)})
           
          #5
            ginolard

            • Total Posts : 1347
            • Scores: 23
            • Reward points : 0
            • Joined: 8/11/2005
            • Status: offline
            Re:UIs Sunday, September 19, 2010 7:48 PM (permalink)
            0
            XAML does my head in.  I'm still firmly stuck in WIndows Forms mode.
            Author of ManagePC - http://managepc.net

             
            #6

              Online Bookmarks Sharing: Share/Bookmark

              Jump to:

              Current active users

              There are 0 members and 1 guests.

              Icon Legend and Permission

              • New Messages
              • No New Messages
              • Hot Topic w/ New Messages
              • Hot Topic w/o New Messages
              • Locked w/ New Messages
              • Locked w/o New Messages
              • Read Message
              • Post New Thread
              • Reply to message
              • Post New Poll
              • Submit Vote
              • Post reward post
              • Delete my own posts
              • Delete my own threads
              • Rate post

              2000-2012 ASPPlayground.NET Forum Version 3.9