Hello,
We are converting a .Net 4.0 WinForm application to WPF. This is a piecemeal effort so not everything will get converted at once. My situation is the following...... In our WinForm application, we have numerous popup forms. These forms have buttons. These buttons are displayed, by default, with a whitish background and have slightly rounded corners. There is a slight blue tint during a mouseover. When that same form is popped-up in our WPF application, however, the button has blocked corners, a 3D border with black brush, and has a background color of that of the form itself (in our case the form has a silver background). It is horribly ugly. Thinking it could be due to some WPF styles that are defined, I created an empty WPF project that only contains a single button which will display the WinForm popup form which has one button. The outcome is the same. WPF is somehow doing some style conversion that changes the WinForm button. Another odd issue is that when I launch the form from our WPF app, the text is cutoff on the rightside. Even though the window's width is the same when launched from a WinForm app or a WPF app, the text on the form is cutoff when launched from a WPF app. Its as if maybe the font was changed by WPF. The font, by default, is Microsoft Sans Serif, 8.25pt. Very odd. Does anyone know why this is?
Thanks - Peter