- Thread starter
- #71
AW: Skinning contest: One month to go
I didn't check your whole files yet.
But the problem here is that you create Windows UI objects, for example Ellipse in method CreateParticle().
Remove those usings:
using System.Windows.Media.Media3D;
using System.Windows.Media.Effects;
using System.Windows.Shapes;
and, off course, all usages of classes which belong to them. They don't belong into a MediaPortal 2 model.
I guess you copied the code from the original Particles program.
You have to provide the code which calculates the particle positions and maybe some properties for the particles, but not the UI elements of the particles in your model. The UI elements come from the skin file.
System.ArgumentException: WorkflowManager: Model with id '5726da5a-70d5-458f-af67-611293d97912' is not available
I didn't check your whole files yet.
But the problem here is that you create Windows UI objects, for example Ellipse in method CreateParticle().
Remove those usings:
using System.Windows.Media.Media3D;
using System.Windows.Media.Effects;
using System.Windows.Shapes;
and, off course, all usages of classes which belong to them. They don't belong into a MediaPortal 2 model.
I guess you copied the code from the original Particles program.
You have to provide the code which calculates the particle positions and maybe some properties for the particles, but not the UI elements of the particles in your model. The UI elements come from the skin file.