Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 4th, 2012  |  syntax: None  |  size: 0.51 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Programmically selecting hyperlinkbuttons
  2. enter code here
  3.  
  4.     protected override void OnNavigatedTo(NavigationEventArgs e)
  5.     {
  6.         int d;
  7.         d = DateTime.Today.Day;
  8.         int i;
  9.         for (i = 1; i <= d; i++)
  10.         {
  11.            if (i==d)
  12.             {
  13.               (hyperlinkButton{0},i).background= new SolidColorBrush(Colors.Black); //Here it should be something like this but i'm not sure how to do it
  14.              }
  15.          }
  16.        
  17. hyperlinkButton.Background = new SolidColorBrush(Colors.Black);