Код:
Код: Выделить всё
public partial class CustomTooltip : IChartTooltip
{
private TooltipData _data;
public CustomTooltip()
{
InitializeComponent();
//LiveCharts will inject the tooltip data in the Data property
//your job is only to display this data as required
DataContext = this;
}
public event PropertyChangedEventHandler PropertyChanged;
public TooltipData Data
{
get { return _data; }
set
{
_data = value;
OnPropertyChanged("Data");
}
}
public TooltipSelectionMode? SelectionMode { get; set; }
protected virtual void OnPropertyChanged(string propertyName = null)
{
if (PropertyChanged != null)
PropertyChanged.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
Код: Выделить всё
Будем благодарны за любую помощь!
Использование VS 2022 и .Net 4.8.1
Использование VS 2022 и .Net 4.8.1
п>
Подробнее здесь: https://stackoverflow.com/questions/792 ... -13965fa-0
Мобильная версия