public EditableBadge() { InitializeComponent(); // RichTextBoxFormatBarManagerStatic.SetFormatBar(rtb, fmtBar); // Drawing.dataContextHandled += DrawingDataContextHandled; _mediaDoubleClick = new MultiClickRecognizer(MediaDoubleClick, null); lstBxSources.DataContext = this; lstBxAttachments.DataContext = this; srcMover = new SourceMover(srcRepositionPopup); mediaMover = new MediaMover(mediaRepositionPopup); _selectAllTimer = new DispatcherTimer(); _selectAllTimer.Tick += _selectAllTimer_Tick; _selectAllTimer.Interval = TimeSpan.FromMilliseconds(500); _selectAllTimer.Start(); }
public LargeBadgeView() { InitializeComponent(); // RichTextBoxFormatBarManagerStatic.SetFormatBar(rtb, fmtBar); // Drawing.dataContextHandled += DrawingDataContextHandled; _rnd = new Random(); _mediaDoubleClick = new MultiClickRecognizer(badgeDoubleTap, null); _commentDismissalRecognizer = new CommentDismissalRecognizer(scrollViewer, OnDismiss); txtNewComment.Text = DaoUtils.NEW_COMMENT; lstBxSources.DataContext = this; lstBxAttachments.DataContext = this; BeginAttachmentNumberInjection(); }
private void LargeImageUC_OnUnloaded(object sender, RoutedEventArgs e) { _mediaDoubleClick.Dispose(); _mediaDoubleClick = null; }
public LargeImageUC() { InitializeComponent(); _mediaDoubleClick = new MultiClickRecognizer(MediaDoubleClick, null); }