Posted 15 years ago
by James Deadman
Hello,
Im just having a go with the WPF SyntaxEditor after coming from the WinForms SyntaxEditor. Im attempting to get the SyntaxEditor control (which is a member of my CView class) to auto-size to the parent window.
In the WinForms version its just a case of setting the 'Anchor' and 'Dock' properties to fill the window. How might i do this programmatically for WPF please? Is there a particular property i need to set?
I tried setting the 'Width' and 'Height' properties equal to "System::Double::NaN" but it didnt seem to work.
Thanks,
James
Im just having a go with the WPF SyntaxEditor after coming from the WinForms SyntaxEditor. Im attempting to get the SyntaxEditor control (which is a member of my CView class) to auto-size to the parent window.
In the WinForms version its just a case of setting the 'Anchor' and 'Dock' properties to fill the window. How might i do this programmatically for WPF please? Is there a particular property i need to set?
I tried setting the 'Width' and 'Height' properties equal to "System::Double::NaN" but it didnt seem to work.
Thanks,
James