locked
change foreground color of perticular textblock in gridview RRS feed

  • Question

  • Hello everyone,

    I have one question. I am trying to change foreground color of textblock which is in gridview. See below image


    I am trying to change foreground color of MyName text to Red color & in this gridview this both thing are necessary.

    So how to do to change of MyName foreground color black to red. Thanks in advance.

    IsItemClickEnabled="True" SelectionMode="None"

    Tuesday, July 16, 2013 6:22 AM

Answers

  • I found my solution:

    I am using BooleanToVisibilityConverter class & replace visibility to foreground.

    • Marked as answer by Khant Nipun Thursday, July 18, 2013 10:53 AM
    Thursday, July 18, 2013 10:53 AM

All replies

  • you can directly set the foreground color in your datatemplate.

    Nazia

    Tuesday, July 16, 2013 9:12 AM
  • Hello nazia thanks for reply

    I am not direct set the foreground property because in my case when i am click on delete image than change the foreground property. so how to do?

    Tuesday, July 16, 2013 10:11 AM
  • can you please post your design code of gridview?

    thanks, prathap If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful".

    Tuesday, July 16, 2013 10:59 AM
  • I found my solution:

    I am using BooleanToVisibilityConverter class & replace visibility to foreground.

    • Marked as answer by Khant Nipun Thursday, July 18, 2013 10:53 AM
    Thursday, July 18, 2013 10:53 AM