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. How to bind Height of element in parent Page to Height of ChildWindow

How to bind Height of element in parent Page to Height of ChildWindow

Scheduled Pinned Locked Moved WPF
questionwpfwcftutorial
1 Posts 1 Posters 1 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.
  • F Offline
    F Offline
    fjparisIII
    wrote on last edited by
    #1

    I want to bind the Height of a ChildWindow to the Height of an element in the Page that shows the ChildWindow. The only descriptions I've seen are bindings between elements in the same Control. Is what I want to do even possible, and if so, what is the syntax of the Binding expression that would be in the ChildWindow? I first tried to set the Height of the ChildWindow to the Height of the element in the Page immediately after constructing the ChildWindow and before calling ChildWindow.Show, but for some mysterious reason, this positions the top of the ChildWindow above the top of the Page, which is unacceptable. Naturally I want to keep the ChildWindow centered on the page, or at least centered on a specific element within the Page.

    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