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. Embeding a Usercontrol [modified]

Embeding a Usercontrol [modified]

Scheduled Pinned Locked Moved WPF
questionhelp
2 Posts 2 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.
  • A Offline
    A Offline
    Adrian0
    wrote on last edited by
    #1

    Sounds like a newbie question. But can't help my self for already an hour. I've Silverlight application with tabs and don't want to put all code in one large file. So I have made single UserControls and now I want to put them into the tab control.

    I can't see anything in the designer. Can somebody help me out of this?
    Thanks!

    modified on Thursday, January 20, 2011 8:43 AM

    S 1 Reply Last reply
    0
    • A Adrian0

      Sounds like a newbie question. But can't help my self for already an hour. I've Silverlight application with tabs and don't want to put all code in one large file. So I have made single UserControls and now I want to put them into the tab control.

      I can't see anything in the designer. Can somebody help me out of this?
      Thanks!

      modified on Thursday, January 20, 2011 8:43 AM

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

      StackPanels size to the size of the content. In your case, the size is 0x0, so you don't see anything. You need to have your d namespace defined in the my:UDW_Details XAML and then add: d:DesignWidth="300" d:DesignHeight="300" to have a design time width and height. or you can stub in design time data. Either way works.

      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