Monday, January 31, 2011

Daily News Headline @SilverlightZone - 31 January 2011 - #16

Daily News Headline @SilverlightZone - 31 January 2011 - #16


Daily News Headline @SilverlightZone - 31 January 2011 - #16

Posted: 31 Jan 2011 01:34 AM PST

Today, we have 15 news items posted in Silverlight-Zone . If you are a Silverlight or Windows Phone 7 application developer, follow Silverlight-Zone for daily news update.   Subscribe to our news feed and email digest to deliver it to your inbox...( read more )...(read more)

Automatically Showing ToolTips on a Trimmed TextBlock (Silverlight + WPF)

Posted: 31 Jan 2011 08:25 AM PST

Both WPF and Silverlight have a property TextTrimming="WordEllipsis", which trims the text that a TextBlock displays based on the available width. This blog post describes a simple method for automatically showing the full text as a tooltip whenever the...( read more )...(read more)

Using the AutoCompleteBox

Posted: 30 Jan 2011 03:01 PM PST

The auto-complete box is a mix of a normal text box that allows the user to type in arbitrary text, and the drop-down list feature of a combo box that provides a fixed set of entries the user can select from. You're most likely using a control like this...( read more )...(read more)

Silverlight Cream for January 30, 2011 - 2 -- #1038

Posted: 30 Jan 2011 08:46 PM PST

In this Issue: Max Paulousky , Renuka Prasad , Ollie Riches , Jesse Liberty ( -2- , -3- , -4- , -5- ), Medusa M , John Papa , Beth Massi , and Joost van Schaik . Above the Fold: Silverlight: "Stop What You Are Doing And Learn About Reactive Programming...( read more )...(read more)

Silverlight Cream for January 30, 2011 -- #1037

Posted: 30 Jan 2011 06:56 PM PST

In this Issue: Ollie Riches , Colin Eberhardt , Andrej Tozon , Arik Poznanski , Deborah Kurata ( -2- ), Jay Kimble , Yochay Kiriaty , Peter Kuhn , Mike Ormond , WindowsPhoneGeek ( -2- ), and Matthias Shapiro . Above the Fold: Silverlight: "Missing Chart...( read more )...(read more)

Sunday, January 30, 2011

How to cancel the closing of your Silverlight application (in-browser and out-of-browser)

How to cancel the closing of your Silverlight application (in-browser and out-of-browser)


How to cancel the closing of your Silverlight application (in-browser and out-of-browser)

Posted: 30 Jan 2011 01:14 PM PST

It's almost two years ago when I wrote about the concept of canceling the the closing of a Silverlight application. In that era I was only trying to solve the problems that exist inside the browser. Like someone who accidently closes the tab, or types...( read more )...(read more)

The Visual C++ Weekly Vol. 1 Issue 5 (Jan 29, 2011)

Posted: 29 Jan 2011 01:54 PM PST

This week comes with an article to help you set your application for parallelization; C++ MVP Dan Rollins researches on various ways to implement properties in C++; Issam Iqbal, C++ MVP, gives another twist to the TO CLI or NOT TO CLI debate when creating unit tests for our unmanaged code (voting for "NOT TO CLI"). There are also a couple of code samples, one for creating Dynamic Link Libraries and the other one on Internationalization. We are also complementing for the first time our C++ coverage with entrepreneurial stuff for micro independent software vendors (micro ISVs, organizations composed for as few people as one –yourself- and as many as… few anyway). Read all that and more in the latest issue of The Visual C++ Weekly.

Daily News Headline @SilverlightZone - 30 January 2011 - #15

Posted: 30 Jan 2011 01:42 AM PST

Today, we have 6 news items posted in Silverlight-Zone . If you are a Silverlight or Windows Phone 7 application developer, follow Silverlight-Zone for daily posts update.   Subscribe to our news feed and email digest to deliver it to your inbox...( read more )...(read more)

SQL Server Separation of Duties Framework

Posted: 30 Oct 2010 08:51 AM PDT

