![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
| |
| | #1 (permalink) |
| | Abount inheritance and control... Hi everybody, I have some questions: - How can I do inheritance between Windows? you know, build a common Window and inherit from it, to have the same pattern. - What about a control like the 'DateTimePicker' or 'Calendar' ?, if I need to pink a date. What do you suggest ? - Do uou know if the current controls, the methods, properties, the general behavior of the control, will be change when is release it.? Greetings... -- Miguel Ortiz Falcón michaelof@hotmail.com |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Abount inheritance and control... 1. Creating a custom class that inherits from a System class just works the same as plain old .NET: public MyCustomWindow : Window { ... } Don't be fooled by XAML and all that stuff, this is still OO programming... in XAML, you can then use your newly created class: <local:MyCustomWindow /> where you defined a xmlns (namespace) called "local" for your project containing the custom class. Look for samples about creating custom controls for more details. 2. By default, there is no such controls in the WPF framework, you would need to create one. Probably that component vendors will have some controls availlable soon... I also heard that it was possible to use .NET components in WPF app.... But I have no links for your and never tried myself... 3. Microsoft insists that the API is frozen until release for the WPF Framework, what you see now is what you should get.... |
My System Specs![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| ADsSecurity and Inheritance | VB Script | |||
| Q re ReadOnly Properties, Inheritance and IOC Containers | .NET General | |||
| ACL - Search directories where inheritance has been broken? | PowerShell | |||