UWP Windows 10 App memory increasing on navigation

Every time you navigate to a Page, you create a new instance of Page, but the previous Page is not disposed (even if the Page is already in the navigation stack). To prevent multiple allocation of same page, set NavigationCacheMode=”Enabled” attribute to the Page. Also, to minimize the memory allocation, you must override method OnNavigatedTo … Read more

How to execute Process commands (or similar) using a Universal Windows Platform (UWP) App?

There are – limited – ways to achieve similar behavior. You could use LaunchUri to trigger other apps which registered for a certain URI-Scheme. This should work for your webbrowser scenario. More details here: https://msdn.microsoft.com/en-us/library/windows/apps/windows.system.launcher.launchuriasync.aspx You could trigger another app and get results back from it using LaunchForResults. The called app has to support this. … Read more

How to use Acrylic Accent in Windows 10 Creators Update?

CREATOR UPDATE XAML You need to use a component that you put on the background of your app, let’s say a RelativePanel <RelativePanel Grid.Column=”0″ Grid.ColumnSpan=”2″ MinWidth=”40″ x:Name=”MainGrid” SizeChanged=”Page_SizeChanged”/> <RelativePanel Grid.Column=”0″ Width=”{Binding ElementName=MainGrid,Path=Width}” Background=”#28000000″/> <Grid> <!–Having content here, for example textblock and so on–> </Grid> The second RelativePanel is used to set the shadow color above … Read more

UWP Enable local network loopback

For a line of business app use the checknetisolation.exe tool to grant the app a loopback exception. To enable loopback use this command: c:\>checknetisolation loopbackexempt -a -n=<package family name> To disable loopback use this command: c:\>checknetisolation loopbackexempt -d -n=<package family name> The package family name for a UWP app can be found in several places: … Read more

How to check internet connectivity type in Universal Windows Platform

1. Check Internet Connection Availability To check whether any network connection is established or not use GetIsNetworkAvailable method of NetworkInterface class. bool isNetworkConnected = NetworkInterface.GetIsNetworkAvailable(); GetIsNetworkAvailable() – Summary: Indicates whether any network connection is available. Returns: true if a network connection is available; otherwise, false. 2. Check Internet Connection Availability via WWLN (WiFi) To check … Read more

Let image ManipulationMode capture pointer

Why don’t you just use drag-n-drop? Create a grid containing your toolbar (e.g. a list of images to drag) and a target grid that responds to dragdrop commands: <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width=”Auto” /> <ColumnDefinition Width=”Auto” /> <ColumnDefinition /> </Grid.ColumnDefinitions> <ListBox Background=”AliceBlue” MouseMove=”OnMouseMove”> <ListBox.Resources> <Style TargetType=”{x:Type Image}”> <Setter Property=”Width” Value=”64″ /> <Setter Property=”Height” Value=”64″ /> </Style> … Read more

Setting window size on desktop for a Windows 10 UWP app

Try setting PreferredLaunchViewSize in your MainPage‘s constructor like this: public MainPage() { this.InitializeComponent(); ApplicationView.PreferredLaunchViewSize = new Size(480, 800); ApplicationView.PreferredLaunchWindowingMode = ApplicationViewWindowingMode.PreferredLaunchViewSize; } As @kol also pointed out, if you want any size smaller than the default 500×320, you will need to manually reset it: ApplicationView.GetForCurrentView().SetPreferredMinSize(new Size(200, 100));