0

I want to get the background of spesific area of ContentControl.

Here is my ContentControl ;

CompleteContentControl

The area I would like to have is (topright of the ContentControl) ;

area

How can I do that?

Ktt
  • 469
  • 3
  • 8
  • 18

1 Answers1

0

Put your content control into another content control and set the horizontal and vertical position to topright. In the following example I use an image in a grid.

<Grid>
        <Image
            x:Name="MyImage"
            Height="22"
            HorizontalAlignment="Right"
            Margin="10"
            VerticalAlignment="Top"
            Width="22" />
</Grid>
Dennis Kassel
  • 2,726
  • 4
  • 19
  • 30
  • I tried now but I dont know what to do, basically I want to get the background color of the second image which is the corner. I have 2 content controls and I want to find the collusion. Please check my previous question and give me some idea. http://stackoverflow.com/questions/23520077/wpf-image-collison-detection/23520230?noredirect=1#comment36077284_23520230 – Ktt May 07 '14 at 20:03