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
Improving Menu structure
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: 1175578" data-attributes="member: 145639"><p>I believe my code it not so wrong, but it causes errors.</p><p>I have added transition effects for the MainMenu as for NextMenu (Example SlideInRight):</p><p>[CODE=XML] <Storyboard x:Key="SlideInRight" FillBehavior="Stop"></p><p> <StaticResource ResourceKey="TransitionBase"/></p><p> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" FillBehavior="HoldEnd" Storyboard.TargetName="NextPage" Storyboard.TargetProperty="RenderTransform.X"></p><p> <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1920"/></p><p> <SplineDoubleKeyFrame KeyTime="{StaticResource TransitionDuration}" Value="0"/></p><p> </DoubleAnimationUsingKeyFrames></p><p> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" FillBehavior="HoldEnd" Storyboard.TargetName="MainMenu" Storyboard.TargetProperty="RenderTransform.X"></p><p> <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/></p><p> <SplineDoubleKeyFrame KeyTime="{StaticResource TransitionDuration}" Value="-1920"/></p><p> </DoubleAnimationUsingKeyFrames></p><p> </Storyboard></p><p> </DockPanel.Resources>[/CODE]</p><p></p><p>I have added to transitionbase for MainMenu (same as for NextMenu):</p><p>[CODE=XML] <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="MainMenu" Storyboard.TargetProperty="AnimationStarted1"></p><p> <DiscreteObjectKeyFrame KeyTime="00:00:00" Value="True" /></p><p> </ObjectAnimationUsingKeyFrames></p><p> <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="MainMenu" Storyboard.TargetProperty="AnimationCompleted1"></p><p> <DiscreteObjectKeyFrame KeyTime="{StaticResource TransitionDuration}" Value="True" /></p><p> </ObjectAnimationUsingKeyFrames>[/CODE]</p><p></p><p>I have added (0/0) RenderTransform and AnimationStarted/Completed to MainMenu</p><p>[CODE=XML] <bv:GridListView x:Name="MainMenu" DockPanel.Dock="Center" Style="{ThemeResource HomeMenuListViewStyle}" Margin="0,0,0,0"</p><p> VerticalAlignment="Stretch" SetFocusPrio="Default"</p><p> ItemsSource="{Binding Source={StaticResource MenuModel},Path=PositionedMenuItems,Mode=OneTime}"</p><p> AnimationStarted="{Binding Source={StaticResource MenuModel},Path=AnimationStarted1,Mode=OneWayToSource}"</p><p> AnimationCompleted="{Binding Source={StaticResource MenuModel},Path=AnimationCompleted1,Mode=OneWayToSource}"</p><p> IsVisible="{Binding Source={StaticResource MenuModel},Path=!IsHome}"></p><p> <bv:GridListView.Resources></p><p> <CommandBridge x:Key="Menu_Command" Command="{Binding Path=Command,Mode=OneTime}"/></p><p> </bv:GridListView.Resources></p><p> <bv:GridListView.RenderTransform></p><p> <TranslateTransform X="0" Y="0"/></p><p> </bv:GridListView.RenderTransform></p><p> </bv:GridListView>[/CODE]</p><p></p><p>I don't know the usage of AnimationStarted and Completed, but I thought it's necessary also for MainMenu. If I leave it, it results in same error anyway <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="ge2301, post: 1175578, member: 145639"] I believe my code it not so wrong, but it causes errors. I have added transition effects for the MainMenu as for NextMenu (Example SlideInRight): [CODE=XML] <Storyboard x:Key="SlideInRight" FillBehavior="Stop"> <StaticResource ResourceKey="TransitionBase"/> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" FillBehavior="HoldEnd" Storyboard.TargetName="NextPage" Storyboard.TargetProperty="RenderTransform.X"> <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1920"/> <SplineDoubleKeyFrame KeyTime="{StaticResource TransitionDuration}" Value="0"/> </DoubleAnimationUsingKeyFrames> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" FillBehavior="HoldEnd" Storyboard.TargetName="MainMenu" Storyboard.TargetProperty="RenderTransform.X"> <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/> <SplineDoubleKeyFrame KeyTime="{StaticResource TransitionDuration}" Value="-1920"/> </DoubleAnimationUsingKeyFrames> </Storyboard> </DockPanel.Resources>[/CODE] I have added to transitionbase for MainMenu (same as for NextMenu): [CODE=XML] <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="MainMenu" Storyboard.TargetProperty="AnimationStarted1"> <DiscreteObjectKeyFrame KeyTime="00:00:00" Value="True" /> </ObjectAnimationUsingKeyFrames> <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="MainMenu" Storyboard.TargetProperty="AnimationCompleted1"> <DiscreteObjectKeyFrame KeyTime="{StaticResource TransitionDuration}" Value="True" /> </ObjectAnimationUsingKeyFrames>[/CODE] I have added (0/0) RenderTransform and AnimationStarted/Completed to MainMenu [CODE=XML] <bv:GridListView x:Name="MainMenu" DockPanel.Dock="Center" Style="{ThemeResource HomeMenuListViewStyle}" Margin="0,0,0,0" VerticalAlignment="Stretch" SetFocusPrio="Default" ItemsSource="{Binding Source={StaticResource MenuModel},Path=PositionedMenuItems,Mode=OneTime}" AnimationStarted="{Binding Source={StaticResource MenuModel},Path=AnimationStarted1,Mode=OneWayToSource}" AnimationCompleted="{Binding Source={StaticResource MenuModel},Path=AnimationCompleted1,Mode=OneWayToSource}" IsVisible="{Binding Source={StaticResource MenuModel},Path=!IsHome}"> <bv:GridListView.Resources> <CommandBridge x:Key="Menu_Command" Command="{Binding Path=Command,Mode=OneTime}"/> </bv:GridListView.Resources> <bv:GridListView.RenderTransform> <TranslateTransform X="0" Y="0"/> </bv:GridListView.RenderTransform> </bv:GridListView>[/CODE] I don't know the usage of AnimationStarted and Completed, but I thought it's necessary also for MainMenu. If I leave it, it results in same error anyway :) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Skins and Design
BlueVision
Improving Menu structure
Contact us
RSS
Top
Bottom