Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
15
Hyperlink stopped working in XamDataGrid
posted

Hi Team,

After updating from InfragisticsWPF4.v13.1 to v19.1, the following Hyperlink_RequestNavigate method stopped being called when the hyperlink is clicked, do you know what can be the cause ?

<Style x:Key="PricingDetailsCellStyle" TargetType="{x:Type igDP:CellValuePresenter}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type igDP:CellValuePresenter}">
<TextBlock VerticalAlignment="Center" TextAlignment="Center" Visibility="{Binding Path=DataItem.PLinkFilled}">
<Hyperlink NavigateUri="{Binding Path=DataItem.PLink}" RequestNavigate="Hyperlink_RequestNavigate">
Pricing details
</Hyperlink>
</TextBlock>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>

private void Hyperlink_RequestNavigate(object sender, RequestNavigateEventArgs e)
{
try
{
Process.Start(new ProcessStartInfo(e.Uri.AbsoluteUri));
e.Handled = true;
}
catch (Exception)
{
CEventLog.OnError("Failed to open pricing details link");
}
}