コード内のボタンの境界を削除する方法は?
-
30-10-2019 - |
質問
Windows Phone 7アプリケーションを開発しています。 Windows Phone 7アプリケーションは初めてです。私のアプリケーションでは、ボタンコントロールを動的に作成し、次のようにボタンコントロールに背景画像を追加しました。
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;
ボタンコントロールの境界線を削除したいのですが、その境界線は要件に従って画像が表示されないためです。これを行う方法?でこれを行うことはできますか BorderThickness
ボタンコントロールの属性または他の方法はありますか?上記の問題を解決できるコードやリンクを教えてください。私が間違ったことをしているなら、私を導いてください。
正しい解決策はありません
所属していません StackOverflow