Abhi_Code
Abhi_Code

Reputation: 33

How to make button invisible but it's content should be visible in xaml

Below is code for my button, so what properties should I add to make button invisible but content must be visible.

<Button x:Name="PART_PreviousButton" 
    DockPanel.Dock="Left"
    Content="&lt;"
    Focusable="False" 
    Opacity="0" />                                               

Upvotes: 1

Views: 135

Answers (1)

Ouarzy
Ouarzy

Reputation: 3043

You need to edit the button Template to have this kind of result. This link explains it pretty well, the easiest way is to do it with blend: http://msdn.microsoft.com/en-us/library/bb613598.aspx

Upvotes: 2

Related Questions