These are chat archives for AvaloniaUI/Avalonia

16th
Jun 2017
Sergey Terekhin
@Sergey-Terekhin
Jun 16 2017 04:22
Hi! Do you have any plans to create tool to convert WPF project to Avalonia. At least 'vanilla' controls, styles etc?
Steven Kirk
@grokys
Jun 16 2017 08:39
@Sergey-Terekhin it would be nice! i'm not sure how possible it will be to do automatically though, and it of course all depends on someone deciding to do the work...
Steven Kirk
@grokys
Jun 16 2017 08:48
we might at some point want to add a compatibility layer/compatibility features into avalonia
Sergey Terekhin
@Sergey-Terekhin
Jun 16 2017 14:29

Could somepne help me?
I have following markup:

<StackPanel Grid.Row="1" Grid.Column="0" Orientation="Vertical">      
      <ToggleButton ToolTip.Tip="Some tooltip 1" Tag="16" IsChecked="True" />
      <ToggleButton ToolTip.Tip="Some tooltip 2" Tag="5"/>
</StackPanel>

Then tooltip (any) is shown first time, anything is OK, but in second time I get exception:

Avalonia.AvaloniaInternalException occurred
  HResult=0x80131500
  Message=Previous ToolTip not disposed.
  Source=<Cannot evaluate the exception source>
  StackTrace:
   at Avalonia.Controls.ToolTip.ShowToolTip(Control control)
   at System.Reactive.AnonymousSafeObserver`1.OnNext(T value)
   at System.Reactive.Linq.ObservableImpl.Throttle`1._.Propagate(IScheduler self, UInt64 currentid)
   at Avalonia.Threading.AvaloniaScheduler.<>c__DisplayClass2_1`1.<Schedule>b__1()
   at Avalonia.Threading.DispatcherTimer.<>c__DisplayClass22_0.<RunOnce>b__0(Object s, EventArgs e)
   at Avalonia.Threading.JobRunner.RunJobs()
   at Avalonia.Win32.Win32Platform.WndProc(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam)
   at Avalonia.Win32.Interop.UnmanagedMethods.DispatchMessage(MSG& lpmsg)
   at Avalonia.Win32.Win32Platform.RunLoop(CancellationToken cancellationToken)
   at Avalonia.Threading.Dispatcher.MainLoop(CancellationToken cancellationToken)
   at AS.Photofit.Client.App.Main(String[] args) in H:\PhotophitNetCore\AS.Photofit.Client\App.xaml.cs:line 24
Steven Kirk
@grokys
Jun 16 2017 15:06
@Sergey-Terekhin unfortunately that's a bug in the tooltip code at the moment
i've not had chance to fix it yet