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. WPF equivalent of anchoring controls?

WPF equivalent of anchoring controls?

Scheduled Pinned Locked Moved WPF
questioncsharpwpf
4 Posts 3 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.
  • M Offline
    M Offline
    Michael Eber
    wrote on last edited by
    #1

    In the WinForm days there was a lot of work done with anchoring to make controls adjust to resizing of the window. What is the equivalent approach in WPF applications? What are best practices for scaling controls? Implement with inline code or what? Thanks

    K J 2 Replies Last reply
    0
    • M Michael Eber

      In the WinForm days there was a lot of work done with anchoring to make controls adjust to resizing of the window. What is the equivalent approach in WPF applications? What are best practices for scaling controls? Implement with inline code or what? Thanks

      K Offline
      K Offline
      Kubajzz
      wrote on last edited by
      #2

      HorizontalAlignment="Strech" VerticalAlignment="Strech"

      This might do the job...

      M 1 Reply Last reply
      0
      • K Kubajzz

        HorizontalAlignment="Strech" VerticalAlignment="Strech"

        This might do the job...

        M Offline
        M Offline
        Michael Eber
        wrote on last edited by
        #3

        Thanks, I'll give it a try.

        1 Reply Last reply
        0
        • M Michael Eber

          In the WinForm days there was a lot of work done with anchoring to make controls adjust to resizing of the window. What is the equivalent approach in WPF applications? What are best practices for scaling controls? Implement with inline code or what? Thanks

          J Offline
          J Offline
          Jammer 0
          wrote on last edited by
          #4

          One of the great things about WPF is that you don't need this sort of thing anymore!

          Jammer My Blog | Articles | DMon | SampleSort

          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