Hi,
I need to retrieve the recurrence pattern and set it to our custom object. I tried various methods. In all these cases, I am not able to retrieve DaysOfWeekMask which holds values like "Sunday" or "Monday|Tuesday|Wednesday" and cast it to our custom object DaysOfWeek which is also an enum.
1st Method
a) RecurrenceDays days = new RecurrenceDays();
days = days.AddDay(CurrentCreatedAppointment.RecurrenceRule.Pattern.DaysOfWeekMask);
var s = days.GetDaysOfWeek().Select(x => (DaysOfWeek)Enum.Parse(typeof(DaysOfWeek), x.ToString())).AsEnumerable();
viewModel.BackupArchiveSettings.ByDay = new ObservableCollection<DaysOfWeek>( s);
var k = s.GetEnumerator();
var k1 = k.Current;
2nd Method
RecurrenceDays days = new RecurrenceDays();
days = days.AddDay(CurrentCreatedAppointment.RecurrenceRule.Pattern.DaysOfWeekMask);
var s = days.GetDaysOfWeek().Select(x => (DaysOfWeek)Enum.Parse(typeof(DaysOfWeek), x.ToString())).AsEnumerable();
newcol = new ObservableCollection<DaysOfWeek>();
foreach (var item in s.ToList())
{
viewModel.BackupArchiveSettings.ByDay.Add(item);
}
Please help
Thanks,
Divya


The Situation when I will drop and add a shape. before added shape drawing on the diagram, I want to execute Diagram.Align() method with all shapes.
In Detail, I will drop and add ContainerShape into another ContainerShape.
Another ContainerShape has a child, a shape.
After Dropped and Added, I try to Align ContainerShape's Childrens when Other ContainerShape calls "OnItemsCollectionChanged"
but, if i try to Align with dropped shape. it occurs to Empty Rect Error.
"Empty Rect cannot modify this property"
e.StackTrace " location: System.Windows.Rect.set_X(Double value)\r\n location: Telerik.Windows.Diagrams.Core.GraphController.AlignShape(IShape shape, Point oldPosition, Point alignedPosition, Alignment alignment)\r\n location: Telerik.Windows.Diagrams.Core.GraphController.AlignShapes(Alignment alignment, IEnumerable`1 shapes)\r\n location: CloudRPA.Views.Diagram.DiagramContainerShape.ReArrangedItem(Boolean isAdd)"

Hi guys,
I'm trying to capture the print event of a RadPDFViewer to not only print the PDF but also save it to a predifined location everytime it is printed.
Ithought about the Click event in the toolbar, but I also need to capture it if printed from contextmenu.
I have read something about inherit the print command, but I haven't gotten how to do that.
Greetings,
Benedikt

