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)
{
}