I'm wondering if it is possible to create a busy indicator with the following style:
The default busy indicator I don't like so I wanted to customize it and have it appear like the above? But I don't think I can use 'gif' images in silverlight. Anyone know how to achieve this?
In this post you can see how a progress bar can be templated
It might be easiest to do this in Blend instead of typing it in XAML.
Have a look at this question too: Problem with IsIndeterminate while trying to put together a ProgressBar XAML template
Related
I'm working on an UWP application and I have buttons on it. I added a simply ToolTipService:
But when I hover the mouse on the button, the tooltip takes almost 2 seconds for being show, and I'd like this to be instant. I looked for solutions, but all I find is about WPF and these solutions DON'T WORK. For example:
Change the ToolTip InitialShowDelay Property Globally
This doesn't work,
Than You!
ToolTip Class:
It canĀ“t be done the way I proposed, so as #MoDu mentioned, the best way is to show/hide a control handling onPointerEntered() event
How can I make a custom button like in the image below? I searched on Google about custom control, but this is more special, is animated...
I know that on StackOoverflow are more questions like mine, but it is not a duplicate, I want to learn more about this particular button.
It is a button for WinForms.
you can create these buttons with GDI+ in C#,for example look at this one
On Windows form these buttons are made using the BackgroundImage Property of Button Control.
All you need is to toggle the background image on events like Click,OnMouseEnter etc.
This is not a custom control, this is CSS
Have a look at this, http://www.dynamicdrive.com/style/csslibrary/item/css_square_buttons/
You should possibly read something about gif-animation, jquery animation or css3 transitions to be able to animate backgrounds of such element
I want to create a custom tooltip, with a different style so that when I click on a control (for example a label or a user-control) it appears.
Something similar to what Google does in Google Maps for coordinates.
I tried to create a user-control and show it when user clicked on a label, but it didn't work well.
It is WinForms!
I attached a picture of what I want. Thank you in advance!
Use a standard ToolTip but override the painting method so it can appear as you want it, while still behaving like a normal tool tip.
Haven't done this before so I can't provide an example.
EDIT: here is an example: http://cboard.cprogramming.com/csharp-programming/119414-custom-tooltip.html
I'm trying to style some wpf user controls to make them look the same i have in my web application. I found some really great example for every control i need except for sliders and radio buttons.
Here is how they should look like:
Slider:
Radio Button:
I know i should create some ControlTemplate but i don't really know where to start...
If you can provide a complete example it would be perfect, but i guess that even some good deep advise would fit my needs.
Thank you 1000!
I have style sample here. It renders this:
I would start with Control Styles and Templates on MSDN pages. There are examples for most controls which give a good overview of how the control template works. Also you can extract/download the original control template and try to make your changes to it. Download default control templates
P.S. Actually the slider example on the first link resembles the one you describe.
Try using Expression Blend.
Learn Expression
and specifically this video: Creating ControlTemplates.
Expression Blend is something like a XAML design application - you can size, colour, adjust fill and stroke etc on all the elements in a control. It takes a little while to get used to, but you will be able to design controls with a graphical UI and Expression will provide you with the appropriate XAML to use in your project.
I am not worried about whether this is in Winforms or WPF.
Is there ANY way at all that I could develop my own user control like the one found in Microsoft Paint, below:
If you can't see the pic above, it's here: http://img232.imageshack.us/i/txtboxlblctrl.png/
Is there anyway at all I can do something like this in C#?
Thank you
Sure you can. By developing your own Usercontrol you can do nearly anything.
I think the easiest way would be to use a WPF TextBox and alternate it with a template.
This [http://img199.imageshack.us/i/textboxu.png/] is what you get by simply using [http://img163.imageshack.us/i/stipe.png/] as BorderBrush