Good morning people.On this occasion the upset to see that possibility had to do the following, put in a graph representing the percentage? Something like in the attached image.Thank you very much as always for the help you can give me.
Hi Juan,
I am attaching a sample where is shown how to define a percentage measure based on existing (already added) measure in the pivot grid. Refer to the snippet in xaml file. All you need to do is to restyle the cells in the column where this percentage measure is added. The best way to set style for a given column is in CellControlAttached event handler.
If you need more help do not hesitate to ask.
Thanks,
M.Yovchev
Thanks for the reply, but analyzing the project you sent me does not solve my problem because I need the XX% is shown in the graphic. It really has a style column "ScaledCell" where within the same cell is shown on the left and right bar the amount and the percentage is measured according to the budget execution of the budget.Thanks in advance for the help.
Ready, and achieve do what I needed.
Here hit style piece of code in the. <Rectangle Margin="2" Grid.Column="0" x:Name="CellChart" HorizontalAlignment="Left" VerticalAlignment="Stretch" Fill="{StaticResource ChartSeriesBrush12}" Width="{Binding RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource converter}}"/> <ContentControl Grid.Column="0" x:Name="Percent" Content="{TemplateBinding ToolTip}" ContentTemplate="{TemplateBinding ContentTemplate}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="Center" Margin="{TemplateBinding Padding}" HorizontalContentAlignment="Stretch" Foreground="Gray" /> <ContentControl Grid.Column="1" x:Name="CellText1" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" HorizontalContentAlignment="Stretch" Foreground="{TemplateBinding Foreground}"/>
Xaml Just had to put on the rectangle to draw the graph of the percentage text from the cell ToolTip.
A screenshot of how it looks superposition effect.
Greetings.I recommend that you check the Infragistics samples that are installed locally on your computer. There looking specifically the Conditional Formatting and modify it to your needs as much code mine has very particular to my case.For the percentage out within the frame, is the xaml code to paste before on the subject.
Hi
Do you have the code of this sample?
I'm reading this topic, and want to know the code of converter in Width of the rectangle.
Thanks
Thank you for the provided resolution. I think that other comunity members will benefit from this.
Regards,