跳到主要内容

github/tai

公开

Tai · Windows 软件与网站使用时长统计。上游 Planshit/Tai 的源码镜像,非灵栈原创;MIT 许可。来源:https://github.com/Planshit/Tai 。本次为手动同步,暂不提供安装包。

浏览文件

PageContainer.xaml

23 行 · 1.4 KB历史下载
1<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
3 xmlns:local="clr-namespace:UI.Controls"
4 xmlns:base="clr-namespace:UI.Controls.Base">
5 <Style TargetType="{x:Type local:PageContainer}">
6 <Setter Property="SnapsToDevicePixels" Value="True"/>
7 <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
8 <Setter Property="Template">
9 <Setter.Value>
10 <ControlTemplate TargetType="{x:Type local:PageContainer}">
11 <!--<Border Background="{TemplateBinding Background}"
12 BorderBrush="{TemplateBinding BorderBrush}"
13 BorderThickness="{TemplateBinding BorderThickness}"
14 SnapsToDevicePixels="True">-->
15 <ScrollViewer FocusVisualStyle="{x:Null}" SnapsToDevicePixels="True" x:Name="ScrollViewer" VerticalScrollBarVisibility="Auto" ScrollViewer.CanContentScroll="False">
16 <Frame x:Name="Frame" Grid.Row="1" Content="{TemplateBinding Content}" NavigationUIVisibility="Hidden" FocusVisualStyle="{x:Null}"/>
17 </ScrollViewer>
18 <!--</Border>-->
19 </ControlTemplate>
20 </Setter.Value>
21 </Setter>
22 </Style>
23</ResourceDictionary>