or
System.Windows.Data Error: 6 : 'StringFormat' converter failed to convert value 'Cleared' (type 'BookingStatus'); fallback value will be used, if available. BindingExpression:Path=Value; DataItem='GridViewCell' (Name=''); target element is 'TextBlock' (Name=''); target property is 'Text' (type 'String') FormatException:'System.FormatException: Format String can be only "G", "g", "X", "x", "F", "f", "D" or "d". at System.Enum.ToString(String format) at System.Enum.ToString(String format, IFormatProvider provider) at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args) at System.String.Format(IFormatProvider provider, String format, Object[] args) at System.Windows.Data.BindingExpression.ConvertHelper(IValueConverter converter, Object value, Type targetType, Object parameter, CultureInfo culture)'<DataTemplate x:Key="Cell.Enum" DataType="telerik:GridViewCell"> <TextBlock Text="{Binding Value, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:GridViewCell}}}" /></DataTemplate>
ThumbnailFactory tf = new ThumbnailFactory();PdfDocumentSource docSource = new PdfDocumentSource(new MemoryStream(myPdfByteArray), FormatProviderSettings.ReadAllAtOnce); foreach (RadFixedPage pdfPage in docSource.Document.Pages) { ImageSource pageImg = tf.CreateThumbnail(pdfPage, new System.Windows.Size(myWidth, myHeight)); // Do additional work here }