2
I’m new to WPF and I’d like to clear up a question that I think most people have, but can’t quite clear up, which is the visual heritage of windows.
Imagine that all my sign-up screens should look the same and have the same buttons (Save, Cancel, etc). IN Windows Forms. for example, just create a base window with the above components and then just make the other windows inherit from this base window and that’s it!! If the window you inherit from the base window doesn’t have a specific button, I just add it to the form normally.
Well, now we go to the WPF. I can’t do this and I don’t know if there is such a possibility, because what I was able to do is create a User Control, but I found it very plastered because if I do a user control of a screen (as I mentioned earlier), in the window I add it, I can’t change itlo with new buttons for that window you’re inheriting....
Has anyone ever been through such an experience?
I know that inheritance has even to use, but it’s complicated, I think it’s not worth it. I tried to mess with it once, and I didn’t go into it. I will wait for an answer how to do to reuse the visual between the windows =]
– Rovann Linhalis