static void OnFormatChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { CTip tip = (CTip)d; if (tip._isLoaded) { var tb = (TextBlock)tip.GetTemplateChild("Block"); if (tb != null) { tb.ClearValue(TextBlock.TextProperty); tb.SetBinding(TextBlock.TextProperty, tip.ValBinding); } } }
public TipValConverter(CTip p_owner) { _owner = p_owner; }