This question is locked. New answers and comments are not allowed.
Hi,
I am able to set the GridView filter icon tooltip from xaml(nothing but hardcoded) as like shown in below sample code (ToolTipService.ToolTip="Filter"). But I wish to set the filter icon tooltip at run time to achieve this.
Please help me how we can achieve this and also please tell me how to get that object in server side to set the tooltip.
<ControlTemplate TargetType="grid:FilteringDropDown" x:Key="DistinctFilterControlTemplate"> <Grid> <ToggleButton x:Name="PART_DropDownButton"> <ToggleButton.Template> <ControlTemplate TargetType="ToggleButton"> <ContentPresenter /> </ControlTemplate> </ToggleButton.Template> <Grid Cursor="Hand" Background="Transparent" > <!--[jcarvajal] Modified filter icon and added tooltip--> <Border Cursor="Hand" Background="Transparent" Padding="0"> <Image Source="/LorArcChlorosTheme;component/Images/iFilterNOR12.png" Width="12" Height="12" Cursor="Hand" ToolTipService.ToolTip="Filter"/> </Border> <!--[fmoreno] Added filtered icon--> <Border Cursor="Hand" Background="Transparent" Padding="0" Visibility="{TemplateBinding FunnelFillVisibility}"> <Image Source="/LorArcChlorosTheme;component/Images/iFilterHOT12.png" Width="12" Height="12" Cursor="Hand" Visibility="{TemplateBinding FunnelFillVisibility}" ToolTipService.ToolTip="Filtered"/> </Border> </Grid> </ToggleButton> <Popup x:Name="PART_DropDownPopup"> </Popup> </Grid> </ControlTemplate> <Style TargetType="grid:FilteringDropDown"> <Setter Property="Template" Value="{StaticResource DistinctFilterControlTemplate}"/> </Style>Thanks & Regards,
Nagavardhana Reddy