Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TeachingTip does not open for target inside NavigationViewItem WinUI3 Desktop #8095

Open
KWodarczyk opened this issue Jan 13, 2023 · 0 comments
Labels
area-NavigationView NavView control area-TeachingTip bug Something isn't working product-winui3 WinUI 3 issues team-Controls Issue for the Controls team

Comments

@KWodarczyk
Copy link

Describe the bug

TeachingTip does not open for target that is inside NavigationViewItem in WinUI3 Desktop it works as expected outside of NavigationViewItem


<!-- Copyright (c) Microsoft Corporation and Contributors. -->
<!-- Licensed under the MIT License. -->

<Window
    x:Class="WinUI3TeachingTipBug.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:WinUI3TeachingTipBug"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <StackPanel VerticalAlignment="Center">

        <StackPanel>
            <AppBarButton Background="Blue" Content="Tip showing" x:Name="Mybutton2"  Margin="10"/><!-- Teaching tip works fine -->
            <Button BorderThickness="1" BorderBrush="Black" Content="test" IsEnabled="{Binding ElementName=Mybutton2, Path='IsPointerOver'  }"/>
        </StackPanel>

        <TeachingTip
            x:Name="MyTeachingTip2"
            PreferredPlacement="BottomRight"
            IsOpen="{x:Bind Mybutton2.IsPointerOver  }"
            Title="hi im teaching tip2"
            Subtitle="bla bal bla"
            Target="{x:Bind Mybutton2}">
            <TeachingTip.IconSource>
                <SymbolIconSource Symbol="AddFriend"/>
            </TeachingTip.IconSource>

        </TeachingTip>

        <TeachingTip
            x:Name="MyTeachingTip4"
            PreferredPlacement="TopRight"
            IsOpen="{Binding ElementName=Mybutton2, Path='IsPointerOver'  }"
            Title="hi im teaching tip4"
            Subtitle="bla bal bla"
            Target="{x:Bind Mybutton2}">
            <TeachingTip.IconSource>
                <SymbolIconSource Symbol="AddFriend"/>
            </TeachingTip.IconSource>

        </TeachingTip>


        <NavigationView Background="Aquamarine" IsSettingsVisible="False">
            <NavigationView.MenuItems>
                <NavigationViewItem Width="200" x:Name="AppUpdatePage" Background="Pink" >

                    <StackPanel>
                        <AppBarButton Background="Red" Content="Tip no showing" x:Name="Mybutton"  Margin="10"/> <!-- Teaching tip not showing -->
                        <Button BorderThickness="1" BorderBrush="Black" Content="test" IsEnabled="{Binding ElementName=Mybutton, Path='IsPointerOver'  }"/>
                    </StackPanel>
                </NavigationViewItem>

            </NavigationView.MenuItems>

        </NavigationView>

        <TeachingTip
            x:Name="MyTeachingTip1"
            PreferredPlacement="BottomRight"
            IsOpen="{x:Bind Mybutton.IsPointerOver  }"
            Title="hi im teaching tip1"
            Subtitle="bla bal bla"
            Target="{x:Bind Mybutton}">
            <TeachingTip.IconSource>
                <SymbolIconSource Symbol="AddFriend"/>
            </TeachingTip.IconSource>

        </TeachingTip>

        <TeachingTip
            x:Name="MyTeachingTip3"
            PreferredPlacement="TopRight"
            IsOpen="{Binding ElementName=Mybutton, Path='IsPointerOver'  }"
            Title="hi im teaching tip3"
            Subtitle="bla bal bla"
            Target="{x:Bind Mybutton}">
            <TeachingTip.IconSource>
                <SymbolIconSource Symbol="AddFriend"/>
            </TeachingTip.IconSource>

        </TeachingTip>

    </StackPanel>
</Window>

Steps to reproduce the bug

new up WinUI3 app and copy paste this code in the MainWindow.xaml

Expected behavior

when hovering over in NavigationViewItem the TeachingTip should appear but it does not

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.2.2: 1.2.221209.1

Windows version

Windows 11 (22H2): Build 22621

Additional context

No response

@KWodarczyk KWodarczyk added the bug Something isn't working label Jan 13, 2023
@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Jan 13, 2023
@gabbybilka gabbybilka added area-NavigationView NavView control area-TeachingTip product-winui3 WinUI 3 issues and removed needs-triage Issue needs to be triaged by the area owners labels Mar 13, 2023
@bpulliam bpulliam added the team-Controls Issue for the Controls team label Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-NavigationView NavView control area-TeachingTip bug Something isn't working product-winui3 WinUI 3 issues team-Controls Issue for the Controls team
Projects
None yet
Development

No branches or pull requests

3 participants