Skip to content

Commit 9e07dc8

Browse files
committed
Allow Display of TeachingTip on First Launch
1 parent 159e195 commit 9e07dc8

File tree

6 files changed

+17
-146
lines changed

6 files changed

+17
-146
lines changed

Files UWP/ProHome.xaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -877,10 +877,10 @@
877877
<RowDefinition Height="Auto"/>
878878
<RowDefinition Height="*"/>
879879
</Grid.RowDefinitions>
880-
<Grid Grid.Row="0" Canvas.ZIndex="2">
880+
<Grid x:Name="Ribbon" Grid.Row="0" Canvas.ZIndex="2">
881881
<Custom:DropShadowPanel OffsetY="-2" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch">
882882
<StackPanel Background="{StaticResource ApplicationPageBackgroundThemeBrush}" Orientation="Vertical">
883-
<Custom:TabView x:Name="Ribbon" TabWidthBehavior="Actual" Background="Transparent" Template="{StaticResource TabViewTemplate1}">
883+
<Custom:TabView TabWidthBehavior="Actual" Background="Transparent" Template="{StaticResource TabViewTemplate1}">
884884
<Custom:TabViewItem Template="{StaticResource TabViewItemFluentTemplate}" BorderThickness="0" Header="File">
885885
<CommandBar Background="Transparent" OverflowButtonVisibility="Collapsed" DefaultLabelPosition="Right">
886886
<CommandBar.Content>
@@ -948,7 +948,7 @@
948948
</CommandBar>
949949
</Custom:TabViewItem>
950950
<Custom:TabView.Resources>
951-
<uilib:TeachingTip Target="{x:Bind Ribbon}" x:Key="RibbonTipKey" Name="RibbonTip" PreferredPlacement="Bottom" Subtitle="Access different commands faster than ever from their new location." Title="Meet the Ribbon">
951+
<uilib:TeachingTip Loaded="RibbonTip_Loaded" Target="{x:Bind Ribbon}" x:Key="RibbonTipKey" Name="RibbonTip" PreferredPlacement="Bottom" Subtitle="Access different commands faster than ever from their new location." Title="Meet the Ribbon">
952952
<uilib:TeachingTip.IconSource>
953953
<uilib:SymbolIconSource Symbol="Help"/>
954954
</uilib:TeachingTip.IconSource>

Files UWP/ProHome.xaml.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ public ProHome()
106106
}
107107
accessibleContentFrame.Navigate(typeof(YourHome), new SuppressNavigationTransitionInfo());
108108
RibbonTeachingTip = RibbonTip;
109-
ProHome.RibbonTeachingTip.IsOpen = false;
110109
PopulateNavViewWithExternalDrives();
111110
}
112111

@@ -717,5 +716,19 @@ public async void ShowPropertiesButton_Click(object sender, RoutedEventArgs e)
717716
await PropertiesDialog.ShowAsync();
718717

719718
}
719+
720+
private void RibbonTip_Loaded(object sender, RoutedEventArgs e)
721+
{
722+
if (ApplicationData.Current.LocalSettings.Values["HasBeenWelcomed"] == null)
723+
{
724+
ProHome.RibbonTeachingTip.IsOpen = true;
725+
ApplicationData.Current.LocalSettings.Values["HasBeenWelcomed"] = true;
726+
}
727+
else
728+
{
729+
ProHome.RibbonTeachingTip.IsOpen = false;
730+
}
731+
732+
}
720733
}
721734
}

Launcher/App.config

Lines changed: 0 additions & 6 deletions
This file was deleted.

Launcher/Launcher.csproj

Lines changed: 0 additions & 77 deletions
This file was deleted.

Launcher/Program.cs

Lines changed: 0 additions & 23 deletions
This file was deleted.

Launcher/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)