110,538
社区成员
发帖
与我相关
我的任务
分享
public class Test : DependencyObject
{
public double DownValue
{
get { return (double)GetValue(DownValueProperty); }
set { SetValue(DownValueProperty, value); }
}
// Using a DependencyProperty as the backing store for DownValue. This enables animation, styling, binding, etc...
public static readonly DependencyProperty DownValueProperty =
DependencyProperty.Register("DownValue", typeof(double), typeof(Test), new UIPropertyMetadata(0));
}
<ProgressBar x:Name="progressbar1" HorizontalAlignment="Center" Value="{Binding DownValue}"/>