Looking for a sample of WPF designtime adorner for sizing childs in usercontrol
-
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
-
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
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 PageJust a grain of sand on the worlds beaches.
-
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 PageJust a grain of sand on the worlds beaches.
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 :)
-
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 :)
Let me research and get back to you Monday.
Cheers, Karl
» CodeProject 2008 MVP My Blog | Mole's Home Page | XAML Power Toys Home PageJust a grain of sand on the worlds beaches.
-
Let me research and get back to you Monday.
Cheers, Karl
» CodeProject 2008 MVP My Blog | Mole's Home Page | XAML Power Toys Home PageJust a grain of sand on the worlds beaches.
thanks Karl, hope you are succesfull! Cheers Christoph
-
Let me research and get back to you Monday.
Cheers, Karl
» CodeProject 2008 MVP My Blog | Mole's Home Page | XAML Power Toys Home PageJust a grain of sand on the worlds beaches.
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