C# WPF工具提示闪烁
我通过以下方式定义了dataGrid上的工具提示:C# WPF工具提示闪烁,c#,wpf,C#,Wpf,我通过以下方式定义了dataGrid上的工具提示: 但是工具提示会闪烁,很难阅读内容。 如何解决这个问题 ****编辑: 绑定到ObservableDictionary,键和值都是ViewModel 该值具有以下属性 > #region timeStamps > /// <summary> > /// The <see cref="TimeStamps" /> property's name. >
但是工具提示会闪烁,很难阅读内容。
如何解决这个问题
****编辑:
绑定到ObservableDictionary,键和值都是ViewModel
该值具有以下属性
> #region timeStamps
> /// <summary>
> /// The <see cref="TimeStamps" /> property's name.
> /// </summary>
> public const string TimeStampsPropertyName = "TimeStamps";
>
> private ObservableCollection<String> _timeStamps = new ObservableCollection<string>();
>
> /// <summary>
> /// Sets and gets the TimeStamps property.
> /// Changes to that property's value raise the PropertyChanged event.
> /// </summary>
> public ObservableCollection<String> TimeStamps
> {
> get
> {
> return _timeStamps;
> }
> set
> {
> Set(TimeStampsPropertyName, ref _timeStamps, value);
> }
> }
> #endregion
#区域时间戳
> ///
>///属性的名称。
> ///
>public const string timestampsprropertyname=“TimeStamps”;
>
>私有ObservableCollection_时间戳=新ObservableCollection();
>
> ///
>///设置并获取TimeStamps属性。
>///更改该属性的值将引发PropertyChanged事件。
> ///
>公共可观测收集时间戳
> {
>得到
> {
>返回时间戳;
> }
>设置
> {
>设置(TimeStampsPropertyName,ref\u timeStamps,value);
> }
> }
>#端区
这是应该显示在工具提示中的属性。能否在描述中添加
值。时间戳代码?我想问题就在那里。你在哪里设置时间戳值的代码是什么?分享一个更完整、可验证的演示。你能在描述中添加Value.TimeStamps
code吗?我想问题就在那里。你在哪里设置时间戳值的代码是什么?共享一个更完整、可验证的演示。
> #region timeStamps
> /// <summary>
> /// The <see cref="TimeStamps" /> property's name.
> /// </summary>
> public const string TimeStampsPropertyName = "TimeStamps";
>
> private ObservableCollection<String> _timeStamps = new ObservableCollection<string>();
>
> /// <summary>
> /// Sets and gets the TimeStamps property.
> /// Changes to that property's value raise the PropertyChanged event.
> /// </summary>
> public ObservableCollection<String> TimeStamps
> {
> get
> {
> return _timeStamps;
> }
> set
> {
> Set(TimeStampsPropertyName, ref _timeStamps, value);
> }
> }
> #endregion