Guest User

Untitled

a guest
Nov 18th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. <GridViewColumn Width="30">
  2. <GridViewColumn.CellTemplate>
  3. <DataTemplate>
  4. <Button Width="15" Margin="2, 0, 0, 0">
  5. +
  6. </Button>
  7. </DataTemplate>
  8. </GridViewColumn.CellTemplate>
  9. </GridViewColumn>
  10.  
  11. public class Product
  12. {
  13. public string Title { get; set; }
  14. public int Number { get; set; }
  15. public int Price { get; set; }
  16. public string Placement { get; set; }
  17. public int NumPrice { get; set; }
  18. }
  19.  
  20. List<Product> products;
  21.  
  22. products.Add(new Product { Title = "Adobe Photoshop", Number = 1, NumPrice = 10, Price = 20, Placement = "в наличии (скидка 50%)" });
  23. LW.Items.Refresh();
Add Comment
Please, Sign In to add comment