91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

參考網上資料,進行修改。定義了有上下按鈕和無上下按鈕2種滾動條樣式模板,
每種滾動條定義7或8副圖像,
半透明和無按鈕的滾動條需Scrollbackground(x).png圖像,上下按鈕為全透明圖像即可。
添加樣式:
1、替換(x)為數字,例如(3),添加相應的圖片到資源
2、調整滾動塊高度和上下位置距離:
<Track.Thumb>
<Thumb Style="{StaticResource ThumbStyle(2)}" 
    Height="79"
    Margin="-1,0,-1,0" />
</Track.Thumb>

設置上下按鈕高度
<Grid x:Name="Bg"
    Background="{TemplateBinding Background}"
    SnapsToDevicePixels="true">
    <Grid.RowDefinitions>
       <RowDefinition MaxHeight="39" />
       <RowDefinition Height="0.00001*" />
       <RowDefinition MaxHeight="39" />
    </Grid.RowDefinitions>

如無上下按鈕,則設置
<ImageBrush x:Key="ScrollBackground(x)" 
 TileMode="FlipY" 
ImageSource="/Resource_ScrollImage/Scrollbackground(1).png" />
......
<ControlTemplate TargetType="{x:Type ScrollBar}">
<Grid x:Name="Bg"
Background="{DynamicResource ScrollBackground(1)}"
SnapsToDevicePixels="true">
......

背景透明
<ScrollBar x:Name="PART_VerticalScrollBar"

 Background="Transparent"

資源截圖

代碼片段和文件信息

using?System;
using?System.Collections.Generic;
using?System.Configuration;
using?System.Data;
using?System.Linq;
using?System.Threading.Tasks;
using?System.Windows;

namespace?ScrollDEmo
{
????///?
????///?App.xaml?的交互邏輯
????///?

????public?partial?class?App?:?Application
????{
????}
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

????..A..H.?????35840??2018-04-21?13:38??ScrollDEmo\.vs\ScrollDEmo\v15\.suo

?????文件??????????0??2018-04-20?21:00??ScrollDEmo\.vs\ScrollDEmo\v15\Server\sqlite3\db.lock

?????文件?????716800??2018-04-21?13:38??ScrollDEmo\.vs\ScrollDEmo\v15\Server\sqlite3\storage.ide

?????文件????????189??2018-04-20?21:00??ScrollDEmo\ScrollDEmo\App.config

?????文件????????374??2018-04-20?21:00??ScrollDEmo\ScrollDEmo\App.xaml

?????文件????????337??2018-04-20?21:00??ScrollDEmo\ScrollDEmo\App.xaml.cs

?????文件?????145381??2018-03-23?10:46??ScrollDEmo\ScrollDEmo\bin\Debug\background.jpg

?????文件?????294912??2018-04-21?13:37??ScrollDEmo\ScrollDEmo\bin\Debug\ScrollDEmo.exe

?????文件????????189??2018-04-20?21:00??ScrollDEmo\ScrollDEmo\bin\Debug\ScrollDEmo.exe.config

?????文件??????26112??2018-04-21?13:37??ScrollDEmo\ScrollDEmo\bin\Debug\ScrollDEmo.pdb

?????文件???10828284??2012-04-26?09:53??ScrollDEmo\ScrollDEmo\bin\Debug\中文字體.ttf

?????文件???????1149??2018-04-21?13:34??ScrollDEmo\ScrollDEmo\MainWindow.xaml

?????文件???????3610??2018-04-21?13:32??ScrollDEmo\ScrollDEmo\MainWindow.xaml.cs

?????文件???????2314??2018-04-20?21:00??ScrollDEmo\ScrollDEmo\Properties\AssemblyInfo.cs

?????文件???????2833??2018-04-20?21:00??ScrollDEmo\ScrollDEmo\Properties\Resources.Designer.cs

?????文件???????5612??2018-04-20?21:00??ScrollDEmo\ScrollDEmo\Properties\Resources.resx

?????文件???????1097??2018-04-20?21:00??ScrollDEmo\ScrollDEmo\Properties\Settings.Designer.cs

?????文件????????201??2018-04-20?21:00??ScrollDEmo\ScrollDEmo\Properties\Settings.settings

?????文件??????18577??2018-04-20?23:43??ScrollDEmo\ScrollDEmo\Resource_ScrollImage\BarDown(1).png

?????文件??????15829??2017-03-06?12:30??ScrollDEmo\ScrollDEmo\Resource_ScrollImage\BarDown(2).png

?????文件??????18577??2018-04-20?23:44??ScrollDEmo\ScrollDEmo\Resource_ScrollImage\BarUp(1).png

?????文件??????15833??2017-03-06?12:29??ScrollDEmo\ScrollDEmo\Resource_ScrollImage\BarUp(2).png

?????文件??????18577??2018-04-20?23:45??ScrollDEmo\ScrollDEmo\Resource_ScrollImage\BarUp_E(1).png

?????文件??????15833??2017-03-06?12:29??ScrollDEmo\ScrollDEmo\Resource_ScrollImage\BarUp_E(2).png

?????文件??????19913??2017-11-26?14:41??ScrollDEmo\ScrollDEmo\Resource_ScrollImage\Nar_Center(1).png

?????文件??????16211??2017-03-06?12:50??ScrollDEmo\ScrollDEmo\Resource_ScrollImage\Nar_Center(2).png

?????文件??????19913??2017-11-26?14:41??ScrollDEmo\ScrollDEmo\Resource_ScrollImage\Nar_Center_s(1).png

?????文件??????16211??2017-03-06?12:50??ScrollDEmo\ScrollDEmo\Resource_ScrollImage\Nar_Center_s(2).png

?????文件??????18581??2018-04-20?23:42??ScrollDEmo\ScrollDEmo\Resource_ScrollImage\PageDownBG(1).png

?????文件??????16012??2017-03-06?12:50??ScrollDEmo\ScrollDEmo\Resource_ScrollImage\PageDownBG(2).png

............此處省略28個文件信息

評論

共有 條評論