Eliminating The standard shape of a bitmap(actually xaml based) button, How to :)?
-
Hi I am new in WPF so in advance I apologize if it is just a simple question I have a vector based (actually xaml based) image in the resources and I want to have a button that just contain that image and I don't want to have a button that just contain that image ,I want a button that does n't have the traditional standard shape of a button, I mean I want a BitmapButton only a bitmap I want to appear instead of button , nothing else I have a code that do this but still show that standard view that I don't like Please Tell me what should I do to eliminate that. Thank you P.S Here is the code:
<Button Grid.Row="5" Height="75" Width="220" Padding="2" >
<ContentControl Template="{StaticResource Credit-Card}" />
</Button> -
Hi I am new in WPF so in advance I apologize if it is just a simple question I have a vector based (actually xaml based) image in the resources and I want to have a button that just contain that image and I don't want to have a button that just contain that image ,I want a button that does n't have the traditional standard shape of a button, I mean I want a BitmapButton only a bitmap I want to appear instead of button , nothing else I have a code that do this but still show that standard view that I don't like Please Tell me what should I do to eliminate that. Thank you P.S Here is the code:
<Button Grid.Row="5" Height="75" Width="220" Padding="2" >
<ContentControl Template="{StaticResource Credit-Card}" />
</Button>You'll probably want to change the template of the button to give it a different layout. The section "Creating a ControlTemplate" in the Controls Overview[^] has an example. Mark
Mark Salsbery Microsoft MVP - Visual C++ :java: