How do I make a more sophisticated "Roller"?
I am looking for a good example of a percentage roller in Silverlight. (someone told me that they were called rollers)
The little default BusyIndicator is nice but I have a lot going on in the backgroud for a particular app and because of this, I want one of those rollers that give a percentage of how much time the use can expect to wait. I already have a way of determining what sort of percentage is going on. In other words, I know what sort of data to send the roller. Can anyone help me?
Use the ProgressBar control and override the ControlTemplate to make it look the way you want.
If I understood correctly you want to change custom BusyIndicator. Here are couple of articles that may help you:
Custom Busyindicator style in Silverlight 4
Ajax-style Style for Silverlight BusyIndicator?
And there is a lot of other nicely created styles for this Control. Try to google it.
Regarding ProgressBar take a look at The ProgressBar control in Silverlight.
Related
I managed to build a darts scoring app programmed in C#(Winforms).
For scoring I used a Datagridview. Everything works quite nice so far, but for design purposes I'd like to use semitransparent Background Image, like I used for the Panels.
Unfortunately the Datagridview it self has no Background Image Property, so i wonder if its possible to customize Datagridview to achieve the following:
Background Image for The Control itself and transparent Background for Cells?
I would be happy if someone can help me because i don't understand how to customize the appearance of Controls.
Thanks in advance.
Sorry for my english.
I have not done it, but it should be possible by creating a new control inheriting from the DataGridView as described in this post:
https://social.msdn.microsoft.com/Forums/windows/en-US/628f8b29-1192-4c67-bae9-91547dd37039/assign-background-image-to-datagridview?forum=winforms
But I think you should consider an alternative approach which is to use a 3PP control known as ObjectListView, which can support background images.
Details can be found here:
http://objectlistview.sourceforge.net/cs/index.html
This requires a different approach, but once you master it then it is very powerful and very useful.
I'm trying to style some buttons in Wpf. The only thing I actually want to change is the colours used for the hover/click/focused effects.
All the tutorials I've found rely on replacing the template for the button entirely. This is great if you want to change everything about the button; However, if all you want to do is change some colours it's a monumental undertaking to reimplement properly.
The default control gives a lot of functionality for free (animations, UI automation/accessibility, tested in multiple localisations, etc). Making it look like the original is tedious enough, but making it function the same way is near impossible.
So... Instead of trying to reinvent the wheel, is it possible to load the default template, modify it and then apply the modified version? Doing this in xaml as opposed to C# would be preferable.
I had the same issue a few years ago, and I came up with this solution.
Hope this helps.
Sorry for the dumb question but I'd like to know if an ownerdrawn control can be used in a WPF or silverlight application. I never heard of one though,
Thank you,.....
Actually the beauty of WPF is that every control is actually ownerdraw (in terms of Windows Forms development). You can do with the shape of controls whatever you want still remaining consistent in all functinality provided by him.
It's impossible in one answer to describe all potential WPF has, so I strongly suggest to find WPF documentation and read read read...
i am trying to research some gui technology for c# where i can display a tree view (opposed to the standard one provided.)
Essentially i want to have the gui draw a tree of data (as if you were going to draw a binary tree on a piece of paper or something) Then making each of the nodes clickable.
If this isnt available does anyone know of something where i could have a mindmap type GUI which shows links between elements and those are clickable?
I can guess people will say make one yourself, in which case i give up already ;) thats too advanced for me and as i am on a work placement i dont think i would be granted the time to make it as there are more pressing issues to get working first, like actually making the programme work!
Thank you
You can take a look at the controls in Kevin's WPF Bag-o-Tricks which has a WPF mind map style layout. Here is a nice example. If you want to use more professional components take a look at the product from Nevron Software, they have some great controls. There is also an opensource WPF graphing library - graphsharp (which I have no experience with, but I found a nice article by Sacha Barber). Since it's used in nDepend it must be pretty mature.
I hope you get some inspiration from those links :)
I also found XMind API for C#
https://xmindapi.codeplex.com/
It's free and looks easy to use.
I'm still learning C#, and I know don't know about WinForms yet but I will very soon. However I want to know how I would create an application which shows a customized notifier, like Growl on a Mac. Here's a mock up:
http://img25.imageshack.us/img25/3793/41151387.jpg http://img25.imageshack.us/img25/3793/41151387.jpg
Could anyone point me in the right direction? And I know I should learn more about C# before trying this, but I've always liked to peek on complicated stuff.
Take a look at this third-party WPF NotifyIcon control, I think it does what you want out of the box, hopefully something like this will be part of WPF in the future. I have used this one before for the exact same reason, and it is really good: you can use standard tooltips or "toast" popups, or create your own which could be just like the one in the example you posted if you wanted.
WPF would be a great place to start. you can make UIs in pure XAML without even touching C#
Here is an example of an "notification" implementation using WPF
Here are some reference links:
http://en.wikipedia.org/wiki/Windows_Presentation_Foundation
http://windowsclient.net/wpf/
You should probably look into WPF (Windows Presentation Foundation) to design some of the nonstandard UI stuff.
However, I would recommend becoming familiar with UI design in general before diving into nonstandard stuff.
Since you are starting from scratch, I would consider learning WPF rather than Winforms.
Here are two examples are a pop-up notifier in WPF:
WPF Taskbar Notifier - A WPF Taskbar Notification Window
PopUp window on a specific time in WPF?
WPF is Definitely what you are looking for if you want something like the image you provided. My project uses notification popups similar to that in the screenshot. Its really simple to get the wanted results after looking at a few samples of others who have done it. If you would like some help, you can send a message my way.