Articles in this section
Category / Section

How to customize the title of the SfHubTile in WPF?

3 mins read

You can customize the title of the WPF HubTile control by editing the TitleStyle property. The TargetType of the style should be of type ContentControl. For example, you can customize the Title property of the SfHubTile control with a TextBlock aligned to the left and another SfTextBoxExt aligned to the right, as shown in the following code.

MainPage.xaml

<notification:SfHubTile Header="Header" Title="Title" ImageSource="Assets/HubTile.png" Height="300" Width="300"
                                VerticalAlignment="Center">
            <notification:SfHubTile.TitleStyle>
                <Style TargetType="ContentControl">
                    <Setter Property="Foreground" Value="White"/>
                    <Setter Property="FontSize" Value="17"/>
                    <Setter Property="ContentTemplate">
                        <Setter.Value>
                            <DataTemplate>
                                <Grid>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto"/>
                                        <ColumnDefinition/>
                                    </Grid.ColumnDefinitions>
                                    <TextBlock Text="{Binding}" Margin="10"/>
                                    <input:SfTextBoxExt Text="Right-aligned Text" TextAlignment="Right" Grid.Column="1"
                                                        Height="30" VerticalAlignment="Top"/>
                                </Grid>
                            </DataTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
            </notification:SfHubTile.TitleStyle>
        </notification:SfHubTile>

The above code generates the following output.

Right Aligned Text


Conclusion

I hope you enjoyed learning about how to create Excel pareto chart in C#, VB.NET in WinForms.

You can refer to our WPF HubTile feature tour page to know about its other groundbreaking feature representations and documentation, to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsDirect-Trac, or  feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied