Silverlight 3 - DevCorner

Browse by Tags

All Tags » Silverlight 3 (RSS)

Silverlight at Windows Phone 7

Microsoft announced today, that new Windows Phone 7 Series will support Silverlight as one of 2 development frameworks. Second development framework will be XNA (will blog about it later). So, what’s new for Silverlight developers there? First, we have familiar tools: Windows Phone applications with Silverlight will be developed either with Visual Studio 2010, either with new “express” version called Visual Studio 2010 Express for Windows Phone. This “express” version will enable development with...

News: Silverlight TV

Silverlight TV channel airing on Channel 9 ! The mission of Silverlight TV is to provide premium Silverlight content through exclusive interviews with the members of the Silverlight product teams, partners and community leaders. You can watch the first episode right here where Keith Smith (Silverlight Group Program Manager), along with host John Papa (Silverlight Evangelist), discuss Silverlight 4's out-of-browser applications right here .   Key links for Silverlight TV Watch Silverlight...

PDC09 – Day 2 – Keynotes – Live blogging

PDC09 – Day 2 – Keynotes – Live blogging Like yesterday we are sitting in amazing place 8 row just in front of the stage creating a homorganic row of blue shirts (There is a power in numbers). Even that this happened after an hour of the keynotes I need to put this first : FREE LAPTOP !!! Steven just Announced that we all going to get a FRESH NEW LAPTOP from Acer to all. The crowed just jumped out of their chairs for that. When we first come to the PDC we asked our self what will be the “Gift” this...

Silverlight Tip: Enumerating embedded resources

Today I’ve got a “Call for Help” from one of Silverlight MVPs – Bill Reiss . The mail said: “I would like to enumerate all items that were marked as Content or Resource in the main XAP file. If I can’t do both I’d settle for one. Any sample code for this would be greatly appreciated. Bill”   I decided to help with embedded resources, because I did something like this in WPF. I’ve created sample application, which will display a list of resources in list box – from here it is very easy to use...

Silverlight Quick Tip: How to get localized resources from RESX file in code behind

It looks like I’m using too much resources and localizing too much applications lately :) This time I’ll show how to use localized resources from the RESX files. Here I already explained how to create the RESX files for Silverlight (by the way the article is relevant also for Visual Studio 2010 Beta 2 & Silverlight 3), and how to use those resources from XAML. In some cases, though, it is needed to use those resources from code behind. In my scenario I had to create value converter, which converts...

Silverlight Quick Tip: ChildWindow Title Customization

Today I discovered nice feature of ChildWindow control in Silverlight 3. I was at client’s location and been asked about the ChildWindow title customization with an icon. I had to admit, that I never tried to put something different than text and immediately looked at the type of Title property. For my surprise I found that the property is an “object”, and assumed that it could behave as a ContentPresenter/ContentControl. After 5 minutes I had the client’s request solved: My code is very simple:...

Silverlight Quick Tip: Dynamically Updating Class Fields/Properties

In previous post ( here ) I blogged about displaying values of class/control in runtime and displaying them in Visual Studio - like property window. Today I’ll show how to push them back to the class instance. In previous post I’ve stored values in “ObservableCollection<FieldsPropertiesData>” for easy databinding and connected this ListBox control. In order to get user input I’ve created TwoWay databinding in DataTemplate – here is updated data template: < Style TargetType ="local:FiledPropertyData">...

Israeli Developers Community Conference 2009 – Vote For My Sessions

The Israeli Developers Community Conference ( IDCC ) is all about developers learning, sharing and interacting with each other in an informal and relaxed atmosphere. It will take a place at Microsoft ILDC, 13 Shenkar st., Herzeliya, Israel Monday, 14 th September 2009 08:30 - 17:30 The community will decide upon the conference’s agenda – voting is open for everyone.   I’ve submitted two cool sessions: 5 Most Wanted Features in Silverlight 3 Many tips and tricks, best practices and as always...

Silverlight Quick Tip: Dynamically Displaying Class Fields/Properties

In one of my projects I had to create something like Visual Studio property window, for data set of different controls/data classes. Those controls/classes are still under development and I needed the way to display/change values of those properties dynamically without even knowing what is inside. For the simple case, let’s assume the following class which holds the data: public class SampleData { public SampleData() { BooleanProperty = false ; } public string StringProperty { get ; set ; } public...

Silverlight Quick Tip: How to Perform a Hit Test

In some cases, especially when developing rich UI application developer need to identify which control were clicked or under mouse pointer at some point of time or just under some coordinate at the UI. For those purposes Silverlight provides “FindElementsInHostCoordinates” function in VisualTreeHelper class. The function gets the Point (coordinate on the screen) or Rect (rectangular area) and UIElement which will be checked recursively to have any visual child's in desired coordinate/area. The...

Silverlight 3 and Expression Blend 3 Developers Day (22 July 2009) – Thanks for all participants!

Thank you all, who participated at Silverlight 3 and Blend 3 DevDay (Microsoft Israel offices)! As promised, I uploaded presentation slides presented during the session to my homepage – you could get in and see them anytime for a reference. My homepage is here .   Some demos already uploaded there (Sketch Flow Demo) and some others will be uploaded to the “Samples” page soon – stay tuned.   I’m really interesting within your feedback ( leave comments ) in order for me to be able to enhance...

Utility: Extmap Maker

Silverlight 3 has nice feature to reduce the XAP package size of application by providing external assembly parts. To enable this feature use Silverlight project properties: When this enabled, most of Microsoft assemblies will not reside inside XAP package, but as ZIP files alongside the XAP itself. The application manifest will point to those ZIP files. This will enable browser caching mechanism. Actually, compiler “decides” which assembly will could be used as external ZIP assembly by presence...

Silverlight Quick Tip: Resources in RESX files – Image Resources for Localization

This post was actually born in the middle of previous post :) I had to find the way to use images as a RESX resources – this actually was second question of the person who asked me about forcing the rebinding . Before starting, some theory about RESX usage in Silverlight. Silverlight support usage of RESX files and localization via “SupportedCultures” attribute in CSPROJ file. The attribute itself even exists in project created with Silverlight 3 Tools, but for some reason there is no interface to...

Silverlight Quick Tip: How to force re-binding

Today I’ll show how to do “dirty trick” to force re-binding and as a result UI value updating. First of all – the reasonable question – “Why force rebinding? Why not use INotifyPropertyChanged mechanism?” This was my questions also, but the person who asked the question had his reasons: he is using resources (Resx) to localize the application and bind the UI to those resources. Also UI gives user an ability to change the language (and code behind does it by changing CurrentThread.CurrentUICulture...

Silverlight 3 Quick Tip: Analytics

Silverlight 3 has new feature which should help us to understand how good our application performs. This feature is Analytics class. It Has 2 read-only properties AverageProcessLoad – average CPU used by this process across all the cores AverageProcessorLoad – average CPU usage across all cores In addition it has GpuCollection collection with objects of GpuInformation type. Each one of GpuInformation object provides information about: DeviceId – device ID of the GPU VendorId – vendor ID of the GPU...
More Posts Next page »