Table of Contents

Method SetCurrentValue

Namespace
Alternet.UI
Assembly
Alternet.UI.dll

SetCurrentValue(DependencyProperty, object)

Sets the value of a property without changing its value source.

public void SetCurrentValue(DependencyProperty dp, object value)

Parameters

dp DependencyProperty

Dependency property

value object

New value

Remarks

This method is intended for use by a component that wants to programmatically set the value of one of its own properties, in a way that does not disable an application's declared use of that property. SetCurrentValue changes the effective value of the property, but existing triggers, data-binding, styles, etc. will continue to work.