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
BlueVision
Titanium Extended
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="ge2301" data-source="post: 1179535" data-attributes="member: 145639"><p>I know and I also don't like it yet <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /> I took the hands over from another skin. When trying to change the length "unexpected" things happened.</p><p>Actually I need to do some calculations, as everything is done with "canvas" means offets related to top, bottom, right or left. It's not difficult, just I have to do it <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /></p><p></p><p>Ok, done</p><p>[CODE=XML] <Rectangle x:Name="MinuteHand" Canvas.Top="28" Canvas.Left="153" RadiusX="2" RadiusY="2" Fill="{ThemeResource AnalogClockHandColor}" Width="4" Height="127"></p><p> <Rectangle.RenderTransform></p><p> <RotateTransform CenterX="3" CenterY="127" Angle="{Binding Source={StaticResource TimeModel},Path=MinuteAngle}"/></p><p> </Rectangle.RenderTransform></p><p> </Rectangle>[/CODE]</p><p>Height and CenterY need to have the same value. If I reduce the value by 20 Pixel, I need to add those to Canvas.Top to keep the hand rotating around the correct reference <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /> Just in case somebody is interested</p><p>[ATTACH=full]177220[/ATTACH]</p></blockquote><p></p>
[QUOTE="ge2301, post: 1179535, member: 145639"] I know and I also don't like it yet :) I took the hands over from another skin. When trying to change the length "unexpected" things happened. Actually I need to do some calculations, as everything is done with "canvas" means offets related to top, bottom, right or left. It's not difficult, just I have to do it ;) Ok, done [CODE=XML] <Rectangle x:Name="MinuteHand" Canvas.Top="28" Canvas.Left="153" RadiusX="2" RadiusY="2" Fill="{ThemeResource AnalogClockHandColor}" Width="4" Height="127"> <Rectangle.RenderTransform> <RotateTransform CenterX="3" CenterY="127" Angle="{Binding Source={StaticResource TimeModel},Path=MinuteAngle}"/> </Rectangle.RenderTransform> </Rectangle>[/CODE] Height and CenterY need to have the same value. If I reduce the value by 20 Pixel, I need to add those to Canvas.Top to keep the hand rotating around the correct reference ;) Just in case somebody is interested [ATTACH=full]177220[/ATTACH] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Skins and Design
BlueVision
Titanium Extended
Contact us
RSS
Top
Bottom