I'm getting some unknown operation exceptions in the following code, what's a good way to fix this? Public class ParsedTextBlock: TextBlock {static ParsedTextBlock () {TextProperty.OverrideMetadata (TypeP (ParsedTextBlock), New FrameworkPropertyMetaTata ("No text set, FrameworkPropertyMatDataAppeptionsAffhereModer | FrameworkPropertyMetadadaysAppsApferRender, OntextConcade));} Private Static Zero OnTextChanged (dependent object obj, DependencyPropertyChangedEventArgs args) {ParsedTextBlock control obj; control.Inlines.Clear (); Control.Inlines.Add (New test (string as "test" + args.NewValue) }}}
I think text changes from within the changing event There will not be any good idea in it. This causes the event to be set up repeatedly and eventually a stack overflow generates ... how irony is :)
Comments
Post a Comment