Hi.
First of all add in ListBox definition of ItemSource property.See below:
<ListBox x:Name="list_budget" ItemSource="{Binding}" Width="440">
<ListBox.ItemTemplate>
<DataTemplate>
<TextBlock Name="txtname" Text="{Binding category}"></TextBlock>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
And alos why you declared variable jinal as:
List<string></string>
????
I suppose, that it must be
List<resultset> jinal</resultset>
, where ResulttSet could be represent as follow:
public class ResulSet
{
public string Name {get; set;}
public int Total {get; set;}
}
Also, it would be more prefarable to use ObservableCollection instead of List!!