private void ButtonRestoreDefColor_Click(object sender, RoutedEventArgs e) { link = null; TextBoxLinkToImage.Clear(); ImageAttachPreview.Source = null; ColorPicker.Color = Color.FromRgb(46, 78, 132); ButtonPhoto.Content = "🔗"; ButtonPhoto.Foreground = new SolidColorBrush(Colors.Gray); }
private void ButtonAttach_Click(object sender, RoutedEventArgs e) { link = TextBoxLinkToImage.Text; ButtonPhoto.Foreground = new SolidColorBrush(ColorPicker.Color); TextBoxLinkToImage.Clear(); ImageAttachPreview.Source = null; if (link != string.Empty) { ButtonPhoto.Content += "*"; } else { ButtonPhoto.Content = "🔗"; } FlyOutAttach.IsOpen = false; }