Hi,
I have about 30 views and corresponding VMs in my application. I have a help button next to most user controls which gives some description of what the field is for. When the user clicks on that button, a popup opens and gives the description. What will be the best way to make this functionality reusable in all the views? I have created a template for the help button and the help popup but can I go further than this? Thanks.
<Style x:Key="HelpButton" TargetType="{x:Type Button}" >
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Ellipse Focusable="True" Height="16" Width="16">
<Ellipse.Fill>
<ImageBrush ImageSource="../../Resources/Icons/Help.png" />
</Ellipse.Fill>
</Ellipse>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>