void currentImage_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
try
{
currentImage=(Image)sender;
Border brdr = new Border();
brdr.BorderThickness = new Thickness(1);
brdr.BorderBrush = new SolidColorBrush(Colors.Gray);
brdr.Background = new SolidColorBrush(Colors.Red);
brdr.CornerRadius = new CornerRadius(5);
brdr.Child = currentImage;
currentImage.????????????????????????????????????????????
}
catch (Exception ex)
{
;
}
}
how can I Give border of the currentImage when Image is selected
Border of Image
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

ravindar pailla65 reputationPosted Jul 2, 2008, 9:54 PM EDT
try this
currentImage=(Image)sender;
Border brdr = new Border();
brdr.BorderThickness = new Thickness(1);
brdr.BorderBrush = new SolidColorBrush(Colors.Gray);
brdr.Background = new SolidColorBrush(Colors.Red);
brdr.CornerRadius = new CornerRadius(5);
brdr.Child = currentImage;
currentImage.Childrens.add(brdr);
or brdr.Childrens.add(currentImage);
or search about border in msdn