home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 2
Skins and Design
Skinning contest: One month to go
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="FreakyJ" data-source="post: 678125" data-attributes="member: 106003"><p><strong>AW: Skinning contest: One month to go</strong></p><p></p><p>I want to add Elements via Code on a Canvas <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>I want to draw ellipses on a Canvas and then move them around on the canvas <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>[code]var ellipse = new Ellipse();</p><p>//... some properties for the ellipse</p><p>// Add the Ellipse to the GUI</p><p>this.ParticleHost.Children.Add(ellipse);[/code]</p><p></p><p>I'm trying to make a particle background and got it to work with WPF, but not with MPF =)</p><p></p><p>//EDIT:</p><p>Oh, you are right, I found my little mistake in the post above.</p><p>I mean that I can access the WPF canvas Element with the following c# code^^</p><p></p><p>[code]this.ParticleHost.Children.Add(ellipse);[/code]</p><p></p><p>//EDIT2:</p><p>If I'm right I have to use the MP Ellipse Control? At the moment I'm using the WPF ellipse Control and I think that won't work with MP, right? oO The same with the brushes and blur effects..., right?</p><p>Hopefully you can help me out. I will be on vacations for 4 days <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /> So if you can't help me with the information I gave to you, I will post my little WPF application after my vacations, but the code is very messed up, because of try and error xD I have to clean it up first^^</p><p></p><p>And back to my problem I described first: I think I have to work with the {} to get access to my canvas... but can't find the right way in the documentation, only for stings oO Also other Plugins, like the videoplayer doesn't give me a hint, also it use a canvas^^</p><p></p><p>//EDIT3:</p><p>Additional information: The MPF works, just the code behind doesn't, here is my current MPF:</p><p>[CODE]<DockPanel Name="FastParticleBackground.Window1"</p><p>xmlns="www.team-mediaportal.com/2008/mpf/directx"</p><p>xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"</p><p>Context="{Model Id=5726DA5A-70D5-458f-AF67-611293D97912}"</p><p>Loaded="Window_Loaded"></p><p> <Grid></p><p> <Grid.Background></p><p> <RadialGradientBrush Center="0.54326,0.45465" RadiusX="0.602049" RadiusY="1.02049" GradientOrigin="0.4326,0.45465"></p><p> <GradientStop Color="#57ffe6" Offset="0"/></p><p> <GradientStop Color="#008ee7" Offset="0.718518495559692"/></p><p> <GradientStop Color="#2c0072" Offset="1"/></p><p> </RadialGradientBrush></p><p> </Grid.Background></p><p> <Canvas x:Name="ParticleHost" /></p><p> </Grid></p><p></DockPanel>[/CODE]</p></blockquote><p></p>
[QUOTE="FreakyJ, post: 678125, member: 106003"] [b]AW: Skinning contest: One month to go[/b] I want to add Elements via Code on a Canvas :) I want to draw ellipses on a Canvas and then move them around on the canvas :) [code]var ellipse = new Ellipse(); //... some properties for the ellipse // Add the Ellipse to the GUI this.ParticleHost.Children.Add(ellipse);[/code] I'm trying to make a particle background and got it to work with WPF, but not with MPF =) //EDIT: Oh, you are right, I found my little mistake in the post above. I mean that I can access the WPF canvas Element with the following c# code^^ [code]this.ParticleHost.Children.Add(ellipse);[/code] //EDIT2: If I'm right I have to use the MP Ellipse Control? At the moment I'm using the WPF ellipse Control and I think that won't work with MP, right? oO The same with the brushes and blur effects..., right? Hopefully you can help me out. I will be on vacations for 4 days ;) So if you can't help me with the information I gave to you, I will post my little WPF application after my vacations, but the code is very messed up, because of try and error xD I have to clean it up first^^ And back to my problem I described first: I think I have to work with the {} to get access to my canvas... but can't find the right way in the documentation, only for stings oO Also other Plugins, like the videoplayer doesn't give me a hint, also it use a canvas^^ //EDIT3: Additional information: The MPF works, just the code behind doesn't, here is my current MPF: [CODE]<DockPanel Name="FastParticleBackground.Window1" xmlns="www.team-mediaportal.com/2008/mpf/directx" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Context="{Model Id=5726DA5A-70D5-458f-AF67-611293D97912}" Loaded="Window_Loaded"> <Grid> <Grid.Background> <RadialGradientBrush Center="0.54326,0.45465" RadiusX="0.602049" RadiusY="1.02049" GradientOrigin="0.4326,0.45465"> <GradientStop Color="#57ffe6" Offset="0"/> <GradientStop Color="#008ee7" Offset="0.718518495559692"/> <GradientStop Color="#2c0072" Offset="1"/> </RadialGradientBrush> </Grid.Background> <Canvas x:Name="ParticleHost" /> </Grid> </DockPanel>[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Skins and Design
Skinning contest: One month to go
Contact us
RSS
Top
Bottom