Bonjour à tous,
Je suis en train de decouvrir WPF et je souhaiterai créer un bouton invisible. En fait mon bouton contient une image et un texte de couleur blanche, et je souhaiterai que la structure du bouton soit invisible (pas de bordure visible, font transparent).
Est-ce faisable?
Pour l'instant j'ai testé cela... (très basique):
Le fond du bouton est bien transparent, mais on distingue encore le contour du bouton sur le fond uni de ma Window.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 <StackPanel Grid.Column="0" Grid.Row="1" Orientation="Vertical"> <Button Margin=" 5,5,5,5" Height="50" Background="Transparent" BorderBrush="Transparent"> <StackPanel Orientation="horizontal"> <Image Source="/Image/Printer.png"/> <TextBlock Text="Printer" FontSize="20" VerticalAlignment="Center" Foreground="White"/> </StackPanel> </Button>
merci pour votre aide
Partager