Skip to content

Commit f091a56

Browse files
committed
UG documentation 910707: Prepare UG document for the opened and closed event for GoToLine window in the EditControl
1 parent 16406e6 commit f091a56

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

wpf/Syntax-Editor/Basic-Editing/Find-and-Replace.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,4 +321,54 @@ The following output shows the GoToLine Window localized in French culture.
321321

322322
![Find-and-Replace_img17](Find-and-Replace_images/Find-and-Replace_img17.jpg)
323323

324+
## Opened and Closed event support for GotoLineWindow in EditControl
324325

326+
EditControl also provides opened and closed events for the GoToLine window to access the instance of the GoToLine window when it is opened or closed, enabling further customization.
327+
328+
**GoToLineWindowOpened**
329+
330+
{% tabs %}
331+
332+
{% highlight XAML %}
333+
334+
<sfedit:EditControl x:Name="editControl" DocumentSource="C:\Content.txt" GoToLineWindowOpened="editcontrol_GoToLineWindowOpened" />
335+
336+
{% endhighlight %}
337+
338+
{% highlight C# %}
339+
340+
EditControl editControl = new EditControl();
341+
editControl.GoToLineWindowOpened += new RoutedEventHandler(editcontrol_GoToLineWindowOpened);
342+
343+
private void editcontrol_GoToLineWindowOpened(object sender, RoutedEventArgs e)
344+
{
345+
346+
}
347+
348+
{% endhighlight %}
349+
350+
{% endtabs %}
351+
352+
**GoToLineWindowClosed**
353+
354+
{% tabs %}
355+
356+
{% highlight XAML %}
357+
358+
<sfedit:EditControl x:Name="editControl" DocumentSource="C:\Content.txt" GoToLineWindowClosed="editcontrol_GoToLineWindowClosed" />
359+
360+
{% endhighlight %}
361+
362+
{% highlight C# %}
363+
364+
EditControl editControl = new EditControl();
365+
editControl.GoToLineWindowClosed += new RoutedEventHandler(editcontrol_GoToLineWindowClosed);
366+
367+
private void editcontrol_GoToLineWindowClosed(object sender, RoutedEventArgs e)
368+
{
369+
370+
}
371+
372+
{% endhighlight %}
373+
374+
{% endtabs %}

0 commit comments

Comments
 (0)