Hi,
I'm working on a Silverlight program, which is used to display the preview of an email. Once user entered the email and clicked preview button, that message will display as a html content in preview window, which has created using a telerik RadPlaceHolder. But when click the the button it gives the following error. Can someone help me to sort out this issue. Kindly note that I'm silverlight beginner.
The invocation of the constructor on type 'Telerik.Windows.Controls.RadHtmlPlaceholder' that matches the specified binding constraints threw an exception. [Line: 9 Position: 77]
This is my code
<telerik:RadWindow x:Class="Mcs.Crm.ReportBursting.Controls.PrintPreview"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
Width="400"
Height="300" HorizontalAlignment="Center" VerticalAlignment="Center">
<Grid x:Name="LayoutRoot" Background="White">
<Border BorderBrush="Black" BorderThickness="1">
<telerik:RadHtmlPlaceholder x:Name="RadHtmlPlaceholder1" Margin="10"/>
</Border>
</Grid>
</telerik:RadWindow >
public partial class PrintPreview : RadWindow
{
string mHtml;
public PrintPreview()
{
InitializeComponent();
}
public PrintPreview(string html)
{
try
{
InitializeComponent();
}
catch (Exception)
{
throw;
}
mHtml = html;
Loaded += new RoutedEventHandler(Page_Loaded);
}
private void Page_Loaded(object sender, RoutedEventArgs e)
{
RadHtmlPlaceholder1.HtmlSource = mHtml;
}