I have a small UserControl and it needs to know the background brush of control on which it is being provided.
However, if I look at the background property of UserControl, then it comes back.
If I call GetValue (UserControl.BackgroundProperty), it also returns zero returns, although this view tree is definitely being set up.
It seems that I should be something very clear because it can not be difficult to understand the color of a control background.
I think the background color is not defined by your user control - the tap is transparent, That is why the background of the parent control is visible at all.
It is still the background color of the original control - it is true that your control does not mean to have its own background color, that it takes color from the original control, only the "background" of your control is yours Whatever will be shown behind
Comments
Post a Comment