Articles in this section
Category / Section

How to display a popup Window when the HyperLink cell is clicked

2 mins read

XAML

<TextBlock Text="Popup window with hyperlinkcellclick value" Foreground="DeepPink" FontSize="10" Grid.Row="0" Grid.ColumnSpan="2" />

                                <TextBlock Text="Value" Grid.Row="2" Grid.Column="0" />

                                <TextBlock Name="value" Grid.Row="2" Grid.Column="1" Foreground="Maroon"/>

                                <Button Content="Close pop Up" Click="Button_Click" Grid.Row="4" Grid.ColumnSpan="2"/>


 

C#

this.pivotGridControl1.HyperlinkCellClick +=new HyperlinkCellClick(pivotGrid1_HyperlinkCellClick);

 

private void pivotGrid1_HyperlinkCellClick(object sender, HyperlinkCellClickEventArgs e)

        {

            popup.IsOpen = true;

            popup.Visibility = Visibility.Visible;

            value.Text = e.PivotCellInfo.FormattedText;

        }

 

 

        private void Button_Click(object sender, RoutedEventArgs e)

        {

            popup.IsOpen = false;

            popup.Visibility = Visibility.Collapsed;

        }


 

C:\Users\labuser\Dropbox\Screenshots\Screenshot 2014-05-26 12.38.02.png

Figure: Normal Pivot Grid

C:\Users\labuser\Dropbox\Screenshots\Screenshot 2014-05-26 12.39.26.png

Figure: Pivot Grid with pop up Window

 

 

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