Hi there, I've searched internet for info for a long time but I couldn't get much answers, this why I'm asking here.
I have a simple UserControl with 2 radtextbox inside, one with dock left and other with dock fill.
What I wanna do is the same u do with Textbox height. Example: if u change the Textbox Font or ThemeName it's height will be resized.
This is exactly what I want to do, change my UserControl height to be exactly the same TextBox height when I change Font or ThemeName.
I've already tried:
-> override void SetBoundsCore();
-> inherit ControlDesigner to override SelectionRules.
-> overriding Size property do half work, because the UC keeps reseting location to 0,0 when used, every build
And, of course I'm setting those TextBox Font and Theme when change it on UserControl.
And it should work the same way on the designer.
Sorry for bad english. And hope u could understand what I'm trying to achieve.