public void SetEvent(CalendarEntry entry, double offset) { if (_vm == null) { return; } _entry = entry; _vm.Entry = _entry; var pos = PointFromScreen(new Point(offset, 0)); this.Left = offset; this.Top = 15; var screenWidth = _deviceService.WindowWidth; if (offset + this.Width > screenWidth) { this.Left = screenWidth - this.Width - 30; } var sb = this.Resources["Fader"] as Storyboard; sb.Begin(); }
public ShowEventPopupMessage(CalendarEntry entry, double offset) { Entry = entry; Offset = offset; }