Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
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.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - Abount inheritance and control...

 
 
Old 05-07-2006   #1 (permalink)
Miguel Ortiz Falcón


 
 

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 SpecsSystem Spec
Old 05-08-2006   #2 (permalink)
Marcus


 
 

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 SpecsSystem Spec
 

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


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46