UWP Window Placement - vb.net

I am creating a .net UWP application in Visual Studio 2015 RC. I successfully set the Window size by using the following code:
ApplicationView.GetForCurrentView().TryResizeView(New Size(width, height))
What I would like is to be able to set the preferred window position on the screen (e.g. centred) but cannot find a way to set this in code.
Am I missing something obvious?
Thanks,
Mark

You're not missing anything obvious. Apps can request a specific size but not position for their views.

Related

XAML Control / Layouts Image Sliding for windows 10

currently i'm developing an windows 10 uwp apps, and i'm getting trouble ini designing my apps
i'm planning to make some kind of a image slider or whatever it names, just like in the Store apps, on the top page. it looks like a banner slide or something.
but i hardly find it on tutorials anywhere in the internet nor in documentation.
i think and believe that this using a pivot, but i'm confuse how to style it. so if someone probably knows, how to achieve this, please kindly answer it.
thank you
you must use FlipView control.
Please check the documentation.
https://msdn.microsoft.com/en-us/windows/uwp/controls-and-patterns/flipview

vb.net windows form automatic resizing

I have a windows form in my vb.net application which has recently started resizing itself dependant on the computers screen resolution.
I would like the form to be a fixed width and height - how can i make it do this and not resize itself?
You may try to change the property AutoScaleMode.
The default is FONT (the correct to most different systems DPI), but you may try other options there.
UPDATE
I saw now you may set the PROPERTIES of a file in the DESKTOP to "Deactivate Dimmension in High-DPI Settings" (it´s translated from Portuguese, my system). Click in the desktop application´s properties (its icon) and go to COMPATIBILITY TAB.
It´s not a .NET solution but if Windows had put it there, is because it´s possible the only way to set it.

How to give semantic zoom in windows 8 app

I am developing an app in which I want to add semantic zoom for languages. I used blank app...
I used simple mode not used grid or split template. In blank template, how may I use semantic zoom. Don't give me MSDN link.??
Language VB.net & C#
using Visual Studio 2012
Here's a sample by MS.
Hope it will help.
http://code.msdn.microsoft.com/windowsapps/GroupedGridView-77c59e8e

Alternative to Microsoft Agent / Fix for color issue?

I've got an app that does Text-To-Speech; but I wanted to show an animated face/character to go with it. I found a tutorial on Microsoft Agent and I implemented it in my vb.net app.
The problem is with the transparency color.
Unless I run application in compatibility mode/256 colors, the characters will appear with a purplish-pink background image instead of a transparent back-color. But running the app in 256 colors the rest of the app looks awfully out of place.
First - is there something that works similar to MS Agent I can use that would be more appropriate?
Second - if I'm still MS Agent - can I get the transparent color to work correctly without limiting myself to 256 colors?
There is an open/free alternative implementing same interface and supported 32/64 Windows 7 http://www.cinnamonsoftware.com/double_agent.htm

how to make a windows forms app unresizable?

how to make the windows app in vs 2008 unresizable?because when you launch the application and point and drag to its corners, the window grows.
Change the FormBorderStyle to a fixed one, depends what look you want. Here's a full list of options, you probably want Fixed3D or FixedSingle
You also probably want to set MaximizeBox to false.
Both of these can be found in the designer as options on the form, or set in code, whichever you prefer.
Take a look on the properties of the window control in the properties window. You'll probably figure out how to do this + how to control few more staff about the window..
Change the ResizeMode property of the window.