Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Commit

Permalink
为登录页面添加反馈按钮
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiichiamane committed Feb 24, 2020
1 parent a6eda89 commit 39b91ad
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
10 changes: 10 additions & 0 deletions PixivFSUWP/LoginPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,5 +129,15 @@
</Grid>
</Button>
</Grid>
<Grid HorizontalAlignment="Left" VerticalAlignment="Bottom">
<Button Style="{StaticResource ButtonRevealStyleWithAcrylic}" HorizontalAlignment="Center"
BorderThickness="1.5" VerticalAlignment="Stretch" x:Name="btnReport" Click="btnReport_Click">
<Button.Background>
<AcrylicBrush BackgroundSource="Backdrop" TintOpacity="0.2" TintColor="White" FallbackColor="White"/>
</Button.Background>
<FontIcon FontFamily="{StaticResource SymbolThemeFontFamily}"
FontSize="16" Glyph="&#xED15;"/>
</Button>
</Grid>
</Grid>
</Page>
6 changes: 6 additions & 0 deletions PixivFSUWP/LoginPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,5 +167,11 @@ private async void Button_Click(object sender, RoutedEventArgs e)
await Launcher.LaunchUriAsync(new
Uri(@"https://www.pixiv.net/member_illust.php?mode=medium&illust_id=31251762"));
}

private async void btnReport_Click(object sender, RoutedEventArgs e)
{
//在新窗口中打开发送反馈的窗口
await ShowNewWindow(typeof(ReportIssuePage), null);
}
}
}

0 comments on commit 39b91ad

Please sign in to comment.