Blogs

Entries for April 2011

WPF Chart Styling Explained

20 Apr

Some of the big additions to the .NET Framework in .NET 3.5 Service Pack 1 were the Charting Components that give a rich, out-of-the-box solution for displaying charts in your application.  However, one thing that I've always found very hard is locating information on how to control the look and feel of the individual charts.  In this posting I'll show you how to style the following elements of a chart: Title, Legend, Independent Axis, and Dependent Axis.  This will show the key areas of styling.

tags: .NET 4.0, WPF

Causing a Specific Control to Postback

18 Apr

I was recently debugging an issue with a form where the user wanted the "enter" button when pressed in a textbox to trigger a specific ASP.NET button to postback to the server.  I have done similar things in the past with a method that changes for the pressing of Character 13 which is the enter key, then finding the button by id and then continuing on.  Well recently I found out that depending on the structure you can still get some "interesting" results.  So I went looking for a different method, and came up with the following.

tags: ASP.NET, .NET 4.0, Quick Tips

DotNetNuke Scheduled Jobs Using the API

17 Apr

A while back I blogged about Creating DotNetNuke Scheduled Jobs and promised a "part two" article, this is that article.  In the previous installment I talked about the process of creating and manually installing a scheduled job.  This article is designed to take this to the next step and discuss how you interact with the Scheduler System to handle installation and other validation methods of scheduled jobs.  I will explain the finer points in regards to checking to see if a job exists and creating or modifying a job.

tags: DNN, DNN Development

Modfying WPF Textbox or Other Control Behavior

17 Apr

So as I have mentioned in previous blog postings and on Twitter, I have been working a lot more recently in WPF than in recent months due to a big project I had been completing. One of the final "Client Review" items that I had to resolve was that they didn't like the way that the textboxes worked. The default behavior for textboxes in WPF when tabbing into them was to put the cursor at the beginning of the field. I agree that the usability was not good, but I had over 400 textboxes and didn't want to have to change all of them. SO I went digging for a solution....

tags: .NET 4.0, WPF, Quick Tips

Font Variations and WPF Textblocks

11 Apr

Over the past few months I have been working on more projects using Windows Presentation Foundation (WPF) and I have ran into numerous fun "learning experiences".  Of of these recent ones prompted me to put up a "Quick Tip" posting.  The quick tip in this posting is around formatting of custom font structures within a WPF TextBlock.  Specifically around sub-scripting, super-scripting, and internal font variants.

tags: .NET 4.0, WPF

.NET Memory Management and You!

09 Apr

I teach introduction and advanced .NET development courses for a local community college and one item that I always cover in each class is a discussion around Memory Management and Garbage Collection. I am often asked by my students if this is something that they really should be concerned about and my opinion has always been yes, but I know that many developers feel that having an intimate understanding of how Garbage Collection is completed is unnecessary. Finally after a number of constant reminders from students, I thought I would actually put out my "simple" version and explanation out here that I give my students each semester and gather some feedback from my blog readers on their thoughts on the manner.

tags: C#, VB, .NET 4.0

Content provided in this blog is provided "AS-IS" and the information should be used at your own discretion.  The thoughts and opinions expressed are the personal thoughts of Mitchel Sellers and do not reflect the opinions of his employer.

Connect with Mitchel

I hope the information here has been helpful. To stay connected you can also subscribe to blog updates via email, contact Mitchel about consulting services, or reach out for assistance via CodeMendor

Content Copyright

Content in this blog is copyright protected.  Re-publishing on other websites is allowed as long as proper credit and backlink to the article is provided.  Any other re-publishing or distribution of this content is prohibited without written permission from Mitchel Sellers.