csharpc-sharpdotnetxamlavaloniauicross-platformcross-platform-xamlavaloniaguimulti-platformuser-interfacedotnetcore
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.9 KiB
39 lines
1.9 KiB
<ResourceDictionary xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:controls="using:ControlCatalog">
|
|
<ControlTheme x:Key="ScrollPage" TargetType="ContentPage">
|
|
<Setter Property="Template">
|
|
<ControlTemplate>
|
|
<DockPanel>
|
|
<ContentPresenter Name="PART_TopCommandBar"
|
|
DockPanel.Dock="Top"
|
|
HorizontalContentAlignment="Stretch"
|
|
IsVisible="False" />
|
|
<ContentPresenter Name="PART_BottomCommandBar"
|
|
DockPanel.Dock="Bottom"
|
|
HorizontalContentAlignment="Stretch"
|
|
IsVisible="False" />
|
|
|
|
<ContentPresenter Name="PART_ContentPresenter"
|
|
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
Content="{TemplateBinding Content}"
|
|
CornerRadius="{TemplateBinding CornerRadius}" >
|
|
<ContentPresenter.ContentTemplate>
|
|
<DataTemplate>
|
|
<ScrollViewer Padding="20,20,5,0"
|
|
ResizeWithInputPane="True"
|
|
HorizontalScrollBarVisibility="Disabled">
|
|
<ContentPresenter Content="{Binding}"/>
|
|
</ScrollViewer>
|
|
</DataTemplate>
|
|
</ContentPresenter.ContentTemplate>
|
|
</ContentPresenter>
|
|
</DockPanel>
|
|
</ControlTemplate>
|
|
</Setter>
|
|
</ControlTheme>
|
|
</ResourceDictionary>
|
|
|