Hi,
i need to save the content of the radrichtextbox as an image, i didn't find any method to implement this.
thanks in advance.
<telerik:RadComboBox IsEditable="True" IsTextSearchCaseSensitive="False" Text="{Binding SchoolEducation}" ItemsSource="{Binding SchoolEducations}" />
Hi,
since Release 2020.1.218 the TextProperty-Binding does not refresh my property in my ViewModel.
I also tried the current internal version.
Best regards,
Ronny Glass
Hello!
The right behavior for using panes in Docking is like that: we set/modify PanesSource property, Panes property is initialized by using PanesSource and DockingPanesFactory, panes are created or removed. But when set PanesSource, try to load invalid layout and get an exception, Docking.Panes property is set to null and actual panes is not removed, because we don`t have them in Panes property. This behavior cause problems with resolving panes (because there are old panes in memory, that should have been removed). Can you suggest some sort of validation for layout or ways to clean old panes from memory?
Hello,
yesterday I installed the latest Visual Studio 2019 update and now I'm getting in the line
var dllStream = currentAssembly.GetManifestResourceStream(fullDllName);
a value of null (called in CurrentDomain_AssemblyResolve()). It was working good all the time.
I'm using the code posted here:
https://www.telerik.com/forums/how-to-display-controls-(like-radwindow)-at-design-time-when-noxaml-is-used-and-implicit-style-resources-are-in-a-custom-dll#Pz5cUcqhtk-t3EQHJuJYHg
public class TelerikThemeUtilities{ static TelerikThemeUtilities() { AppDomain.CurrentDomain.AssemblyResolve += CurrentDomain_AssemblyResolve; } public static void Initialize() { } public static bool GetDesignTime(DependencyObject obj) { return (bool)obj.GetValue(DesignTimeProperty); } public static void SetDesignTime(DependencyObject obj, bool value) { obj.SetValue(DesignTimeProperty, value); } public static readonly DependencyProperty DesignTimeProperty = DependencyProperty.RegisterAttached( "DesignTime", typeof(bool), typeof(TelerikThemeUtilities), new PropertyMetadata(false, DesignTimeChanged)); private static void DesignTimeChanged(DependencyObject target, DependencyPropertyChangedEventArgs args) { if (((bool)args.NewValue) && System.ComponentModel.DesignerProperties.GetIsInDesignMode(target)) { FrameworkElement element = target as FrameworkElement; LoadTelerikTheme(element.Resources, "Crystal"); } } public static void LoadTelerikTheme(string themeName) { Application.Current.Resources.Clear(); LoadTelerikTheme(Application.Current.Resources, themeName); } private static void LoadTelerikTheme(ResourceDictionary resources, string themeName) { resources.MergedDictionaries.Add(new ResourceDictionary() { Source = new Uri("/Telerik.Windows.Themes." + themeName + ";component/Themes/Telerik.Windows.Controls.xaml", UriKind.RelativeOrAbsolute) }); resources.MergedDictionaries.Add(new ResourceDictionary() { Source = new Uri("/Telerik.Windows.Themes." + themeName + ";component/Themes/Telerik.Windows.Controls.Input.xaml", UriKind.RelativeOrAbsolute) }); resources.MergedDictionaries.Add(new ResourceDictionary() { Source = new Uri("/Telerik.Windows.Themes." + themeName + ";component/Themes/Telerik.Windows.Controls.Navigation.xaml", UriKind.RelativeOrAbsolute) }); resources.MergedDictionaries.Add(new ResourceDictionary() { Source = new Uri("/Telerik.Windows.Themes." + themeName + ";component/Themes/Telerik.Windows.Controls.GridView.xaml", UriKind.RelativeOrAbsolute) }); resources.MergedDictionaries.Add(new ResourceDictionary() { Source = new Uri("/Telerik.Windows.Themes." + themeName + ";component/Themes/Telerik.Windows.Documents.xaml", UriKind.RelativeOrAbsolute) }); } private static System.Reflection.Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args) { var dllName = args.Name.Substring(0, args.Name.IndexOf(',')) + ".dll"; if (dllName.Contains("Telerik")) { var currentAssembly = System.Reflection.Assembly.GetExecutingAssembly(); var fullDllName = currentAssembly.GetName().Name + ".lib." + dllName; var dllStream = currentAssembly.GetManifestResourceStream(fullDllName); var streamBytes = new byte[dllStream.Length]; dllStream.Read(streamBytes, 0, streamBytes.Length); var requestedAssembly = System.Reflection.Assembly.Load(streamBytes); return requestedAssembly; } else { return null; } } }}
- $exception {"Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt."} System.NullReferenceException+ Data {System.Collections.ListDictionaryInternal} System.Collections.IDictionary {System.Collections.ListDictionaryInternal} HResult -2147467261 int HelpLink null string+ InnerException null System.Exception Message "Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt." string Source "PsShell" string StackTrace " bei PsShell.TelerikThemeUtilities.CurrentDomain_AssemblyResolve(Object sender, ResolveEventArgs args) in C:\\Projects\\PSV\\PSV-Client\\source\\PsShell\\TelerikThemeUtilities.cs: Zeile64" string+ TargetSite {System.Reflection.Assembly CurrentDomain_AssemblyResolve(System.Object, System.ResolveEventArgs)} System.Reflection.MethodBase {System.Reflection.RuntimeMethodInfo}+ Statische Member + Nicht öffentliche Member + sender {Name:PsShell.exeKeine Kontextrichtlinien vorhanden.} object {System.AppDomain}+ args {System.ResolveEventArgs} System.ResolveEventArgs dllName "Telerik.Windows.Controls.resources.dll" string+ currentAssembly {PsShell, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null} System.Reflection.Assembly {System.Reflection.RuntimeAssembly} fullDllName "PsShell.lib.Telerik.Windows.Controls.resources.dll" string+ dllStream null System.IO.Stream streamBytes null byte[] requestedAssembly null System.Reflection.Assembly
Any ideas?
Best Regards,
Raul