wpf - Layers issue using Z-Index -
i've 2 controls 1 on top of another: border on slider. on border user can mark segment appear in different color on slider. because border written after slider in xaml, appear on top of slider. , that's ok. problem is, thumb of slider appears under border.
how can set thumb element (belong slider control , inside it) appear on top of all, , border appear on top of slider? tried use zindex without success. idea?
in css:
make sure elements positioned absolutely or relatively. z-index doesn't have play in layering unless elements positioned absolutely or relatively. should able set 1 with:
z-index: 1;
and other with:
z-index: 2;
and desired result.
in wpf:
use syntax specified here
here's example:
make sure both of elements in same parent, otherwise displayed in order in loaded.
Comments
Post a Comment