none
How to get flow document row data in wpf? RRS feed

  • Question


  • I'm rendering a table in a WPF FlowDocument , it has context menu(name is GetRowData).Now when i select particular row then mouse right click on that row apply context menu event then i got that row data but i want to get that row data with out selecting(only Mouse right Click) row. How can i do this one.

    Wednesday, November 23, 2011 7:53 AM

All replies

  • Hi jalakam praveen,

    you could use PreviewMouseRightButtonDown event to handle the Right click and then set e.handled = true.

    If the select behavior occurs before right click, you could cancel selection by code in PreviewMouseRightButtonDown event handler.

     

    Best regards,


    Sheldon _Xiao[MSFT]
    MSDN Community Support | Feedback to us
    Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Thursday, November 24, 2011 9:23 AM
    Moderator
  • Hi Sheldon _Xiao,

     

      can you send  sample  code .I tried exactly what you said in above but i didn't get.

     

    @praveen


    Friday, November 25, 2011 4:47 AM
  • share your code with me, and I will help you complete it.
    Sheldon _Xiao[MSFT]
    MSDN Community Support | Feedback to us
    Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Friday, November 25, 2011 4:58 AM
    Moderator
  • Any update?

     


    Sheldon _Xiao[MSFT]
    MSDN Community Support | Feedback to us
    Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Wednesday, November 30, 2011 7:58 AM
    Moderator