Implement to provide a means for the DBA to execute processes which require elevated privileges. Solution is used when organizations dictate that a DBA does not have sysadmin privileges.

Saturday, January 29, 2011

R.I.P. GooNews

R.I.P. GooNews


R.I.P. GooNews

Posted: 29 Jan 2011 07:34 AM PST

I recently wrote about the release of my GooNews application for the Windows Phone 7 Marketplace. The Application has now been pulled from the marketplace and will not be resubmitted. There were a variety of issues that finally forced me to give up and...( read more )...(read more)

HTML5 & CSS3 in Visual Studio 2010 SP1

Posted: 27 Jan 2011 03:47 PM PST

Since the release of Visual Studio 2010 SP1 beta last month, there has been a lot of questions regarding the support for HTML5 and CSS3. HTML5 Visual Studio 2010 was originally released without HTML5 support, so does SP1 finally add support for it? Yes, to some extent. The entire HTML5 specification isn't supported but most of the new elements and attributes are. That means you get both intellisense and validation for HTML5 with SP1. Turn it on After installing SP1 you have to tell Visual Studio to start using the HTML5 schema. Go to Tools -> Options, and then select Text Editor -> HTML -> Validation . You should now be able to select HTML5 or XHTML5 as the target schema. Or if you have the HTML Source Editing toolbar enabled, you can...(read more)

Daily News Headline @SilverlightZone - 29 January 2011 - #14

Posted: 29 Jan 2011 01:32 AM PST

Today, we have   5 news   items on various topics in Silverlight-Zone   by different authors. If you are a Silverlight or Windows Phone 7 application developer, follow   Silverlight-Zone for daily posts update.   Subscribe to...( read more )...(read more)

SQL Azure Migration Wizard v3.5.3

Posted: 31 Aug 2009 02:23 PM PDT

SQL Azure Migration Wizard (SQLAzureMW) is designed to help you migrate your SQL Server 2005/2008 databases to SQL Azure. SQLAzureMW will analyze your source database for compatibility issues and allow you to fully or partially migrate your database schema and data to SQL Azure.

Friday, January 28, 2011

Daily News Headline @SilverlightZone - 28 January 2011 - #13

Daily News Headline @SilverlightZone - 28 January 2011 - #13


Daily News Headline @SilverlightZone - 28 January 2011 - #13

Posted: 28 Jan 2011 01:39 AM PST

Today, we have 11 new news items on various topics in Silverlight-Zone by different authors. If you are a Silverlight or Windows Phone 7 application developer, follow Silverlight-Zone for daily posts.   Subscribe to our news feed and email digest...( read more )...(read more)

SQL Azure Migration Wizard v3.5.2

Posted: 31 Aug 2009 02:23 PM PDT

SQL Azure Migration Wizard (SQLAzureMW) is designed to help you migrate your SQL Server 2005/2008 databases to SQL Azure. SQLAzureMW will analyze your source database for compatibility issues and allow you to fully or partially migrate your database schema and data to SQL Azure.

WPF Graphics Rendering Overview

Posted: 28 Jan 2011 08:45 AM PST

Learn about how WPF renders graphics.

SQL Azure Migration Wizard v3.5.1

Posted: 31 Aug 2009 02:23 PM PDT

SQL Azure Migration Wizard (SQLAzureMW) is designed to help you migrate your SQL Server 2005/2008 databases to SQL Azure. SQLAzureMW will analyze your source database for compatibility issues and allow you to fully or partially migrate your database schema and data to SQL Azure.

SQL Azure Migration Wizard v3.5

Posted: 31 Aug 2009 02:23 PM PDT

SQL Azure Migration Wizard (SQLAzureMW) is designed to help you migrate your SQL Server 2005/2008 databases to SQL Azure. SQLAzureMW will analyze your source database for compatibility issues and allow you to fully or partially migrate your database schema and data to SQL Azure.

Windows Phone 7 DeferredLoadContentControl

