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. General Programming
  3. WPF
  4. Best Way To Do This

Best Way To Do This

Scheduled Pinned Locked Moved WPF
wpfcsharpcom
6 Posts 5 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.
  • K Offline
    K Offline
    Kevin Marois
    wrote on last edited by
    #1

    I am working on this[] WPF application. Each time the user clicks Next I want to display the next view. Te areas in red will all have the header area at the top and the button area below. From what I can see it's impossible to subclass an XAML view, but I think I can do it with a template. I just don't know how. I'm open to suggestion. Thanks

    Everything makes sense in someone's mind

    P R R 3 Replies Last reply
    0
    • K Kevin Marois

      I am working on this[] WPF application. Each time the user clicks Next I want to display the next view. Te areas in red will all have the header area at the top and the button area below. From what I can see it's impossible to subclass an XAML view, but I think I can do it with a template. I just don't know how. I'm open to suggestion. Thanks

      Everything makes sense in someone's mind

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

      It's not impossible to subclass XAML, it's fairly straightforward. In this case though, you simply need a ContentControl to host any one of a number of DataTemplates.

      Forgive your enemies - it messes with their heads

      My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

      K 1 Reply Last reply
      0
      • P Pete OHanlon

        It's not impossible to subclass XAML, it's fairly straightforward. In this case though, you simply need a ContentControl to host any one of a number of DataTemplates.

        Forgive your enemies - it messes with their heads

        My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

        K Offline
        K Offline
        Kevin Marois
        wrote on last edited by
        #3

        It's not impossible to subclass XAML, it's fairly straightforward. Got an example of how to do this? I Googled it earlier and didn't see much. In this case though, you simply need a ContentControl to host any one of a number of DataTemplates. Actually, if I put a ContentPresenter in the center cell of the grid, then the Next/Previous functions could simply add/remove whatever control goes there at that point.

        Everything makes sense in someone's mind

        S 1 Reply Last reply
        0
        • K Kevin Marois

          It's not impossible to subclass XAML, it's fairly straightforward. Got an example of how to do this? I Googled it earlier and didn't see much. In this case though, you simply need a ContentControl to host any one of a number of DataTemplates. Actually, if I put a ContentPresenter in the center cell of the grid, then the Next/Previous functions could simply add/remove whatever control goes there at that point.

          Everything makes sense in someone's mind

          S Offline
          S Offline
          SledgeHammer01
          wrote on last edited by
          #4

          It looks like its just an inline wizard control. I'd go that route as that will help you keep your page logic seperated.

          1 Reply Last reply
          0
          • K Kevin Marois

            I am working on this[] WPF application. Each time the user clicks Next I want to display the next view. Te areas in red will all have the header area at the top and the button area below. From what I can see it's impossible to subclass an XAML view, but I think I can do it with a template. I just don't know how. I'm open to suggestion. Thanks

            Everything makes sense in someone's mind

            R Offline
            R Offline
            Renat Khabibulin
            wrote on last edited by
            #5

            I think that you can do that using TabControl. Create tabcontrol template with invisible headers and navigate through it's Items when click Next or Prev. It will be like a wizard

            1 Reply Last reply
            0
            • K Kevin Marois

              I am working on this[] WPF application. Each time the user clicks Next I want to display the next view. Te areas in red will all have the header area at the top and the button area below. From what I can see it's impossible to subclass an XAML view, but I think I can do it with a template. I just don't know how. I'm open to suggestion. Thanks

              Everything makes sense in someone's mind

              R Offline
              R Offline
              RichardGrimmer
              wrote on last edited by
              #6

              Looks like a prime candidate for the Prism frameword (previously Composite Application Lib)

              C# has already designed away most of the tedium of C++.

              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