1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
| #region Dependency Properties
public static DependencyProperty RadiiProperty = DependencyProperty.RegisterAttached("Radii", typeof(Point), typeof(MagnifyShaderEffect), new PropertyMetadata(new Point(0, 0), PixelShaderConstantCallback(0)));
public static DependencyProperty CenterProperty = DependencyProperty.RegisterAttached("Center", typeof(Point), typeof(MagnifyShaderEffect), new PropertyMetadata(new Point(0, 0), PixelShaderConstantCallback(1)));
public static DependencyProperty AmountProperty = DependencyProperty.RegisterAttached("Amount", typeof(double), typeof(MagnifyShaderEffect), new PropertyMetadata(0.0, PixelShaderConstantCallback(2)));
/// <summary>
/// Gets or sets the radii.
/// </summary>
/// <value>The radii.</value>
public virtual Point Radii
{
get
{
return ((Point)(GetValue(RadiiProperty)));
}
set
{
SetValue(RadiiProperty, value);
}
}
/// <summary>
/// Gets or sets the center.
/// </summary>
/// <value>The center.</value>
public virtual Point Center
{
get
{
return ((Point)(GetValue(CenterProperty)));
}
set
{
SetValue(CenterProperty, value);
}
}
/// <summary>
/// Gets or sets the amount.
/// </summary>
/// <value>The amount.</value>
public virtual double Amount
{
get
{
return ((double)(GetValue(AmountProperty)));
}
set
{
SetValue(AmountProperty, value);
}
}
#endregion |
Partager