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. Looking for a sample of WPF designtime adorner for sizing childs in usercontrol

Looking for a sample of WPF designtime adorner for sizing childs in usercontrol

Scheduled Pinned Locked Moved WPF
csharpwpfhelpquestion
6 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.
  • C Offline
    C Offline
    christoph brandle
    wrote on last edited by
    #1

    does anyone came across about something about that? I have a UserControl containing a Label and a TextBox. During Designtime I want a nice looking adorner that enables me to size them. Right now I have a adorner with a slider, that is no problem. But even only I use this right now, I dont like this solution. thanks in advance for any further hints or information! Cheers, Christoph

    L 1 Reply Last reply
    0
    • C christoph brandle

      does anyone came across about something about that? I have a UserControl containing a Label and a TextBox. During Designtime I want a nice looking adorner that enables me to size them. Right now I have a adorner with a slider, that is no problem. But even only I use this right now, I dont like this solution. thanks in advance for any further hints or information! Cheers, Christoph

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Do you want to extend the current Visual Studio TextBox and Label controls as you are designing them in the WPF Designer, Cider?

      Cheers, Karl » CodeProject 2008 MVP My Blog | Mole's Home Page | XAML Power Toys Home Page

      Just a grain of sand on the worlds beaches.

      C 1 Reply Last reply
      0
      • L Lost User

        Do you want to extend the current Visual Studio TextBox and Label controls as you are designing them in the WPF Designer, Cider?

        Cheers, Karl » CodeProject 2008 MVP My Blog | Mole's Home Page | XAML Power Toys Home Page

        Just a grain of sand on the worlds beaches.

        C Offline
        C Offline
        christoph brandle
        wrote on last edited by
        #3

        Hello Karl, well I want to have a simple usercontrol with multiple controls in it, anything. lets say a label and a textbox (both in a DockPanel) UserControl: --------------------- | Label | Textbox | --------------------- When I have this control in the WPF Designer (Cider), I want to be able to drag a resize adorner either to left or right, so the DockPanel/CtrlSize is changed. --------------------- | Label <|> Textbox | --------------------- I managed to have a adorner with a slider bound to a UserControl-DP. but I am struggeling to find the right entry point/design to have a draggable Sizing adorner. I cannot see how I can get to manage the mouse-events etc. any help or hint is welcome :)

        L 1 Reply Last reply
        0
        • C christoph brandle

          Hello Karl, well I want to have a simple usercontrol with multiple controls in it, anything. lets say a label and a textbox (both in a DockPanel) UserControl: --------------------- | Label | Textbox | --------------------- When I have this control in the WPF Designer (Cider), I want to be able to drag a resize adorner either to left or right, so the DockPanel/CtrlSize is changed. --------------------- | Label <|> Textbox | --------------------- I managed to have a adorner with a slider bound to a UserControl-DP. but I am struggeling to find the right entry point/design to have a draggable Sizing adorner. I cannot see how I can get to manage the mouse-events etc. any help or hint is welcome :)

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Let me research and get back to you Monday.

          Cheers, Karl » CodeProject 2008 MVP My Blog | Mole's Home Page | XAML Power Toys Home Page

          Just a grain of sand on the worlds beaches.

          C 2 Replies Last reply
          0
          • L Lost User

            Let me research and get back to you Monday.

            Cheers, Karl » CodeProject 2008 MVP My Blog | Mole's Home Page | XAML Power Toys Home Page

            Just a grain of sand on the worlds beaches.

            C Offline
            C Offline
            christoph brandle
            wrote on last edited by
            #5

            thanks Karl, hope you are succesfull! Cheers Christoph

            1 Reply Last reply
            0
            • L Lost User

              Let me research and get back to you Monday.

              Cheers, Karl » CodeProject 2008 MVP My Blog | Mole's Home Page | XAML Power Toys Home Page

              Just a grain of sand on the worlds beaches.

              C Offline
              C Offline
              christoph brandle
              wrote on last edited by
              #6

              I did some trials with a gridsplitter (inside grid) as an adorner. Somehow I did not manage to bind the GridColumnDefinition.WidthProperty succesful, but surely this should be possible. But as soon I had it in prototype I realized how good the slider was I already had, it supports snap to values. This suits the needs very good, so I try now to have a custom skin/theme on the slider in order to look a little nicer. Thanks anyway and cheers, Christoph

              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