by Bar Zohan
15. December 2011 19:04
Problem Definition:
If anyhow you'd like to access google web services (like Geocoding, Directions api etc.) inside a Silverlight browser application, when you use a webclient do the http request to the service you are going to get a security exception.
This is caused by the cross-domain-pol...
[More]
by Bar Zohan
26. October 2010 22:41
Beside parsing all other object types, DateTime parsing from JSON had been a great headache. As I did not need it for the current project I've just ignored DateTime typed attributes of JSON [pi.PropertyType != typeof(DateTime) :)]
[code:c#]
using System;using System.Net;using System.Windows;using ...
[More]
by Bar Zohan
26. October 2010 02:37
The following code gives you the ability to use images and different colored text together inside a textblock-like control.
XAML:
[code:xml]
<StackPanel x:Class="SilverlightUI.ChatText" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"  ...
[More]
by Bar Zohan
26. October 2010 02:31
[code:c#]
public static double MeasureString(string s, FontFamily fontFamily, int fontSize) { TextBlock t = new TextBlock(); ...
[More]