The
DependencyObject
parameter passed to the
LabelContentChanged
event handler will be the instance of your control for which the property has changed. You just need to cast it to the appropriate type, and call your method:
private static void LabelContentChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs eventArgs)
{
YourControl theControl = (YourControl)dependencyObject;
theControl.OnLabelContentChanged(eventArgs);
}
private void OnLabelContentChanged(DependencyPropertyChangedEventArgs eventArgs)
{
...
}