Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Translation_Entry has a deprecated constructor in /home/sheltonr/public_html/wp-includes/pomo/entry.php on line 14

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; POMO_Reader has a deprecated constructor in /home/sheltonr/public_html/wp-includes/pomo/streams.php on line 12

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; POMO_FileReader has a deprecated constructor in /home/sheltonr/public_html/wp-includes/pomo/streams.php on line 120

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; POMO_StringReader has a deprecated constructor in /home/sheltonr/public_html/wp-includes/pomo/streams.php on line 175

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; POMO_CachedFileReader has a deprecated constructor in /home/sheltonr/public_html/wp-includes/pomo/streams.php on line 221

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; POMO_CachedIntFileReader has a deprecated constructor in /home/sheltonr/public_html/wp-includes/pomo/streams.php on line 236

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; WP_Widget_Factory has a deprecated constructor in /home/sheltonr/public_html/wp-includes/widgets.php on line 544
WinForms vs WPF - Software, Website Design, Cordova/Memphis TN

WinForms vs WPF

I just finished a calendar control with customizable colors (as an exercise mainly) and then I wanted to use it in a new Modern UI (Metro) theme.

Custom_Calendar_Control

This exercise with a custom calendar control lets you get wild with colors.

Ugh, I had done all my work using the WinForms framework: System.Windows.Drawing.

The Modern UI is built using WPF which uses System.Windows.Media.

So now I am learning how to use the WPF equivalents — and the not-so-equivalents.

Interesting to note that one framework uses the name “Color” while the other uses “Colors”.  However, the two are not directly interchangeable.

WinForms Example:

// Main Border Color
private Color m_BorderColor Color.Black ;

vs the WPF example:

// Main Border Color
private Brush m_BorderColor = new SolidColorBrush(Colors.Black);

The Modern UI Look:

Here is the calendar control in the Modern UI Metro look

Metro_Calendar_Control

Hmmm…

 

Proactive technologist.

Posted in New, WPF

What do you think?