Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WCF and WF
  4. Adding progressbar in listview/grid

Adding progressbar in listview/grid

Scheduled Pinned Locked Moved WCF and WF
csstutorial
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    Haim Nachum
    wrote on last edited by
    #1

    Hi. I have a listview that im using its view property as grid. i want to have a grid with rows where each row has a textbox and a progressbar. Ive created a class that have two members: a string member ans a progressbar member. I've created a collection object and added new instances of my class and then assigned the listview ItemsSource property to that collection. but when displaying the listview in runtime i see instead of the progressbar the following text : "system.windows.controls.progressbar minimum:0 maximum:10000 value:0". I guess its because the itemTemplate of the listitem is text, but i dont know how to implement it. here is the code : private void Window_Loaded(object sender, RoutedEventArgs e) { System.Windows.Controls.ProgressBar p = new System.Windows.Controls.ProgressBar(); p.Maximum = 10000; p.Width = 100; ObservableCollection<somesome> o = new ObservableCollection<somesome>(); o.Add(new somesome { text ="text" , pro = p }); listView1.ItemsSource = o; } public class somesome { public string text { get; set; } public System.Windows.Controls.ProgressBar pro { get; set; } } Thanks for advance.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups