Click here to Skip to main content
15,917,005 members
Home / Discussions / C#
   

C#

 
AnswerRe: improve a recursive search method ? Pin
Richard Deeming8-Jan-18 5:55
mveRichard Deeming8-Jan-18 5:55 
GeneralRe: improve a recursive search method ? Pin
BillWoodruff15-Jan-18 6:01
professionalBillWoodruff15-Jan-18 6:01 
QuestionManaging Connection Strings From App.Config Pin
Kevin Marois4-Jan-18 4:18
professionalKevin Marois4-Jan-18 4:18 
AnswerRe: Managing Connection Strings From App.Config Pin
OriginalGriff4-Jan-18 4:40
mveOriginalGriff4-Jan-18 4:40 
GeneralRe: Managing Connection Strings From App.Config Pin
Kevin Marois4-Jan-18 4:44
professionalKevin Marois4-Jan-18 4:44 
GeneralRe: Managing Connection Strings From App.Config Pin
OriginalGriff4-Jan-18 4:59
mveOriginalGriff4-Jan-18 4:59 
GeneralRe: Managing Connection Strings From App.Config Pin
Chris Quinn4-Jan-18 20:58
Chris Quinn4-Jan-18 20:58 
AnswerRe: Managing Connection Strings From App.Config Pin
Gerry Schmitz4-Jan-18 10:09
mveGerry Schmitz4-Jan-18 10:09 
QuestionSURF and flann to image retrieval in emgu CV Pin
Member 136054434-Jan-18 3:05
Member 136054434-Jan-18 3:05 
AnswerRe: SURF and flann to image retrieval in emgu CV Pin
Richard MacCutchan4-Jan-18 3:37
mveRichard MacCutchan4-Jan-18 3:37 
GeneralRe: SURF and flann to image retrieval in emgu CV Pin
Member 136054437-Jan-18 22:37
Member 136054437-Jan-18 22:37 
AnswerRe: SURF and flann to image retrieval in emgu CV Pin
Pete O'Hanlon4-Jan-18 5:20
mvePete O'Hanlon4-Jan-18 5:20 
GeneralRe: SURF and flann to image retrieval in emgu CV Pin
V.4-Jan-18 18:51
professionalV.4-Jan-18 18:51 
GeneralRe: SURF and flann to image retrieval in emgu CV Pin
Member 136054437-Jan-18 22:36
Member 136054437-Jan-18 22:36 
QuestionBAL,DAL Pin
Member 136064294-Jan-18 0:38
Member 136064294-Jan-18 0:38 
AnswerRe: BAL,DAL Pin
OriginalGriff4-Jan-18 1:00
mveOriginalGriff4-Jan-18 1:00 
AnswerRe: BAL,DAL Pin
Gerry Schmitz4-Jan-18 10:42
mveGerry Schmitz4-Jan-18 10:42 
GeneralRe: BAL,DAL Pin
Member 136064294-Jan-18 19:20
Member 136064294-Jan-18 19:20 
QuestionEntity Framework Query Problem Pin
Kevin Marois3-Jan-18 18:38
professionalKevin Marois3-Jan-18 18:38 
AnswerRe: Entity Framework Query Problem Pin
Vincent Maverick Durano3-Jan-18 19:59
professionalVincent Maverick Durano3-Jan-18 19:59 
QuestionBlink an image in wpf c# Pin
Hervend2-Jan-18 23:01
Hervend2-Jan-18 23:01 
AnswerRe: Blink an image in wpf c# Pin
Pete O'Hanlon2-Jan-18 23:07
mvePete O'Hanlon2-Jan-18 23:07 
AnswerRe: Blink an image in wpf c# Pin
Eddy Vluggen3-Jan-18 2:37
professionalEddy Vluggen3-Jan-18 2:37 
AnswerRe: Blink an image in wpf c# Pin
Gerry Schmitz3-Jan-18 5:35
mveGerry Schmitz3-Jan-18 5:35 
Just did something similar for a "warning" system. The word "Warning" will alternate black on white / white on red in a "topmost" window (along with problem details).

While you could use a StoryBoard, I used a DispatcherTimer instead to alternate the forground and background colors of the "warning word", thus creating the "blinking". (500 ms seems annoying enough).
private void Window_Loaded( object sender, RoutedEventArgs e ) {

   _blinkTimer = new DispatcherTimer();
   _blinkTimer.Tick += timer_Tick;
   _blinkTimer.Interval = new TimeSpan( 0, 0, 0, 0, 500 );
   _blinkTimer.Start();
}

private void timer_Tick( object sender, EventArgs e ) {

   if ( _blinkToggle ) {
      uxWarningText.Foreground = Brushes.Black;
      uxWarningText.Background = Brushes.White;

   } else {
      if ( this.ZoneWarnings.Count > 0 ) {
         uxWarningText.Foreground = Brushes.White;
         uxWarningText.Background = Brushes.Red;
      }
   }

   _blinkToggle = !_blinkToggle;
}

For images, you can put them all in the same Grid cell, and then just toggle their visibilities based on what should show when.

(But, yes, don't "blink" unless you have to; I mostly rely on status "colors" and Segoe UI Symbol icons.)
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal


modified 3-Jan-18 12:22pm.

QuestionIs it wrong to pass an object into a method, change something and then pass it back to the caller? Pin
User987432-Jan-18 22:15
professionalUser987432-Jan-18 22:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.