public void Pin(EventArgs e = null)
{
//if (e is RoutedEventArgs)
//{
// var me = e as RoutedEventArgs;
// me.Handled = true;
//}
var fe = FloatingHelpers.CreateFloatingElement(Title, DockingStyles.None, this, "", 10);
fe.CanScale = true;
//fe.Style = Application.Current.FindResource("SimpleContainer") as Style;
fe.Style = Application.Current.FindResource("SimpleContainer") as Style;
fe.StartPosition = new Point(Pos.Left + Width / 2, Pos.Top + ((Height + 75) / 2));
if (mcov != null && mcov.ViewModel != null)
fe.StartSize = new Size(mcov.ViewModel.ActualWidth + 50, mcov.ViewModel.ActualHeight + 125);
else
fe.StartSize = new Size(Width + 20, Height + 75);
fe.Background = BackgroundBrush;
fe.Foreground = ForegroundBrush;
fe.Title = Title;
AppState.FloatingItems.AddFloatingElement(fe);
Close();
Pinned = true;
AutoClose = false;
StopTimer();
UpdateCallout();
}