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
260
Cell Value As Power Value Format
posted

Hi,

      I need to display value of a cell in power format e.g.2^6. Where values are coming from two different fields of my binding object.

  • 69686
    posted

     Hello,

    The easiest way I can think of for implementing that is to create a style for the CellValuePresenter of the cell you want to present the power format in and in the Template Property and modify it with a TextBlock like this one:

    <TextBlock>Number1<InlineUIContainer BaselineAlignment="Superscript"><TextBlock>Power of Number 1</TextBlock></InlineUIContainer></TextBlock>

    and then bind the text properties to the values of the cells that the data is coming from.

    Hope this Helps.