In general, the essence is very simple. Form Code:

<Grid> <Border Background="Green" Opacity="0.5" Margin="116,74,263,171"/> <Border Background="Green" Opacity="0.5" Margin="202,74,159,171"/> </Grid> 

If this 2 border intersects enter image description here then at the intersection Opacity will not be 0.5 but 1. I need the Opacity to remain unchanged at the intersection.

  • Are you sure you need grids? Look towards geometry: professorweb.ru/my/WPF/graphics_and_animation/level13/13_3.php - Andrey NOP
  • I just need to keep the transparency unchanged. Geometry does not fit - mazda3301
  • OK, this is not possible, because this is the correct behavior - the transparency of each individual grid also remains 0.5 and the lower one is visible through the upper grid, which also has some background color. Describe your real problem and we will think how to solve it differently. Maybe using geometry or something else. - Andrey NOP
  • I want to make a ripple effect on the button. Went on this article: domysee.com/blogposts/wpf-ripple-effect . Everything works fine, but if you press many times, the circle begins to be drawn again. I decided this by dynamically adding a circle to the button, and drawing it. So, if you press it many times, many circles begin to appear, and the opacity of each circle is 0.5. Accordingly, they stack, which I do not need. Here, for example, in the telegraph this does not happen. You can check, click on the buttons. - mazda3301

0