Click here to Skip to main content
15,898,036 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi!
I am having problems with custom controls in LS.
This code is beging displayed:
Quote:
TypeName Format of Custom Control is not correct

And I am using this tutorial for making this Custom control:
http://blogs.msdn.com/b/lightswitch/archive/2011/04/08/how-do-i-display-a-chart-built-on-aggregated-data-eric-erhardt.aspx[^

My code:
VB
<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" Width="420" Height="340"
    d:DesignHeight="300" d:DesignWidth="400" 
    xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit">

    <Grid x:Name="LayoutRoot" removed="White">
        <toolkit:Chart x:Name="unitsInStockChart" removed="LightBlue" 
		BorderBrush="Green" BorderThickness="2"                        
                       Title="Situation of products in stock" Grid.Column="0" >
            <toolkit:Chart.Series>
                <toolkit:PieSeries Name="PieSeries1" 
		ItemsSource="{Binding Screen.PCharts}" 
		IsSelectionEnabled="False"                           
              	IndependentValueBinding="{Binding Produto1}" 
		DependentValueBinding="{Binding Quantidade1}" />
            </toolkit:Chart.Series>
        </toolkit:Chart>
    </Grid>
</UserControl>



I am trying to fetch my products and how many of them existing in multiple table and put it in a pie chart!
But I thing the problem is this: I need to bind somehow in a dictonary and put it in the chart! I have tried before but the LightSwitch is a little incomplete for begginers!

Sorry for my horrible English!
Thank you all for your attention!
Posted
Updated 4-Jul-15 13:40pm
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900