Calendar.axaml 1.1 KB

123456789101112131415161718192021
  1. <ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  2. <ControlTheme x:Key="SukiCalendarStyle" TargetType="Calendar">
  3. <Setter Property="Background" Value="Transparent" />
  4. <Setter Property="BorderThickness" Value="0" />
  5. <Setter Property="HeaderBackground" Value="Transparent" />
  6. <Setter Property="Template">
  7. <ControlTemplate>
  8. <Panel Name="PART_Root" ClipToBounds="True">
  9. <CalendarItem Name="PART_CalendarItem"
  10. Background="{TemplateBinding Background}"
  11. BorderBrush="{TemplateBinding BorderBrush}"
  12. BorderThickness="{TemplateBinding BorderThickness}"
  13. HeaderBackground="{TemplateBinding HeaderBackground}" />
  14. </Panel>
  15. </ControlTemplate>
  16. </Setter>
  17. </ControlTheme>
  18. <ControlTheme x:Key="{x:Type Calendar}"
  19. BasedOn="{StaticResource SukiCalendarStyle}"
  20. TargetType="Calendar" />
  21. </ResourceDictionary>