Border of Canvas should be Beziercurve / LCARS Canvas - c#

I'm trying to program a security System using a Raspberry Pi and new Windows Universal App Platform (so I'm using Windows IoT).
This security System should look like the LCARS OS, used in the "younger" Star Trek Spaceships. I had no Problem designing the Buttons etc. but if you know LCARS, you know that there are theese so called "elbows". I thought it would be a good idea to use a canvas for that.
I tried to give the canvas a border that is drawn with a beziercurve but that did not work.
Actually I have no idea how I could resolve the problem. Is there anybody who may help (or has a complete different /better idea)?
I'm using C# with XAML for developing (Blank Windows Universal App Template).

Related

Windows custom scaling break the Winform app look

I am developing Windows form application using C#. I found that this application is scaled correctly if I used the default scaling offered by Windows 10 (100%, 125%, 150%). But if I used the custom scaling like 110%, 115%, 135%,... the application gone bad. You can see the picture bellow (left is 125% and right is 135%).
What I have tried so far: enabled dpi awareness, set AutoResizeMode to none/dpi/font, but didn't work.
Is there anyway I can prevent the Windows from breaking my application if the custom scaling is enabled? I know the Winform is old and also maybe its the Windows problem itself, but any advices will be appreciated.

Expression Animation in WPF

Is there any kind of animation available for WPF app like expression animation in UWP?
Suppose I want to move a rectangle vertically with my mouse and another rectangle should move horizontally accordingly to the first one.
You can try with WindowsXAMLHost: it's a new feature, still in development, incorporated in the Windows Community Toolkit.
By using the WindowsXamlHost control, you can add built-in or custom UWP controls to the User Interface (UI) of your WPF or Windows Forms desktop application, even with custom functionalities.
Check the related MSFT Docs here: UWP controls in Desktop applications
Then get the companion app from the Win Store: Windows Community Toolkit Sample app
It will be a little bit tricky... but I'm sure that it is possible to do what you requested.
Best regards

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

alignment is not getting proper in different resolution

i am working on visual studio 2010.
i created my master form windows state is Maximized
my system resolution is 1366X768 ,,in one button click i am calling 5 forms together into my master form.. but in my system everything getting correct..
but i installed the same application in my client system,,that system resolution is 1024X768
but here my alignment is not getting proper..now my image is getting like this:
so how i can fit my windows form application in all resolution,,if any one know please help me to find out
You basically have two options:
1) Follow Microsoft's instruction on implementing auotscaling for Windows forms applications. (See http://msdn.microsoft.com/en-us/library/ms229605(v=vs.110).aspx)
2) Write your own code to scale the form based on resolution.
============================
Other factors to keep in mind.
If you app is translatable that can affect scaling
A user changing the Windows default font size can have the same affect.
Hope this helps.

Visualizing Audio while recording in Windows Phone 8

I`m trying to make an windows phone 8 app which simply allow you to click a button which result in start recording and showing any visualization that indicate that its recording something like a bar or a vu meter , I managed to make the recording part, now i dont know what type of projects i should use to support making such visualization.
does Windows phone 8 apps support using XNA to draw in a box inside a xaml file ?
what is the tag i can use to draw inside using XNA code ?
If you're targeting WP8 you can't use the hybrid SL/XNA model. That said, you can certainly use a Hybrid solution that draws using DirectX. You can find general information here and a sample here (note that it uses DrawingSurfaceBackgroundGrid, you probably want DrawingSurface).

Categories