Closed phamnamkhanhs closed 1 month ago
Can you share the resolution and DPI setting for your monitor?
@krisdb2009 CloseTopAnimation.To = DPI.ScalePixelsDown(mi.rcMonitor.bottom); The DPI values are zero and also the bottom value is zero. You can use VisualTreeHelper.GetDpi(this); to get the current dpiscale to avoid this error.
using System.Windows.Media;
DPI = VisualTreeHelper.GetDpi(this); // fix this issue CloseTopAnimation.To = DPI.ScalePixelsDown(mi.rcMonitor.bottom);
Can you submit a pull request?
This app is so amazing and was working great for me.
Iām not sure what happened but I started getting this error.
Any suggestions on how to fix?
See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.
** Exception Text ** System.ArgumentException: 'ā' is not a valid value for property 'To'. at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal) at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value) at SuperLauncher.ModernLauncher.UpdateAnimations(Boolean Center) at SuperLauncher.ModernLauncher.OpenWindow(Boolean Center) at SuperLauncher.ModernLauncher.Icon_Click(Object sender, MouseEventArgs e) at System.Windows.Forms.NotifyIcon.WmMouseUp(MouseButtons button) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam)
** JIT Debugging **
@JayHendu does it show up consistantly? What are the steps to produce the error? Also, wondering what display model you have, resolution and DPI.
Phew, I sorted it out. Basically the xml config file had entries that referenced invalid apps. Microsoft's OneDrive moved a bunch of my files from C:\Users\xyz\Desktop\ to C:\Users\xyz\OneDrive - alteryx.com\Desktop\ And so the orphaned references to the old location was throwing that error. There certainly could have been a better error message.
@JayHendu Interesting! I will try to re-produce and handle that error.
i run it and it show: CloseTopAnimation.To = DPI.ScalePixelsDown(mi.rcMonitor.bottom); System.ArgumentException: ''ā' is not a valid value for property 'To'.'