-
StackOverflow 文件
-
wpf 教程
-
僅在拖動結束時滑塊繫結更新
-
XAML 用法
<UserControl x:Class="Example.View"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
xmlns:b="MyBehaviorAssembly;assembly=MyBehaviorAssembly"
mc:Ignorable="d"
d:DesignHeight="200" d:DesignWidth="200"
>
<Slider>
<i:Interaction.Behaviors>
<b:SliderDragEndValueBehavior
Value="{Binding Value, Mode=OneWayToSource, UpdateSourceTrigger=PropertyChanged}"
/>
</i:Interaction.Behaviors>
</Slider>
</UserControl>