question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SplitView Pane not shown

See original GitHub issue

@ratishphilip first, thank you for this nice toolkit. You answered my question here

However when trying to implement, I got issues with the SplitView Pane.

Assuming the following page called BlurredMenu:

<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <Image Source="Assets/dubai_night-1920x1080.jpg" Stretch="UniformToFill" />
        <SplitView x:Name="splitview">
            <SplitView.Pane>
                <Grid>
                    <local:ImageBloomControl x:Name="BloomControl" ImageSource="ms-appx:///Assets/dubai_night-1920x1080.jpg" BlurAmount="4" Duration="00:00:02" OffsetX="0" OffsetY="100" />
                </Grid>
            </SplitView.Pane>
        </SplitView>

        <Grid Background="BlanchedAlmond" Height="48" Width="48" VerticalAlignment="Top" HorizontalAlignment="Left" Tapped="HamburgerGrid_Tapped" />
    </Grid>

and the corresponding cs-file:

public sealed partial class BlurredMenu : Page
    {
        public BlurredMenu()
        {
            this.InitializeComponent();
            this.Unloaded += BlurredMenu_Unloaded;
        }

        private void BlurredMenu_Unloaded(object sender, RoutedEventArgs e)
        {
            BloomControl.Dispose();
        }

        private async void HamburgerGrid_Tapped(object sender, TappedRoutedEventArgs e)
        {
            splitview.IsPaneOpen = !splitview.IsPaneOpen;

            await Task.Delay(300);

            if (splitview.IsPaneOpen)
            {
                BloomControl.Bloom();
            }
            else
            {
                BloomControl.Hide();
            }
        }

Does not show anything. The Pane is just empty. However changing the XAML file to the following (putting the ImageBloomControl outside of the pane) does make a bloom over the whole page.

<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <Image Source="Assets/dubai_night-1920x1080.jpg" Stretch="UniformToFill" />
        <SplitView x:Name="splitview">
            <SplitView.Pane>
                <Grid>
                </Grid>
            </SplitView.Pane>
        </SplitView>

        <local:ImageBloomControl x:Name="BloomControl" ImageSource="ms-appx:///Assets/dubai_night-1920x1080.jpg" BlurAmount="4" Duration="00:00:02" OffsetX="0" OffsetY="100" />
        <Grid Background="BlanchedAlmond" Height="48" Width="48" VerticalAlignment="Top" HorizontalAlignment="Left" Tapped="HamburgerGrid_Tapped" />
    </Grid>

So the question here is: can I limit the bloom to the inside of the SplitView?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ratishphilipcommented, Sep 17, 2016

@minimalisticMe You need not derive a new control from SplitView. Just add the new style to your Dictionary1.xaml and use it. The code which I specified (for ShowBloom and HideBloom) must be added to the ImageBloomControl’s existing code.

Now you can specify the SplitView in your XAML to use the BloomSplitViewStyle in the normal way

<SplitView Style="{StaticResource BloomSplitViewStyle}"
                ...
0reactions
minimalisticMecommented, Sep 21, 2016

@ratishphilip thank you very much for the response.

I additionally added the line imageOptions.HorizontalAlignment = AlignmentX.Left; to your code. And now am happy to tell you, that everything works fine.

I would love to see byte[] to be coming and when I may suggest another improvement:

Automatically check, if the component was re-sized (e.g. due a re-size of the parent window) and then call bloom().

Read more comments on GitHub >

github_iconTop Results From Across the Web

(UWP) When SplitView pane is open, interaction with the ...
It is not frozen. It is under a touch target which does not allow you to interact with it. Nothing outside of the...
Read more >
SplitView inline pane does not have animation with right ...
When Pane on Right open/closed state changes, animation works as intended. Screenshots I attached video of a bug, since it could not be...
Read more >
SplitView.Pane Property (Windows.UI.Xaml.Controls)
Gets or sets the contents of the pane of a SplitView.
Read more >
SplitView
A split view's content area is always visible. The pane can expand and collapse or remain in an open state, and can present...
Read more >
Split views | Apple Developer Documentation
Prefer using a split view in a regular — not a compact — environment. A split view needs horizontal space in which to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found