This example demonstrates how to turn DXButton controls into clickable cards with custom content. For example, the bottom card displays a ChartView.
Included controls and their properties:
If a control in a DXButton intercepts a click, set the control's InputTransparent
property to true
. In this case, the control handles clicks instead of the DXButton:
<dx:DXButton Clicked="Button_Clicked" ...>
<Grid>
<views:PageviewsAreaChartView InputTransparent="True"/>
</Grid>
</dx:DXButton>
- MainPage.xaml
- ChannelsDonutView.xaml
- PageviewsAreaChartView.xaml
- ChannelDonutViewModel.cs
- PageviewsAreaChartViewModel.cs
- App.xaml
(you will be redirected to DevExpress.com to submit your response)