Telerik Forums
UI for WPF Forum
5 answers
137 views

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)"

 

Dinko | Tech Support Engineer
Telerik team
 answered on 31 Mar 2020
2 answers
112 views
 Hello everyone,

i'm working with RadOpenFileDialog  in a WPF Desktop application with Fluent Theme, due to project needs i had to set the font size for the whole application a bit bigger with this code : 

                                                      FluentPalette.Palette.FontSizeS = 18;

                                                      FluentPalette.Palette.FontSize = 20;
                                                      FluentPalette.Palette.FontSizeL = 22;
                                                      FluentPalette.Palette.FontSizeXL = 24;

All work well but when i open a RadOpenFileDialog  window i have the line of address bar partially hided as showed in the screenshot in attachment.

What could be the cause of the problem ?

Thanks in advance.
Edgardo
Top achievements
Rank 1
 answered on 31 Mar 2020
1 answer
255 views

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

Dimitar
Telerik team
 answered on 30 Mar 2020
2 answers
100 views

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.

Maximiliano
Top achievements
Rank 1
Veteran
 answered on 30 Mar 2020
6 answers
551 views
<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

Ronny
Top achievements
Rank 1
 answered on 29 Mar 2020
0 answers
87 views
Hi! I am using your DragDrop example for Timeline in my application. I put a TimeLine in a DataGrid, but for some reason TimeLineItem doesn't move
Ratnikov
Top achievements
Rank 1
 asked on 29 Mar 2020
0 answers
94 views

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?

Andrew
Top achievements
Rank 1
 asked on 26 Mar 2020
1 answer
408 views

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.exe
Keine 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

Raul
Top achievements
Rank 1
 answered on 26 Mar 2020
2 answers
118 views

Short question: is there a way to display the values of my datapoints in RadLegend besides the title? What I like to see is something like this:

coloured_rectangle -- DataPoint-Value -- DataPoint-Label

Regards
Heiko

Vladimir Stoyanov
Telerik team
 answered on 26 Mar 2020
5 answers
720 views

This is probably just me not knowing how to make this control do this but...

I have a list of items and in-code I'm selecting an item that off-screen but RadListView doesn't auto-scroll to that item.  it IS selected just not in view.

Do I have to do something like:  radListView1.ShowSelectedItem(someRadListDataItem)

or perhaps from the item itself?  Something that works like this:  someRadListDataItem.EnsureVisible = True

??

 

Any help would be appreciated.

-c

Dinko | Tech Support Engineer
Telerik team
 answered on 26 Mar 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?