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
Blue Vision
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: 1200660" data-attributes="member: 145639"><p>[USER=48291]@Brownard[/USER]</p><p>I think I know the reason for the sudden menu closing when scrolling through the SlideMenu.</p><p>I think the focus handling is always related to the original position of items, but the MenuButtom is shifted to the left with negative margins to be visible when the menu is closed.</p><p>I'll try to fix that. The only thing I don't understand is that it happens not every time. It seems to depend on the speed of scrolling. <strong>Edit: Shifting the button to the left without negative margins did not solve the problem ... so there must be another reason, but I'm out of ideas.</strong></p><p></p><p>Also I've found a small problem, most probably related to scrollmargins?!</p><ul> <li data-xf-list-type="ul">If you go to the coverflow view and directly press "down" the SlideMenu moves up. When pressing "left" the focus falls back to the first MI -> so far everything works perfect</li> <li data-xf-list-type="ul">Now do the same, but beforehand scroll a bit to the right, so you have one left-sided semitransparent poster in the MI list. The SlideMenu move up, but the focus can never go back to the MI list, you stuck in the menu.</li> </ul><p>In very seldom cases (1/50 trials) MP2 freezes in gridview without any errorlogs, I have no clue why <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" /></p><p></p><p>btw. I've added nice visual effects to the slide menu:</p><ul> <li data-xf-list-type="ul">When the menu is smoothly sliding out, the background fades darker at the same time</li> <li data-xf-list-type="ul">When the menu is almost reaching it's final position a light blur fades into the background.</li> <li data-xf-list-type="ul">Opposite effects happen when the menu slides back</li> </ul><p>[ATTACH=full]183555[/ATTACH]</p><p></p><p>Setting this behaviour was quite tricky. Because the darkening is achieved with a black overlay, mouse controls are not available. But I can not set the "IsVisible" property of the overlay based on "IsMenuOpen" property, simply because the overlay fade-out effect from storyboard won't be visible (because the overlay is set to "IsVisible=False" before it is started.</p><p>I set following:</p><p>[CODE=XML] <Storyboard x:Key="SlideInStoryboard" FillBehavior="HoldEnd"></p><p> <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" FillBehavior="HoldEnd" Storyboard.TargetName="FadeBackground" Storyboard.TargetProperty="IsVisible"></p><p> <DiscreteObjectKeyFrame KeyTime="00:00:00" Value="True"/></p><p> </ObjectAnimationUsingKeyFrames></p><p> [...]</p><p> </Storyboard></p><p> [...]</p><p> <Storyboard x:Key="SlideOutStoryboard" FillBehavior="HoldEnd"></p><p> <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" FillBehavior="HoldEnd" Storyboard.TargetName="FadeBackground" Storyboard.TargetProperty="IsVisible"></p><p> <DiscreteObjectKeyFrame KeyTime="00:00:00" Value="True"/></p><p> <DiscreteObjectKeyFrame KeyTime="00:00:00.65" Value="False"/></p><p> </ObjectAnimationUsingKeyFrames></p><p> </Storyboard>[/CODE]</p><p>Now the mouse controls are working only before the menu is opened once. The solution was to set the FillBehaviour of the ObjectAnmimationUsingKeyFrame to "Stop".</p><p>As the last value was "False" I thought there should be no issue, but actually there was.</p></blockquote><p></p>
[QUOTE="ge2301, post: 1200660, member: 145639"] [USER=48291]@Brownard[/USER] I think I know the reason for the sudden menu closing when scrolling through the SlideMenu. I think the focus handling is always related to the original position of items, but the MenuButtom is shifted to the left with negative margins to be visible when the menu is closed. I'll try to fix that. The only thing I don't understand is that it happens not every time. It seems to depend on the speed of scrolling. [B]Edit: Shifting the button to the left without negative margins did not solve the problem ... so there must be another reason, but I'm out of ideas.[/B] Also I've found a small problem, most probably related to scrollmargins?! [LIST] [*]If you go to the coverflow view and directly press "down" the SlideMenu moves up. When pressing "left" the focus falls back to the first MI -> so far everything works perfect [*]Now do the same, but beforehand scroll a bit to the right, so you have one left-sided semitransparent poster in the MI list. The SlideMenu move up, but the focus can never go back to the MI list, you stuck in the menu. [/LIST] In very seldom cases (1/50 trials) MP2 freezes in gridview without any errorlogs, I have no clue why :( btw. I've added nice visual effects to the slide menu: [LIST] [*]When the menu is smoothly sliding out, the background fades darker at the same time [*]When the menu is almost reaching it's final position a light blur fades into the background. [*]Opposite effects happen when the menu slides back [/LIST] [ATTACH=full]183555[/ATTACH] Setting this behaviour was quite tricky. Because the darkening is achieved with a black overlay, mouse controls are not available. But I can not set the "IsVisible" property of the overlay based on "IsMenuOpen" property, simply because the overlay fade-out effect from storyboard won't be visible (because the overlay is set to "IsVisible=False" before it is started. I set following: [CODE=XML] <Storyboard x:Key="SlideInStoryboard" FillBehavior="HoldEnd"> <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" FillBehavior="HoldEnd" Storyboard.TargetName="FadeBackground" Storyboard.TargetProperty="IsVisible"> <DiscreteObjectKeyFrame KeyTime="00:00:00" Value="True"/> </ObjectAnimationUsingKeyFrames> [...] </Storyboard> [...] <Storyboard x:Key="SlideOutStoryboard" FillBehavior="HoldEnd"> <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" FillBehavior="HoldEnd" Storyboard.TargetName="FadeBackground" Storyboard.TargetProperty="IsVisible"> <DiscreteObjectKeyFrame KeyTime="00:00:00" Value="True"/> <DiscreteObjectKeyFrame KeyTime="00:00:00.65" Value="False"/> </ObjectAnimationUsingKeyFrames> </Storyboard>[/CODE] Now the mouse controls are working only before the menu is opened once. The solution was to set the FillBehaviour of the ObjectAnmimationUsingKeyFrame to "Stop". As the last value was "False" I thought there should be no issue, but actually there was. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Skins and Design
BlueVision
Blue Vision
Contact us
RSS
Top
Bottom