Posted: 28 Jan 2011 07:26 AM PST

This blog post describes a simple content control that can be used to defer the rendering of its contents in order to provide a better user experience on Windows Phone 7. I think anyone who has made the transition from Emulator to Hardware with developing...( read more )...(read more)

Silverlight Cream for January 26, 2011 -- #1036

Posted: 28 Jan 2011 06:40 AM PST

In this all-submittal Issue: XamlNinja , Kevin Dockx , Steve Wortham , Andrea Boschin , Mick Norman , Colin Eberhardt , and Rudi Grobler ( -2- , -3- , -4- , -5- ). Above the Fold: Silverlight: "Getting an invalid cross-thread exception in Silverlight...( read more )...(read more)

Heritage Shared

Posted: 28 Jan 2011 12:44 AM PST

A few days ago, we posted two C++ quizzes based on a question posted in a forum. Let's review the first question

 

Quiz 1
  1. #include <iostream>
  2.   
  3. class Foo {
  4. public:
  5.     virtual void DoStuff()=0;
  6. };
  7.   
  8. class Bar : public Foo {
  9. public:
  10.     virtual void DoStuff(int a)=0;
  11. };
  12.   
  13. class Baz : public Bar {
  14. public:
  15.     void DoStuff(int a) override
  16.     {
  17.         std::cout << "Baz::DoStuff(int)";
  18.     }
  19.   
  20.     void DoStuff() override
  21.     {
  22.         std::cout << "Baz::DoStuff()";
  23.     }
  24. };
  25.   
  26. int main() {
  27.     Baz baz;
  28.     Bar *pBar = &baz;
  29.   
  30.     pBar->DoStuff();
  31. }

 

The guy was frustrated because he expected two things:

  • The code would compile without errors.
  • Line 30 would end up by calling Baz::DoStuff() which in turn would have printed that same in the output console.

Instead, he got the following compile-time error at that same line

e:\foo.cpp(30): error C2660: 'Bar::DoStuff' : function does not take 0 arguments

The root of this compilation error is at line 11: as we are closing the definition of class Bar without saying anything about method DoStuff without arguments but, instead, having overloaded DoStuff in line 10 with a version that takes an argument of type int, what we just did was hide the original Foo::Stuff() declaration. With that said, the compilation error makes sense.

The fact that Foo::Stuff() is a pure virtual method is not a necessary condition for this to happen at all. It would have happened with virtual and non-virtual methods as well.

I have the feeling that Java and C# developers may have experienced this when coding artifacts in C++ as, in those languages, this notion of hiding declarations is not available (there's an alternative consisting in declaring members as private, so subclasses won't get them visible, but in that case the decision of what is hidden belongs to the coder of the superclass. In C++, the decision is to be taken by the coder of the derived class.

How could my friend overcome this error in order to get the application working as he expected? By including a using declaration in the definition of Bar like the one at line 5 here:

 

  1. class Bar : public Foo {
  2. public:
  3.     // using introduces a name from a base
  4.     // class into a derived class scope.
  5.     using Foo::DoStuff;
  6.     virtual void DoStuff(int a)=0;
  7. };

 

Now the application runs as initially intended.

Quiz 1 running


In quiz 2, the C++ principle we just reviewed applies as well, but if hiding was not what we wanted to do, this issue could turn into something more dangerous because the application will compile anyway and the undesired behavior will have to be discovered at runtime.

 

Quiz 2
  1. #include <iostream>
  2.   
  3. class Foo {
  4. public:
  5.     virtual void DoStuff(char a)=0;
  6. };
  7.   
  8. class Bar : public Foo {
  9. public:
  10.     virtual void DoStuff(int a)=0;
  11. };
  12.   
  13. class Baz : public Bar {
  14. public:
  15.     void DoStuff(int a) override
  16.     {
  17.         std::cout << "Baz::DoStuff(int)";
  18.     }
  19.   
  20.     void DoStuff(char a) override
  21.     {
  22.         std::cout << "Baz::DoStuff(char)";
  23.     }
  24. };
  25.   
  26. int main() {
  27.     Baz baz;
  28.     Bar *pBar = &baz;
  29.   
  30.     pBar->DoStuff('a');
  31. }

 

