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
ThemeResources don't reload all the time?! / Could not convert object '1,1,1,1'...
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: 687097" data-attributes="member: 106003"><p><strong>AW: ThemeResources don't reload all the time?! / Could not convert object '1,1,1,1'..</strong></p><p></p><p>Yes, I saw this error message in the log file =) But I thought the system would take 4 times "1" and convert it to double and assign this value to every side, so I was confused. The same with "CornerRadius", I thought every number is for every corner... but as far as I understand it now MPF can only take one value and apply it to every corner...</p><p></p><p>Another point is the Width attribute of the border element.</p><p>Due to MSDN it should have a value "Auto", but MP2 hasn't. I also tried the "*", I saw it often and thought it is maybe a wildcard with the same function like "Auto", but I just get the same converting error like above... </p><p></p><p>The grid element does support this:</p><p>[code]<Grid.RowDefinitions></p><p> <RowDefinition Height="0.507*"/></p><p> <RowDefinition Height="0.493*"/></p><p></Grid.RowDefinitions>[/code]</p><p></p><p>And yes, this time I took a look into the source and found only this definitions:</p><p>[code]_borderProperty = new SProperty(typeof(Brush), null);</p><p> _backgroundProperty = new SProperty(typeof(Brush), null);</p><p> _borderThicknessProperty = new SProperty(typeof(double), 1.0);</p><p> _cornerRadiusProperty = new SProperty(typeof(double), 0.0);[/code]</p><p></p><p>and in the grid.cs i found this comment:</p><p></p><p>so I guess this function isn't implemented in the border class >_></p><p>I guess there must be a file with the global attributes (the attributes which every element has), I think you didn't rewrote this functions for every element, but I can't find it yet...</p><p></p><p>I'm getting closer and closer with MPF^^ But due to the big difference to WPF I have a lot of questions, sorry about that, but it also will help other people to understand MPF =)</p><p></p><p>//Edit:</p><p>What was the link to the source docs again? I can't find the link right now... I think it was something like srcdocs.team-mediaportal.com/MP2 or Mediaportal2...</p><p></p><p>//Edit2:</p><p>found it via google: <a href="http://src-doc.team-mediaportal.com/mediaportal_2/" target="_blank">http://src-doc.team-mediaportal.com/mediaportal_2/</a></p><p></p><p>//Edit3:</p><p>I have to correct myself:</p><p></p><p><a href="http://src-doc.team-mediaportal.com/mediaportal_2/d7/dd4/class_media_portal_1_1_u_i_1_1_skin_engine_1_1_controls_1_1_panels_1_1_row_definition.html" target="_blank">http://src-doc.team-mediaportal.com/mediaportal_2/d7/dd4/class_media_portal_1_1_u_i_1_1_skin_engine_1_1_controls_1_1_panels_1_1_row_definition.html</a></p><p></p><p>the element "rowDefinition" supports wildcards/auto in the height element, it is of the type gridLength, but in the border class both (width and height) are of the type double.. is it intention or I'm at the moment absolutely off track?</p></blockquote><p></p>
[QUOTE="FreakyJ, post: 687097, member: 106003"] [b]AW: ThemeResources don't reload all the time?! / Could not convert object '1,1,1,1'..[/b] Yes, I saw this error message in the log file =) But I thought the system would take 4 times "1" and convert it to double and assign this value to every side, so I was confused. The same with "CornerRadius", I thought every number is for every corner... but as far as I understand it now MPF can only take one value and apply it to every corner... Another point is the Width attribute of the border element. Due to MSDN it should have a value "Auto", but MP2 hasn't. I also tried the "*", I saw it often and thought it is maybe a wildcard with the same function like "Auto", but I just get the same converting error like above... The grid element does support this: [code]<Grid.RowDefinitions> <RowDefinition Height="0.507*"/> <RowDefinition Height="0.493*"/> </Grid.RowDefinitions>[/code] And yes, this time I took a look into the source and found only this definitions: [code]_borderProperty = new SProperty(typeof(Brush), null); _backgroundProperty = new SProperty(typeof(Brush), null); _borderThicknessProperty = new SProperty(typeof(double), 1.0); _cornerRadiusProperty = new SProperty(typeof(double), 0.0);[/code] and in the grid.cs i found this comment: so I guess this function isn't implemented in the border class >_> I guess there must be a file with the global attributes (the attributes which every element has), I think you didn't rewrote this functions for every element, but I can't find it yet... I'm getting closer and closer with MPF^^ But due to the big difference to WPF I have a lot of questions, sorry about that, but it also will help other people to understand MPF =) //Edit: What was the link to the source docs again? I can't find the link right now... I think it was something like srcdocs.team-mediaportal.com/MP2 or Mediaportal2... //Edit2: found it via google: [url]http://src-doc.team-mediaportal.com/mediaportal_2/[/url] //Edit3: I have to correct myself: [url]http://src-doc.team-mediaportal.com/mediaportal_2/d7/dd4/class_media_portal_1_1_u_i_1_1_skin_engine_1_1_controls_1_1_panels_1_1_row_definition.html[/url] the element "rowDefinition" supports wildcards/auto in the height element, it is of the type gridLength, but in the border class both (width and height) are of the type double.. is it intention or I'm at the moment absolutely off track? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Skins and Design
ThemeResources don't reload all the time?! / Could not convert object '1,1,1,1'...
Contact us
RSS
Top
Bottom