0
我有一个路径形状,我想设置路径上方的标签,我把一个文本块上面的路径然后我处理Path_MouseEnter,Path_MouseLeave和更改路径背景问题是当鼠标离开当我处理Path_MouseDown时,文本块的背景形状改变了另一个问题,文本块也会产生问题吗?有没有一种方法可以在路径形状上面设置标签?WPF路径形状标题
private void Path_MouseEnter(object sender, MouseEventArgs e)
{
(sender as Path).Fill = System.Windows.Media.Brushes.Yellow;
}
private void Path_MouseLeave(object sender, MouseEventArgs e)
{
(sender as Path).Fill = System.Windows.Media.Brushes.LightGray;
}
private void Path_MouseDown(object sender, MouseButtonEventArgs e)
{
}