Open LilyStilson opened 4 years ago
I found out that somebody already reported this issue, but it was closed with no resolve. https://github.com/microsoft/microsoft-ui-xaml/issues/2392
The problem is that <SplitView />
component style just does not have any <VisualTransition />
for <VisualState x:Name="OpenInlineRight" />
Also, <VisualState x:Name="OpenInlineLeft" />
has different structure and made using <VisualState.Setters />
while <VisualState x:Name="OpenInlineRight" />
is made using <Storyboard />
This issue can be fixed by adding with proper contents
<VisualTransition From="OpenInlineRight" To="Closed" />
<VisualTransition From="Closed" To="OpenInlineRight" />
to the <SplitView />
default style.
(note, that I showed them as empty ones, but they of course should have <Storyboard />
inside of them with proper animations)
The only problem that I have is that I can't figure out how to make animation work on the right side of the component and make it slide from the right side (I only managed to enable it sliding on left side and then it jumps quickly to the right side)
If this only requires template changes, then maybe we could fix this before WinUI 3. The template currently exists in WinUI 2 so its possible this is fixable now.
Is there a workaround available to patch this from my uwp application directly?
Is there a workaround available to patch this from my uwp application directly?
@AtosNicoS Seems like, it's either way WinUI team will make a proper <VisualState x:Name="OpenInlineRight" />
or we have to do it ourselves. It should be an easy fix for them, but seems like they just don't care, since almost a year passed since report and a whole 3 issues with same contents (though, they were poorly explained by the reporters) were just closed with no resolution.
Right now, I'm just using a DisplayMode="Overlay"
, but still, the problem with Inline-Right placement persists.
@LilyStilson Is there a PR yet? Maybe opening a PR would help to speed up the process?
@AtosNicoS Opening PR without forking and any actual changes to code being made? I don't think it'll help, honestly...
A PR with a fix of course.
Implemented <VisualTransition />
for OpenInlineRight
state. Seems like Microsoft won't give a shit themselves, so I'm working on a PR now.
Created a PR for that issue #6719.
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 5 days.
Still present, even in WinUI 3. Video demonstrating the issue in WinUI 3 Gallery:
https://github.com/microsoft/microsoft-ui-xaml/assets/42270214/624927a0-742d-4aac-9dca-abf0f5beaadd
Describe the bug Microsoft Docs sent me to this repo When
<SplitView />
PanePanePlacement="Right"
andDisplayMode="Inline"
, animation when Pane opens or closes does not work.Steps to reproduce the bug Steps to reproduce the behavior:
<Grid />
component on this pageExpected behavior When Pane on Right open/closed state changes, animation works as intended.
Screenshots I attached video of a bug, since it could not be shown with screenshots https://youtu.be/9bNncBjNcJc
Version Info NuGet package version: [Microsoft.UI.Xaml 2.4.2]
Additional context
This is very strange, since animation for left side placement exists and works. Not ideally, but still works.