Hi,
I'm building a DLL which include multiples usercontrols and multiples Telerik Controls and I would like to know if it's possible to define the Office2013 theme at one place for my whole DLL instead of declaring it in each usercontrol which contain a Telerik Control???
Thank's
Alain
[TypeDescriptionProvider(typeof(Mono3DPropertiesTypeDescriptorProvider))] public class Mono3DPropertiesWrapper { public readonly Monogram.Mono3D.Control Control; public Mono3DPropertiesWrapper(Monogram.Mono3D.Control control) { if (control == null) { throw new ArgumentNullException("control"); } Control = control; }} public class Mono3DPropertiesTypeDescriptorProvider : TypeDescriptionProvider { public Mono3DPropertiesTypeDescriptorProvider() : base(TypeDescriptor.GetProvider(typeof(Mono3DPropertiesWrapper))) { } public override ICustomTypeDescriptor GetTypeDescriptor(Type objectType, object instance) {
//HERE IS THE PROBLEM: instance IS NULL. CALLSTACK IS BELLOW
return new Mono3DPropertiesTypeDescriptor(instance); } } public class Mono3DPropertiesTypeDescriptor : CustomTypeDescriptor { private readonly object instance; public Mono3DPropertiesTypeDescriptor(object instance) { this.instance = instance; }
...
}Hi
I'm using RadBook and Pdf viewer as follow:
Xaml Code:
<UserControl.Resources> <DataTemplate x:Key="LeftPageTemplate"> <Viewbox> <Grid> <UI:FixedDocumentSinglePagePresenter Page="{Binding}" Width="325" Height="447" FlowDirection="LeftToRight"/> <hosts:DrawingCanvas Width="325" Height="447" Margin="15" Background="#00000000" FlowDirection="LeftToRight" /> </Grid> </Viewbox> </DataTemplate></UserControl.Resources><telerik:RadBusyIndicator x:Name="BusyIndicator"> <telerik:RadBook x:Name="book" LeftPageTemplate="{StaticResource LeftPageTemplate}" RightPageTemplate="{StaticResource LeftPageTemplate}" IsVirtualizing="True" IsKeyboardNavigationEnabled="True" HorizontalAlignment="Center" VerticalAlignment="Center" FirstPagePosition="Right" HardPages="None" Margin="10" BorderThickness="1" BorderBrush="{telerik:Windows8Resource ResourceKey=BasicBrush}"/></telerik:RadBusyIndicator>C# Code:
public void LoadFile(Stream stream){ BusyIndicator.IsBusy = true; var UISyncContext = TaskScheduler.FromCurrentSynchronizationContext(); var task = new Task<RadFixedDocument>(() => LoadPdf(stream)); task.ContinueWith(t => { book.ItemsSource = t.Result.Pages; TotalPages = t.Result.Pages.Count; BusyIndicator.IsBusy = false; }, UISyncContext); task.Start();}private RadFixedDocument LoadPdf(Stream stream){ return new PdfFormatProvider(stream, FormatProviderSettings.ReadOnDemand).Import();}Everything seems to work fine!
But the problem is when I Load a file and start browsing pages, and monitor it on Task Manager, memory grows too high (i.e. more than 2GB)
Look at the attached files, one from Task manager and one from ANTS Memory Profiler!
What's wrong with my code? Should I do some extra work like releasing objects, pages, ... any thing!?

When using the Telerik example from http://docs.telerik.com/devtools/wpf/controls/dragdropmanager/how-to/howto-draganddrop-within-radgridview.html dragging an item to the empty space in the RadGridView causes the row to go to the top of the list. Is this the desired behavior? Is there a way to disable it?
I have attached a picture of dragging to the whitespace. The "spike" row is the last row. If I drag the "spike" row to the bottom whitespace, the "spike" row will become the top row in the list.
This is a usability issue with the Wizard.
I think it would be better to have the Finish button where the Cancel button currently is on the last page of the Wizard.
This is because users (and I certainly do) will mistakenly tend to click in the same place as Next to complete what they have been doing, only to find that they have actually cancelled the wizard and possibly lost all their processing.
This would also make the Telerik wizard consistent with other kinds (e.g. Installation wizards).
Hi,
Suppose that I want to implement custom IAppointment, IRecurrenceRule, IExceptionOccurrence. (for database purpose for sample like explain in your documentation). I don't want inherited from telerik class but implement myself interfaces.
If I want to add feature to export schedule in ics format, I can use your helper to do that like this :
AppointmentCalendarExporter exporter = new AppointmentCalendarExporter();exporter.Export(this.Appointments.OfType<IAppointment>(), txtWriter);
But your exporter make assumption on IExceptionOccurence and try to cast it in telerik class, and in my case it raise an exception :
"Impossible d'effectuer un cast d'un objet de type 'CustomExceptionOccurenceModel' en type 'Telerik.Windows.Controls.ScheduleView.ExceptionOccurrence'."
This behaviour is not really in phase with Appointment and RecurrenceRule, the helper don't suppose that IAppointment and IRecurrenceRule are telerik class. With do you have exception for IExceptionOccurrence ?
Regards
Luc