Thursday, April 10, 2014

Devexpress WPF how to make Buttons

In case you were wondering where ordinary buttons went in devexpress for WPF, here is an example of how to make one.

First, make sure to set the dxe namespace:

xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors" 

then:

<dxe:ButtonEdit Height="23" Margin="195,137,0,0" Width="75" ShowText="False" AllowDefaultButton="False">
 <dxe:ButtonInfo Content="Cancel" Click="btnBack_Click" />
</dxe:ButtonEdit>

No comments: