duwke Posted April 24, 2008 Report Share Posted April 24, 2008 Hi, I have the following pseudocode which is throwing an error: string sql = "some sql"; DataTable dt = DataLayer.GetSqlDt(sql); Chart1.DataSourceSettings.Fields.Add(new FieldMap("PRODUCT_FAMILY", FieldUsage.Label)); Chart1.DataSourceSettings.Fields.Add(new FieldMap(dt.Columns.ColumnName, FieldUsage.Value)); Chart1.DataSourceSettings.Fields.Add(new FieldMap(dt.Columns.ColumnName, FieldUsage.Value)); Chart1.DataSource = dt; // The current implementation of Silverlight Writer does not support artistic borders Chart1.Border = new SimpleBorder(); // Note that the Renderer has been set to Silverlight using the code below but it can // be also set at design-time Chart1.OutputWriter = new SilverlightWriter(); One of the "PRODUCT_FAMILY" rows has the following data = <PRODUCT_FAMILY>LL & BACKHOES</PRODUCT_FAMILY> The resulting XAML is <TextBlock Text="LL & BACKHOES" Canvas.Left="278.7413" Canvas.Top="208.375" FontFamily="Arial" FontSize="10.66667" Foreground="#000000"> Notice that the & is no longer encoded. This throws an error. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.