simos-sigma
New member
Hello!!!
I am trying to make a custom UITypeEditor with a dialog box which will import .svg files into a project or will select one from those already imported, like the Select Resource Dialog Box does with other files.
I have managed to make it get the .svg file from a file and then place it to my custom control. What I want to do now is to have the ability to select imported .svg files from the resources of the project where my control library will added to.
I tried something like this...
...but I am getting the resources of the control library project and not the resources of the project where my control library is added to!!!
Any idea how can I achieve that?
Thank you for your time in advance!!!
I am trying to make a custom UITypeEditor with a dialog box which will import .svg files into a project or will select one from those already imported, like the Select Resource Dialog Box does with other files.
I have managed to make it get the .svg file from a file and then place it to my custom control. What I want to do now is to have the ability to select imported .svg files from the resources of the project where my control library will added to.
I tried something like this...
C#:
var images = typeof(Properties.Resources).GetProperties(BindingFlags.Static | BindingFlags.NonPublic | BindingFlags.Public)
.Where(p => p.PropertyType == typeof(Bitmap))
.Select(x => new { Name = x.Name, Image = x.GetValue(null, null) })
.ToList();
...but I am getting the resources of the control library project and not the resources of the project where my control library is added to!!!
Any idea how can I achieve that?
Thank you for your time in advance!!!