Skip to content

Commit

Permalink
[fix] 禁用DailyView内页面刷新
Browse files Browse the repository at this point in the history
Fix #66
  • Loading branch information
zxbmmmmmmmmm committed Dec 1, 2024
1 parent b1a1676 commit d0f0a0d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
28 changes: 13 additions & 15 deletions FluentWeather.Uwp/Pages/MainPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,6 @@
xmlns:viewmodels="using:FluentWeather.Uwp.ViewModels"
d:RequestedTheme="Dark"
mc:Ignorable="d">
<Page.ContextFlyout>
<MenuFlyout Placement="BottomEdgeAlignedLeft">
<MenuFlyoutItem
x:Uid="RefreshMenuItem"
Command="{x:Bind ViewModel.RefreshCommand}"
Icon="Refresh" />
<MenuFlyoutItem x:Uid="SpeechMenuItem" Command="{x:Bind ViewModel.SpeechWeatherCommand}">
<MenuFlyoutItem.Icon>
<FontIcon Glyph="&#xF83B;" />
</MenuFlyoutItem.Icon>
</MenuFlyoutItem>
</MenuFlyout>
</Page.ContextFlyout>
<Grid>
<Border
Background="{ThemeResource LayerFillColorDefaultBrush}"
Expand Down Expand Up @@ -126,7 +113,6 @@
</animations:ImplicitAnimationSet>

</animations:Implicit.ShowAnimations>

</local:DailyViewPage>
<RefreshContainer x:Name="MainContentContainer" ui:VisualExtensions.NormalizedCenterPoint="0.5">
<animations:Implicit.ShowAnimations>
Expand Down Expand Up @@ -929,9 +915,21 @@
</DataTemplate>
</ListView.ItemTemplate>
</ListView>

</Grid>
</ScrollViewer>
<RefreshContainer.ContextFlyout>
<MenuFlyout Placement="BottomEdgeAlignedLeft">
<MenuFlyoutItem
x:Uid="RefreshMenuItem"
Command="{x:Bind ViewModel.RefreshCommand}"
Icon="Refresh" />
<MenuFlyoutItem x:Uid="SpeechMenuItem" Command="{x:Bind ViewModel.SpeechWeatherCommand}">
<MenuFlyoutItem.Icon>
<FontIcon Glyph="&#xF83B;" />
</MenuFlyoutItem.Icon>
</MenuFlyoutItem>
</MenuFlyout>
</RefreshContainer.ContextFlyout>
</RefreshContainer>
<VisualStateManager.VisualStateGroups>
<VisualStateGroup>
Expand Down
3 changes: 2 additions & 1 deletion FluentWeather.Uwp/Themes/Generic.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,8 @@
<DataTemplate x:Key="WeatherForecastTemplate" x:DataType="models:WeatherDailyBase">
<UserControl>
<StackPanel Spacing="4">
<TextBlock Margin="0,4,0,0"
<TextBlock
Margin="0,4,0,0"
HorizontalAlignment="Center"
FontSize="17"
Text="{x:Bind Time, Converter={StaticResource DateConverter}}" />
Expand Down

0 comments on commit d0f0a0d

Please sign in to comment.