Despite the fact that Foo::DoStuff(char) isn't visible in line 30, the 'a' received as argument is implicitly converted to the int type, producing:

Implicit conversion

Again, the solution here is based on a using declaration as before:

 

  1. class Bar : public Foo {
  2. public:
  3.     using Foo::DoStuff;
  4.     virtual void DoStuff(int a)=0;
  5. };

 

Once declared, we just compile, run and… voilà

Quiz 2 fixed

 

As a conclusion, hiding a base class method is neither a bad thing nor something to avoid as long as it's exactly what you wanted to get.

Book update CRM 2011

Posted: 27 Jan 2011 03:48 PM PST

As I've been traveling around the world doing training events on CRM 2011, a lot of people have been asking about an update on the book and what our plans are for CRM 2011. In addition to being crazy busy with all the things leading up to the launch we...( read more )...(read more)

Thursday, January 27, 2011

sudo localize & make me-a-sandwich [Free PseudoLocalizer class makes it easy for anyone to identify potential localization issues in .NET applications]

sudo localize & make me-a-sandwich [Free PseudoLocalizer class makes it easy for anyone to identify potential localization issues in .NET applications]


sudo localize & make me-a-sandwich [Free PseudoLocalizer class makes it easy for anyone to identify potential localization issues in .NET applications]

Posted: 27 Jan 2011 10:31 AM PST

I've previously written about the benefits of localization and shown how to localize Windows Phone 7 applications . The techniques I describe in that post constitute a good workflow that's just as suitable for WPF and Silverlight desktop applications...( read more )...(read more)

Silverlight TV 59: What Goes Into Baking Silverlight?

Posted: 27 Jan 2011 09:48 AM PST

Silverlight TV 59: Ever wonder what goes into making Silverlight? In this week's episode of SLTV, John Papa goes behind the scenes with some folks who are responsible for testing and getting the Silverlight bits out to the public. Andy Rivas, Program...( read more )...(read more)

WP7 Contrib – the last messenger

Posted: 27 Jan 2011 09:43 AM PST

As you may already be aware the WP7C uses MVVM Light as its preferred MVVM framework. Laurent has a great implementation of a Mediator style pattern that he has aptly name the Messenger. What I really like about this is the simplicity when it comes to...( read more )...(read more)

Daily News Headline @SilverlightZone - 27 January 2011 - #12

Posted: 27 Jan 2011 01:46 AM PST

  Today, we have 19 new news items on various topics in Silverlight-Zone by different authors. We reached around 670 news items in one month. If you are a Silverlight or Windows Phone 7 application developer, follow Silverlight-Zone for daily posts...( read more )...(read more)

SilverlightShow for Jan 17-23, 2011

Posted: 27 Jan 2011 05:54 AM PST

Check out the Top Five most popular news at SilverlightShow for Jan 17-23, 2011. Jesse Liberty's list of a dozen of absolutely essential utilities for programmers grabbed the first place in last week's SilverlightShow top news. Among the most visited...( read more )...(read more)

Andrej Tozon on Hey weigh! WP7 application

Posted: 26 Jan 2011 04:50 PM PST

Don't miss... WP7 series by Andrea Boschin What is Windows Phone series WP7 for iPhone Developers book: Show more books Q1. Andrej - please introduce yourself briefly (experience, interests, key projects, etc) and tell us more about the application you...( read more )...(read more)

Windows Phone 7 - Part #2: Your First Application

Posted: 26 Jan 2011 02:00 PM PST

At the end of the previous part of this series we created a very simple application, starting from the Visual Studio 2010 template, at the sole scope of showing how simple is to create a Silverlight project and having it deployed to the phone for development...( read more )...(read more)

Quickly building a trial mode for a Windows Phone application

