Add icons to progress ring for windows 8 app - c#

I am constructing a windows 8 app and I wanted to change my progress ring to be pictures or icons instead of the dots like regular rings are.
Anyone have any ideas on how to go about coding this in c# or xaml?

You need to use the default ProgressRing style with Control Template and change in the way you want it. As you can see this style has 6 ellipses which represent the dots in Progress Ring. You will need to change each of them to whatever you want: Images or Rectangles or something else. Take a look on this article Quickstart: styling controls (Windows Store apps using C#/VB/C++ and XAML)

Related

Creating custom graphics with Windows Phone XAML

I am creating a WP 8.1 app with MVVM Light Toolkit. I have to call a service of weather measurings information, and then, I have to create different graphics with the indicator showing the value of the service response. For example, I have this image:
And it should be like this:
Or these images:
And should end up like this:
How can I get the position where I would put the shape indicating the value? Or in the second case, the needle pointing the value? And, how would I support multiple resolutions?
you should draw everything in a Canvas panel. There you can control the assets positions and transformations. This also requires to have objects to preserve the state of each thing. This question maybe doesn't have an easy answer but I strongly recommend to you learn about that in this links
Using XAML to write Windows 8 Games - Part 1
Using XAML to
write Windows 8 Games - Part 2
Using XAML to write Windows 8
Games - Part 3

How to create one page app on Windows Phone

I am doing app for Windows Phone 8.1 and I am want to know your opinion about how to solve followed problem. The app is designed to be one-page, but I dont know how to solve it, because no of default windows controls fit to my requirements. Design is here:
So, it is somethink like double pivot. In second menu will be pictures or text or somethink, which will navigate between content by topic. Each Content could be splited into separate views, which will be changing by touch movement. Points color (or design or whatever) will be changing (somethink like this slider.
So, what do you think about it, it is possible? And if yes, so how? I will probably need create custrom controls and panel. Do you have any tips, which will push me the right way? How would you solve this?
Thank you

Apply stroke to a TextBlock (Windows 8)

How do you apply stroke (outline around text) to a TextBlock in XAML in a Windows 8 store app (not WPF)?
A very similar question was asked in 2008, but the suggested solution from Apply stroke to a textblock in WPF and the referenced https://msdn.microsoft.com/en-us/library/ms745816.aspx only work on Windows Presentation Foundation (WPF) applications. The effect I am looking for is the same.
Thanks for your help!
I have successfully done it with Win2D effect http://expediteapps.com/blog/textblock-with-win2d-effects/
The idea is to apply two effects that create the outline effect. You can experiment with different ways and find the best combination you need. To add Win2D you can get it by nuget and is really easy to use.
and you do not need to convert the font to any strange glyphs.

How to create flipping tile effect inside an app for Windows Phone

I am developing an app which shows image and I want to provide important relevant information on the same image. Essentially, I want to create a flipping tile inside an app and later pin it to the start. Is it possible to have one?
Radcontrols Hubtile or Coding4Fun toolkit Hubtile is what you are looking for.
About creating secondary tiles on windows phone check this article.

Control Screen Brightness in WIndows Phone 7

Is it possible to to use c# to change the screen brightness? I know some apps can control it so if there is not a direct way then does anyone know of a workaround?
Thanks
Unfortunately you don't have that level of hardware control, but if you only need to make the screen dimmer, you just need to scale down the RGB values of each pixel.
Depending on what you're working with, there are a number of approaches, but if you have a black background, you can just adjust the opacity of your front layer, which will effectively dim the content.

Categories