Mohsen
Mohsen

Reputation: 343

Add two html to GeckoFx

I wrote an app in windows form and use GeckoFx in it.

I added successfully a square shape (from an .html file) to GeckoFx using:

gecko.Navigate(pathToSquareHtml);

Now I want to show a small circle on square using:

gecko.Navigate(pathToCircleHtml);

But the square shape is removed and only circle is shown.

How can I show both shapes using GeckoFx?

Edit

The location of the circle can be variable. And both shapes (square and circle) are clickable to get data from them.

Upvotes: 1

Views: 148

Answers (1)

Reza Aghaei
Reza Aghaei

Reputation: 125257

You need to have both shapes in a single html content, for example:

<!DOCTYPE html>
<html>
<body>

<svg height="100" width="100">
  <rect width="100" height="100" style="fill:blue;" />
  <circle cx="50" cy="50" r="25" style="fill:red;"/>
</svg> 

</body>
</html>

Upvotes: 1

Related Questions