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
Loading
ravindar paillaPosted Jul 3, 2008, 1:54 AM
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