hai guys i need your help to create a rectangle button with xaml.
if we create a default button will rounded rectangle but开发者_Python百科ton. and i not found corner radius setting.. please help me..
You have to create your own Style for your button. Take a loot at this example, and then you can play with RadiusX RadiusY properties of both Rectangles to avoid rounded rectangle.
Your basic style would be:
<Rectangle>
<ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Rectangle>
That would be a very basic button style that has rect corners. I still suggest to read blurg's link for more info, as this can be very flexible and/or complex ;)
Cheers.
Take a look at the MSDN example for creating fancy buttons here. Also take a look at the answer to this question.
精彩评论