<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      MultiPartTemplates.axaml代碼

      <Window xmlns="https://github.com/avaloniaui"
              xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
              xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
              xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
              Height="239" Width="248"
              x:Class="AvaloniaUI.MultiPartTemplates"
              Title="MultiPartTemplates">
      
          <Window.Resources>
              <!-- ===== 基礎畫刷定義 ===== -->
              <SolidColorBrush x:Key="StandardBorderBrush" Color="#888" />
              <SolidColorBrush x:Key="StandardBackgroundBrush" Color="#FFF" />
              <SolidColorBrush x:Key="HoverBorderBrush" Color="#DDD" />
              <SolidColorBrush x:Key="SelectedBackgroundBrush" Color="Blue" />
              <SolidColorBrush x:Key="SelectedForegroundBrush" Color="White" />
              <SolidColorBrush x:Key="GlyphBrush" Color="#444" />
      
              <LinearGradientBrush x:Key="ListBoxBackgroundBrush" StartPoint="0,0" EndPoint="1,0.001">
                  <GradientStop Offset="0.0" Color="White" />
                  <GradientStop Offset="0.6" Color="White" />
                  <GradientStop Offset="1.2" Color="#DDDDDD" />
              </LinearGradientBrush>
      
              <LinearGradientBrush x:Key="StandardBrush" StartPoint="0,0" EndPoint="0,1">
                  <GradientStop Offset="0.0" Color="#FFF" />
                  <GradientStop Offset="1.0" Color="#CCC" />
              </LinearGradientBrush>
      
              <LinearGradientBrush x:Key="PressedBrush" StartPoint="0,0" EndPoint="0,1">
                  <GradientStop Offset="0.0" Color="#BBB" />
                  <GradientStop Offset="0.1" Color="#EEE" />
                  <GradientStop Offset="0.9" Color="#EEE" />
                  <GradientStop Offset="1.0" Color="#FFF" />
              </LinearGradientBrush>
          </Window.Resources>
          <Window.Styles>
              <!-- ========== ListBox 樣式 ========== -->
              <Style Selector="ListBox">
                  <Setter Property="Background" Value="{StaticResource StandardBackgroundBrush}"/>
                  <Setter Property="BorderBrush" Value="{StaticResource StandardBorderBrush}"/>
                  <Setter Property="BorderThickness" Value="1"/>
                  <Setter Property="CornerRadius" Value="3"/>
                  <Setter Property="Padding" Value="2"/>
                  <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
                  <Setter Property="Template">
                      <ControlTemplate>
                          <Border Background="{TemplateBinding Background}"
                                  BorderBrush="{TemplateBinding BorderBrush}"
                                  BorderThickness="{TemplateBinding BorderThickness}"
                                  CornerRadius="{TemplateBinding CornerRadius}">
                              <ScrollViewer Focusable="False">
                                  <ItemsPresenter Margin="{TemplateBinding Padding}"/>
                              </ScrollViewer>
                          </Border>
                      </ControlTemplate>
                  </Setter>
              </Style>
      
              <!-- ========== ListBoxItem 樣式 ========== -->
              <Style Selector="ListBoxItem">
                  <Setter Property="Padding" Value="4,2"/>
                  <Setter Property="CornerRadius" Value="3"/>
                  <Setter Property="Background" Value="Transparent"/>
                  <Setter Property="BorderBrush" Value="Transparent"/>
                  <Setter Property="BorderThickness" Value="2"/>
                  <Setter Property="Transitions">
                      <Transitions>
                          <DoubleTransition Property="FontSize" Duration="0:0:0.2"/>
                          <BrushTransition Property="Background" Duration="0:0:0.2"/>
                      </Transitions>
                  </Setter>
                  <Setter Property="Template">
                      <ControlTemplate>
                          <Border Name="Border"
                                  BorderThickness="{TemplateBinding BorderThickness}"
                                  BorderBrush="{TemplateBinding BorderBrush}"
                                  Background="{TemplateBinding Background}"
                                  CornerRadius="{TemplateBinding CornerRadius}"
                                  Padding="{TemplateBinding Padding}">
                              <ContentPresenter Content="{TemplateBinding Content}"
                                                ContentTemplate="{TemplateBinding ContentTemplate}"
                                                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                                VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                          </Border>
                      </ControlTemplate>
                  </Setter>
      
                  <!-- 鼠標Hover狀態 -->
                  <Style Selector="^:pointerover">
                      <Setter Property="BorderBrush" Value="{StaticResource HoverBorderBrush}"/>
                      <Style.Animations>
                          <Animation Duration="0:0:1" PlaybackDirection="Alternate" IterationCount="2">
                              <KeyFrame Cue="0%">
                                  <Setter Property="FontSize" Value="14"/>
                              </KeyFrame>
                              <KeyFrame Cue="100%">
                                  <Setter Property="FontSize" Value="20"/>
                              </KeyFrame>
                          </Animation>
                      </Style.Animations>
                  </Style>
      
                  <!--選中狀態-->
                  <Style Selector="^:selected">
                      <Setter Property="Background" Value="{StaticResource SelectedBackgroundBrush}"/>
                      <Setter Property="Foreground" Value="{StaticResource SelectedForegroundBrush}"/>
                  </Style>    
              </Style>
      
              <!-- 垂直 ScrollBar 模板 -->
              <Style Selector="ListBox /template/ ScrollViewer /template/ ScrollBar:vertical">
                  <Setter Property="Width" Value="15"/>
                  <Setter Property="Template">
                      <ControlTemplate>
                          <Grid RowDefinitions="18,*,18">
                              <RepeatButton Grid.Row="0" Name="PART_LineUpButton" Background="{StaticResource StandardBackgroundBrush}">
                                  <Path Fill="{StaticResource GlyphBrush}"
                                        Data="M 0 4 L 8 4 L 4 0 Z"
                                        Width="8" Height="4" />
                              </RepeatButton>
      
                              <Track Grid.Row="1"
                                     Name="PART_Track"
                                     Minimum="{TemplateBinding Minimum}"
                                     Maximum="{TemplateBinding Maximum}"        
                                     Value="{TemplateBinding Value, Mode=TwoWay}"    
                                     ViewportSize="{TemplateBinding ViewportSize}"
                                     Orientation="{TemplateBinding Orientation}"
                                     IsDirectionReversed="True">
                                  <Track.Thumb>
                                      <Thumb Name="PART_Thumb"/>
                                  </Track.Thumb>
                              </Track>
      
                              <RepeatButton Grid.Row="2" Name="PART_LineDownButton" Background="{StaticResource StandardBackgroundBrush}">
                                  <Path Fill="{StaticResource GlyphBrush}"
                                        Data="M 0 0 L 4 4 L 8 0 Z"
                                        Width="8" Height="4" />
                              </RepeatButton>
                          </Grid>
                      </ControlTemplate>
                  </Setter>
              </Style>
      
              <!-- 滾動條 Thumb -->
              <Style Selector="ListBox /template/ ScrollViewer /template/ ScrollBar /template/ Thumb">
                  <Setter Property="Background" Value="{StaticResource StandardBackgroundBrush}" />
                  <Setter Property="BorderBrush" Value="{StaticResource StandardBorderBrush}" />
                  <Setter Property="BorderThickness" Value="1" />
                  <Setter Property="CornerRadius" Value="12" />
                  <Setter Property="Template">
                      <ControlTemplate>
                          <Border Background="{TemplateBinding Background}"
                                  BorderBrush="{TemplateBinding BorderBrush}"
                                  BorderThickness="{TemplateBinding BorderThickness}"
                                  CornerRadius="{TemplateBinding CornerRadius}" />
                      </ControlTemplate>
                  </Setter>
      
                  <!-- 鼠標懸停狀態 -->
                  <Style Selector="^:pointerover">
                      <Setter Property="Background" Value="{StaticResource HoverBorderBrush}" />
                      <Setter Property="BorderBrush" Value="{StaticResource HoverBorderBrush}" />
                  </Style>
      
                  <!-- 鼠標離開狀態 -->
                  <Style Selector="^:not(:pointerover)">
                      <Setter Property="Background" Value="{StaticResource StandardBackgroundBrush}" />
                      <Setter Property="BorderBrush" Value="{StaticResource StandardBorderBrush}" />
                  </Style>
              </Style>
          </Window.Styles>
      
          <Grid Margin="10">
              <ListBox>
                  <ListBoxItem>?? Apple</ListBoxItem>
                  <ListBoxItem>?? Banana</ListBoxItem>
                  <ListBoxItem>?? Grape</ListBoxItem>
                  <ListBoxItem>?? Orange</ListBoxItem>
                  <ListBoxItem>?? Watermelon</ListBoxItem>
                  <ListBoxItem>?? Strawberry</ListBoxItem>
                  <ListBoxItem>?? Pineapple</ListBoxItem>
                  <ListBoxItem>?? Kiwi</ListBoxItem>
                  <ListBoxItem>?? Cherry</ListBoxItem>
                  <ListBoxItem>?? Peach</ListBoxItem>
              </ListBox>
          </Grid>
      </Window>

      MultiPartTemplates.axaml.cs代碼

      using Avalonia;
      using Avalonia.Controls;
      
      namespace AvaloniaUI;
      
      public partial class MultiPartTemplates : Window
      {
          public MultiPartTemplates()
          {
              InitializeComponent();
          }
      }

      運行效果

      image

       

      posted on 2025-11-02 04:49  dalgleish  閱讀(2)  評論(0)    收藏  舉報

      主站蜘蛛池模板: 悠悠人体艺术视频在线播放 | 亚洲综合高清一区二区三区| 乾安县| 国产激情一区二区三区不卡| 亚洲夂夂婷婷色拍ww47| 人妻中文字幕亚洲一区| 在线 欧美 中文 亚洲 精品| 国产成人午夜精品影院| 久久一日本道色综合久久| 国产亚洲精品成人av在线| 色噜噜噜亚洲男人的天堂| 免费的特黄特色大片| 国产一区二区三区麻豆视频| 亚洲无人区一区二区三区| 日韩中文字幕亚洲精品| 欧美丰满熟妇xxxx性| 泾阳县| 久久国产成人午夜av影院| 亚洲日韩精品一区二区三区无码| 无码日韩精品一区二区三区免费 | 午夜DY888国产精品影院| 国产乱码精品一区二三区| 99中文字幕精品国产| 成人免费在线播放av| 久久久久人妻一区精品色| 国产成人精品亚洲精品密奴| 老师扒下内裤让我爽了一夜| 日韩中文字幕av有码| 国产精品va在线观看无码| 在线国产精品中文字幕| 成人网站国产在线视频内射视频 | 国内免费视频成人精品| 国产精品一区二区不卡视频| 无码吃奶揉捏奶头高潮视频| 人妻一区二区三区人妻黄色| 国产一区二区三区日韩精品| 龙州县| 久久精品一偷一偷国产| 亚洲欧美综合精品成人导航| 热久久美女精品天天吊色| 亚洲人成人日韩中文字幕|