Posted: 26 Jan 2011 11:24 PM PST

Wow – long time no blog! Over the last few months, I took a bit of a break from blogging, but fear not – I've been a busy bee. Since I last blogged, a lot has changed for me. In particular, I decided to return to my home state of California. While I'm...( read more )...(read more)

Parallel Programming with Microsoft Visual C++ (Book in Progress)

Posted: 26 Jan 2011 11:28 PM PST

Parallel Programming with MS Visual C++

The patterns & practices group is writing a new guide that will introduce Visual C++ programmers to patterns for including parallelism in their applications. Examples of these patterns are parallel loops, parallel tasks and data aggregation with map-reduce. Each pattern has its own chapter. Each chapter includes a description of the problem, an example of where the pattern is applicable, and code that implements the solution. On this site you will find; a preliminary draft of the book, the accompanying code samples and answers to the end of chapter questions.

The authors just dropped chapters 4 and 5 in CodePlex, looking for feedback by Wednesday February 2nd. You'll get here these draft chapters and information about how to enter a review.

Wednesday, January 26, 2011

Daily News Headline @SilverlightZone - 26 January 2011 - #11

Daily News Headline @SilverlightZone - 26 January 2011 - #11


Daily News Headline @SilverlightZone - 26 January 2011 - #11

Posted: 26 Jan 2011 01:46 AM PST

Today, we have   22   news   items on various topics in   Silverlight-Zone   by different authors. Subscribe to our   news feed   and   email digest   to deliver it to your inbox. Also, follow us on Twitter...( read more )...(read more)

DelNet

Posted: 23 Jan 2011 04:40 PM PST

Tool created in C # to automate the development process.

With this tool, you do not need to spend time with the creation of classes of connection, data access layer, view or update data with Windows Forms.

Everything is here, ready.

SilverlightShow now supports Silverlight User Groups

Posted: 26 Jan 2011 03:40 AM PST

3.5 years ago we established SilverlightShow as a portal providing news, articles, events, webinars and anything related to the world of Silverlight. We also founded the Silverlight User Group in Bulgaria, which now amounts to 400+ members! Since recently...( read more )...(read more)

XNA for Silverlight developers: Part 2 - Text rendering

Posted: 25 Jan 2011 10:52 PM PST

This article is part 2 of the series "XNA for Silverlight developers": XNA for Silverlight developers: Part 0 – Why should I care? XNA for Silverlight developers: Part 1 – Fundamentals XNA for Silverlight developers: Part 2 – Text rendering...( read more )...(read more)

SilverlightShow now partners with SilverlightCream

Posted: 26 Jan 2011 01:53 AM PST

We all know the SilverlightCream – it is been there since the first official days of Silverlight providing us with the best of the community almost daily (thanks Dave!). As both SilverlightShow and SilverlightCream are devoted to help the Silverlight...( read more )...(read more)

SilverlightShow comes brand new in a month

Posted: 26 Jan 2011 01:26 AM PST

I'm really excited on how are the things going with SilverlightShow. We started about 3.5 years ago and only for the last year we have 60%+ growth of the visits. We got some really valuable persons for the community on board like Cigdem Patlak (Crocus...( read more )...(read more)

A Navigator Control For Visiblox Time Series Charts

Posted: 26 Jan 2011 12:51 AM PST

In this blog post I will describe the creation of a simple range selector UserControl, which can be used alongside a Visiblox chart to create an interactive navigator for time series data. Whether you are studying finance, politics, meteorology or sociology...( read more )...(read more)

Silverlight Cream for January 25, 2011 -- #1035

Posted: 25 Jan 2011 09:34 PM PST

In this Issue: Steve Wortham , Jesse Liberty ( -2- ), Martin Krüger , Joe McBride , Dan Wahlin , Walter Ferrari , Page Brooks , Deborah Kurata , WindowsPhoneGeek , Andrew Byrne , and Andrea Boschin . Above the Fold: Silverlight: "Clipping to Bounds with...( read more )...(read more)

