I have placed a ProgressBar in a Ribbon on a Toolbar, but I can't figure out how to access it's properties, such as setting it's Minimum, Maximum, and Value properties.
How do I access and set these values when the ProgressBar is embedded in a ToolBar ribbon.
Thanks
Hello,
Are you referring to our UltraProgressBar and attempting to modify the ProgressBar at design time or runtime? Can you please clarify your requirements and what you would ultimately like to achieve?
I attached a sample that includes a UltraProgressBar inside a ControlContainerTool. There is a button on the form that sets the Min, Max, and value for the progress bar. The sample has been compiled with the latest version of Infragistics, VS 2012.
I would very much like to use a sample as a means of communication to eachother. The sample will help illustrate your requirements.
If you have any questions please let me know. Thanks.
I believe I am talking about an UltraProgressBar. I've created a new tool, and one of the dropdown options is a ProgressBar. I've then added this tool to my ribbon, by "Insert New Tool". I added another button to the ribbon, and when I click that button, I want to run a process that will update the Progress bar. Seems simple to me.
However, I don't know before hand how many records will be processed, so I don't know the Maximum at design time, only at run time. And I'd like to update the Value property as I process my records. But I don't see how to address these properties at run time.
I attached a sample of ours that includes an UltraActivityIndicator control that I updated to our latest version. It uses a background worker thread which runs a progress demonstrating the progress animation that you are seeking to achieve. Let me know if this is what you are looking for and if you have any additional questions.
No, that is not what I am talking about. You embedded an UltraActivityIndicator. I am talking about an UltraProgressBar.
If you will right-click on your UltraActivityIndicator, and choose "change tool type" and choose ProgressBar, you will see what I mean.
Plus, you have embedded the control in the ribbon. I am talking about placing the UltraProgressBar directly on the ribbon, just like you would place a button there. If you try to place a button on the ribbon, and instead of choosing "button" as the tool type, you choose ProgressBar as the tool type, you will get what I am talking about.
You can allocate variable of type ProgressBarTool from the key of your tool in the UltraToolbarManager's root tool collection, for example:
ProgressBarTool progressbar = this.ultraToolbarsManager1.Tools["ProgressBarTool1"] as ProgressBarTool;
progressbar.Minimum = 100;
progressbar.Maximum = 500;
progressbar.Value = 200;