Windows Phone 7 Quick Tip: How to use Bing Maps in XNA games

Friday, October 22, 2010

A few days ago, a colleague of mine pointed out to this site which shows a Bing Maps usage within XNA game. I was intrigued how to achieve it… I know that Silverlight applications for Windows Phone 7 could use Bing Maps control (see great usage tutorial here), but XNA games cannot render Silverlight controls… To solve it, I decided to use a different approach for XNA – download image tiles and present them in XNA game. Let’s get started. First, in order to use Bing Maps API you need a Bing Maps Account and Application Private Key. The Bing Maps...

Silverlight Quick Tip: Dynamically Updating Class Fields/Properties

Thursday, August 27, 2009

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"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="local:FiledPropertyData"> <Grid ToolTipService.Placement="Mouse" Width="{TemplateBinding Width}"> ...

Silverlight Quick Tip: Dynamically Displaying Class Fields/Properties

Thursday, August 13, 2009

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 bool BooleanProperty { get; set; } public Button ButtonProperty { get;...

Silverlight 3: Hebrew and Arabic Support

Friday, July 10, 2009

Since I’m constantly getting many questions about Hebrew and Arabic support and also huge amount of requests to provide/support it, I’ve updated the SilverlightRTL project at codeplex to support Silverlight 3. The project homepage here. Latest release for Silverlight 3 RTW is here.   The updated source also includes sample application to demonstrate Bidi controls usage and comparison with standard core controls with Hebrew and Arabic:     Enjoy, Alex

Silverlight 3 Quick Tip #6: Navigation Framework and Uri Routing

Thursday, April 2, 2009

Silverlight 3 introduced the Navigation Framework and URI Routing features. Today I’ll show how to use those features. To use navigation features you could either create a new “Silverlight Navigation Application” or simply add relevant references to standard “Silverlight application” In case of standard “Silverlight Application” you need to add reference to “System.Windows.Controls.Navigation” assembly and relevant XAML introduce namespace: xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation" To use the navigation feature, simply add new Frame to your XAML page. Frame could have default content, specify Journal usage (own history storage or integration within browser’s history), raise navigation related events. <navigation:Frame x:Name="frame" Source="/Pages/DefaultPage.xaml" ...

Silverlight 3 Quick Tip #3: Creating custom easing for Silverlight animations

Thursday, March 19, 2009

This time I’ll show how to use new easing functions for animations. In Silverlight 3 we could apply one of existing easing functions to our animation (storyboard) or create our own. First, let’s apply existing easing function. On my sample page I have a bunch of buttons to control UI, a stack panel with some path that looks like a spring and a ball attached to it. Also I created a storyboard to animate the Width property: <StackPanel x:Name="LayoutRoot" Background="LightGray"> ...

Silverlight 2 Metro Training Event in Mumbai

Thursday, February 26, 2009

I’m doing a Silverlight 2 Training for MS Metro program in Mumbai. Thanks for all participants in this event. Hope you enjoyed the course as much as I enjoyed doing it. As promised the selected samples from this event could be found here. Samples updated…   Thanks and Enjoy the samples Alex

Silverlight 2 Developer Day – a minute after

Wednesday, February 4, 2009

Thank you all, who participated today at Silverlight 2 Developer Day (Microsoft Israel offices). I uploaded printouts of the slides, presented during the session and the demo code so you can download it for a reference. I’m really interesting within your feedback (leave comments) in order for me to be able to enhance it for future events.   PowerPoint printouts here:   Demo project sources here.     Thanks and hope to see you again next time! Alex

Silverlight in the Mesh and the “Cloud” – Hosted Service and Blob Storage (Part 2)

Thursday, January 15, 2009

Hello. As I promised here I’m starting to describe my experiences in creating Silverlight Mesh Enabled Web Application (MEWA or SMEWA) with Cloud Hosted Services and Cloud Storage. Today I’ll talk about creating the storage and supported hosted services. First of all I needed to be a part of Windows Azure CTP and have at least 1 Storage account (to have persistent and non-persistent storage in Windows Azure) and at least 1 Hosted Services account (environment that provides the hosting and management service for cloud based applications). To get such account(s) one should apply for them...