Monday, January 24, 2011

Integrating HTML into Silverlight Applications

Integrating HTML into Silverlight Applications


Integrating HTML into Silverlight Applications

Posted: 24 Jan 2011 11:33 AM PST

Although Silverlight provides a great framework for building Line of Business applications, business processes often require HTML content, SSRS reports or PDF documents to be integrated into an application. In this post you'll learn about different strategies...( read more )...(read more)

Windows Client Developer Roundup 056 for 1/24/2011

Posted: 24 Jan 2011 08:54 AM PST

This is Windows Client Developer Roundup #56. The Windows Client Developer Roundup aggregates information of interest to Windows Client Developers, including WPF , Silverlight , Visual C++ , XNA , Expression Blend , Surface , Windows 7 , Windows Forms...( read more )...(read more)

Daily News Headline @SilverlightZone - 24 January 2011

Posted: 24 Jan 2011 01:41 AM PST

Today, we have 19 news items on various topics in Silverlight-Zone by different authors. Subscribe to the news feed and email digest to deliver it to your inbox. Also, follow us on Twitter @SilverlightZone for regular news tweet delivered to your twitter...( read more )...(read more)

Windows Client Developer Roundup 056 for 1/24/2011

Posted: 24 Jan 2011 08:54 AM PST

This is Windows Client Developer Roundup #56. The Windows Client Developer Roundup aggregates information of interest to Windows Client Developers, including WPF , Silverlight , Visual C++ , XNA , Expression Blend , Surface , Windows 7 , Windows Forms...( read more )...(read more)

“Create a Whimsical Animated Silverlight Background”

Posted: 24 Jan 2011 07:01 AM PST

This falls into the category of "just for fun" For a little while now I've been dropping small Silverlight tutorials onto the ActiveTuts site which is, primarily, geared towards Flash development. The ActiveTuts guys have been a real pleasure to work...( read more )...(read more)

Bytes by MSDN Interview: Roberto Leiton

Posted: 21 Jan 2011 12:17 AM PST

Roberto Leiton, CEO of ArtinSoft, and Tim Huckaby, Founder of InterKnowlogy, launch an interesting discussion around resurrecting fragile legacy applications. ArtinSoft, a leader in VB6 to VB.NET and C# migrations, has helped numerous enterprise companies rescue their application investments. Migrating to VB.NET and C# is just the first step. ArtinSoft also converts applications to Silverlight, and, ultimately, to Windows Azure in the Cloud. Learn how you can save time and resources by watching this video interview.

Save on MIX11 - Register by Feb 11

Posted: 14 Jan 2011 03:05 PM PST

MIX11 registration is now open with a special offer for early birds - register by February 11 and save $500 on your conference pass, plus one free hotel night when you book two or more nights. Visit MIX11 registration for details.

Pick Your Favorite MIX11 Sessions - Vote by Feb 4

Posted: 14 Jan 2011 03:05 PM PST

The MIX content team has selected the best community proposals, and now it's your turn to tell us what sessions you want at MIX11. Visit the Open Call page and pick your favorites by Feb 4. Selected sessions will be announced in mid-February.

Getting ready for Microsoft Silverlight Exam 70-506 (Part 2)

Posted: 24 Jan 2011 01:38 AM PST

In the first part of this article series, we focused on learning the skills required for the layout-related questions and topics in the Silverlight exam (70-506). We looked at the layout containers (such as the Grid and the ScrollViewer), the basic controls...( read more )...(read more)

Silverlight Cream for January 23, 2011 -- #1033

Posted: 23 Jan 2011 09:25 PM PST

In this Issue: Bart Czernicki , Rich Griffin , Andrew Tokeley , WindowsPhoneGeek , Daniel Egan , Beth Massi , Joost van Schaik , Michael Crump , Xpert360 , Deborah Kurata ( -2- ). Above the Fold: Silverlight: "Silverlight 4 – Simple Configuration Manager...( read more )...(read more)