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: 1177039" data-attributes="member: 145639"><p>[USER=48495]@morpheus_xx[/USER]</p><p>I'd like to make the focus frame bahavior smoother and tried below. But it causes errors:</p><p>"---> System.ArgumentException: Das Objekt mit dem Typ "System.Collections.Generic.List`1[System.Object]" kann nicht in den Typ "MediaPortal.UI.SkinEngine.Controls.Animations.Storyboard" konvertiert werden"</p><p>When a button gets focused, it shall fade in and when the focus is lost, it shall face out. Any idea how to realize it quickly?</p><p>[CODE=XML]</p><p> <DataTrigger Binding="Path=HasFocus" Value="True"></p><p> <DataTrigger.EnterActions></p><p> <BeginStoryboard></p><p> <Storyboard></p><p> <DoubleAnimation</p><p> Storyboard.TargetName="ButtonControlRectangle"</p><p> Storyboard.TargetProperty="Opacity"</p><p> From="0.0" To="1.0" Duration="0:0:3"/></p><p> </Storyboard></p><p> </BeginStoryboard></p><p> </DataTrigger.EnterActions></p><p></p><p> <DataTrigger.ExitActions></p><p> <BeginStoryboard></p><p> <Storyboard></p><p> <DoubleAnimation</p><p> Storyboard.TargetName="ButtonControlRectangle"</p><p> Storyboard.TargetProperty="Opacity"</p><p> From="1.0" To="0.0" Duration="0:0:3"/></p><p> </Storyboard></p><p> </BeginStoryboard></p><p> </DataTrigger.ExitActions></p><p> </DataTrigger></p><p>[/CODE]</p><p></p><p>This also doesn't work:</p><p>[CODE=XML] <EventTrigger RoutedEvent="GotFocus"></p><p> <BeginStoryboard></p><p> <Storyboard></p><p> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" FillBehavior="HoldEnd" Storyboard.TargetName="ButtonControlRectangle" Storyboard.TargetProperty="Opacity"></p><p> <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/></p><p> <SplineDoubleKeyFrame KeyTime="00:00:09" Value="1"/></p><p> </DoubleAnimationUsingKeyFrames></p><p> </Storyboard></p><p> </BeginStoryboard></p><p> </EventTrigger></p><p></p><p> <EventTrigger RoutedEvent="LostFocus"></p><p> <BeginStoryboard></p><p> <Storyboard></p><p> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" FillBehavior="HoldEnd" Storyboard.TargetName="ButtonControlRectangle" Storyboard.TargetProperty="Opacity"></p><p> <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/></p><p> <SplineDoubleKeyFrame KeyTime="00:00:09" Value="0"/></p><p> </DoubleAnimationUsingKeyFrames></p><p> </Storyboard></p><p> </BeginStoryboard></p><p> </EventTrigger>[/CODE]</p></blockquote><p></p>
[QUOTE="ge2301, post: 1177039, member: 145639"] [USER=48495]@morpheus_xx[/USER] I'd like to make the focus frame bahavior smoother and tried below. But it causes errors: "---> System.ArgumentException: Das Objekt mit dem Typ "System.Collections.Generic.List`1[System.Object]" kann nicht in den Typ "MediaPortal.UI.SkinEngine.Controls.Animations.Storyboard" konvertiert werden" When a button gets focused, it shall fade in and when the focus is lost, it shall face out. Any idea how to realize it quickly? [CODE=XML] <DataTrigger Binding="Path=HasFocus" Value="True"> <DataTrigger.EnterActions> <BeginStoryboard> <Storyboard> <DoubleAnimation Storyboard.TargetName="ButtonControlRectangle" Storyboard.TargetProperty="Opacity" From="0.0" To="1.0" Duration="0:0:3"/> </Storyboard> </BeginStoryboard> </DataTrigger.EnterActions> <DataTrigger.ExitActions> <BeginStoryboard> <Storyboard> <DoubleAnimation Storyboard.TargetName="ButtonControlRectangle" Storyboard.TargetProperty="Opacity" From="1.0" To="0.0" Duration="0:0:3"/> </Storyboard> </BeginStoryboard> </DataTrigger.ExitActions> </DataTrigger> [/CODE] This also doesn't work: [CODE=XML] <EventTrigger RoutedEvent="GotFocus"> <BeginStoryboard> <Storyboard> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" FillBehavior="HoldEnd" Storyboard.TargetName="ButtonControlRectangle" Storyboard.TargetProperty="Opacity"> <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/> <SplineDoubleKeyFrame KeyTime="00:00:09" Value="1"/> </DoubleAnimationUsingKeyFrames> </Storyboard> </BeginStoryboard> </EventTrigger> <EventTrigger RoutedEvent="LostFocus"> <BeginStoryboard> <Storyboard> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" FillBehavior="HoldEnd" Storyboard.TargetName="ButtonControlRectangle" Storyboard.TargetProperty="Opacity"> <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/> <SplineDoubleKeyFrame KeyTime="00:00:09" Value="0"/> </DoubleAnimationUsingKeyFrames> </Storyboard> </BeginStoryboard> </EventTrigger>[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Skins and Design
BlueVision
Titanium Extended
Contact us
RSS
Top
Bottom