Pregunta

Estoy desarrollando una aplicación Windows Phone 7. Soy nuevo en las aplicaciones de Windows Phone 7. En mi aplicación, he creado un control de botón dinámicamente y agregué la imagen de fondo al control del botón de la siguiente manera.

Button AlphabetButton = new Button();
                AlphabetButton.Content = vAlphabet;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("button_off.png", UriKind.Relative));
                //brush.Stretch = Stretch.None;
                AlphabetButton.Background = brush;
                AlphabetButton.BorderBrush = new SolidColorBrush(Colors.Gray);

                AlphabetButton.Margin = new Thickness(-12, -27, 0, 0);
                AlphabetButton.Width = 80;
                AlphabetButton.Height = 80;     

Quiero eliminar el borde del control del botón porque con ese borde la imagen no aparece según el requisito. ¿Como hacer esto? ¿Podemos hacer esto con el BorderThickness Atributo del control del botón o hay alguna otra forma? ¿Puede proporcionarme cualquier código o enlace a través del cual pueda resolver el problema anterior? Si estoy haciendo algo mal, por favor guíeme.

No hay solución correcta

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top