win-universal-app

How can I determine whether I am connected to WiFi or a mobile network in Windows Phone 8.1 (Universal app)?

天涯浪子 提交于 2019-12-18 05:14:08
问题 I am working with a Windows Universal app (shared backend between Windows 8.1 and Windows Phone 8.1, not Silverlight). The app connects to Azure with Azure Mobile Services. In the settings for the app I would like to have an option for synchronisation to only occur over a WiFi network. How can I determine if the phone is connected to WiFi or a mobile network? Although from my research I have found ways to do this with older versions of Windows Phone and with Silverlight, it seems I can only

Communication between UWP and Non UWP app

回眸只為那壹抹淺笑 提交于 2019-12-18 04:08:46
问题 Is it possible to have communication between uwp and non uwp apps. My non-uwp is a background task which provides a service. I want to call that non-uwp service in uwp app. How to make that call? Is AppServiceConnection class available in non-uwp app? 回答1: Yes, non-UWP apps can use AppServices to communicate with UWP apps. There is a sample here: https://github.com/Microsoft/DesktopBridgeToUWP-Samples/blob/master/Samples/AppServiceBridgeSample_C%2B%2B/cs/Win32Process_CPP/Win32Process_CPP.cpp

How do I log events in Windows IoT?

♀尐吖头ヾ 提交于 2019-12-17 20:29:43
问题 WebUI for Windows IoT (as seen on Raspberry PI) features the following Event Tracing screen: How do I write into an event log from a uwp program and then later examine what's written there? This answer (which is not about Windows IoT) suggests that you need to use standard System.Diagnostics.Tracing classes for it. The sample that this answer is referring to is to demonstrate logging to a file . I'm more after logging to a built-in facility, such as ETW. Following similar logic as in the

UWP page state manage

≡放荡痞女 提交于 2019-12-17 19:31:20
问题 I want to learn how to manage the state of a page between navigation. for example a navigate onto page1 and then i navigate to page2, but when i navigate back to page1, the UI elements must already be there with the same data as before and they must not be re-initialized or data must not be binded again by the compiler. Also what I can do to manage state of whole application such that, I terminate the app and then when i launch it next time, the same state is already there as last time. can i

When to use a templated control over a UserControl?

故事扮演 提交于 2019-12-17 17:34:42
问题 I was looking some tutorials on how to create custom controls in WinRT, and I have a question. Let's say I want to create a simple control that contains some stuff, like a Grid with an image on the left and a couple of TextBlocks on the right. I mean, something simple like: <Grid Height="100"> <Grid.ColumnDefinitions> <ColumnDefinition Width="0.3*"/> <ColumnDefinition Width="0.7*"/> </Grid.ColumnDefinitions> <Image Source"/Assets/someRandomImage.png"/> <StackPanel Grid.Column="1"

Overriding Pivot header foreground brushes in UWP app (Win 10 RTM SDK)

随声附和 提交于 2019-12-17 16:26:13
问题 I'm trying to override the Pivot header foreground theme brushes, but no matter what I do the UWP app just ignores it. Just to be clear, this question is about the UWP Pivot control, not the Win (Phone) 8.1 one. I've used the theme brush override method in a 8.1 app and it worked perfectly. But I can't seem to be able to do the same for a UWP Pivot. I looked for the respective brushes in generic.xaml (and in the Properties pane under Brushes -> System Brush Resources), which are

WinRT/UWP Frame and Page caching: How to create new page instance on Navigate() and keep the page instance on GoBack()

僤鯓⒐⒋嵵緔 提交于 2019-12-17 07:11:48
问题 I'm trying to create an UWP (Universal Windows App) application with C#. My problem is the Frame control: If I use it without NavigationCacheMode = Required , every time the user goes back, the page is not kept in memory and will be recreated. If I set NavigationCacheMode to Required or Enabled , going back works correctly (no new page object) but if I navigate to another page from the same type, the previous page object is recycled and reused (no new page instance). Desired behavior: Is

How to use Acrylic Accent in Windows 10 Creators Update?

僤鯓⒐⒋嵵緔 提交于 2019-12-17 07:07:13
问题 I can't find any detailed document to use Acrylic Accent (CreateBackdropBrush). I found a post in StackOverflow which is somewhat useful but it doesn't help to get started. So please create a detailed answer to this post so that everyone can learn. Update: Microsoft has released an official Acrylic material document Note: If anyone doesn't know about Acrylic Accent. Acrylic Accent is the new feature in Windows 10 Creators Update that allows the app background to be Blurred and Transparent.

UWP Binding in Style Setter not working

南笙酒味 提交于 2019-12-17 02:38:23
问题 I have problem with creating xaml control. I'm writing new project in VS 2015 in universal app. I want create grid. In this grid I want to have a button. In model I specifi the column (Level) and Row. this is my code: <ItemsControl Grid.Row="1" ItemsSource="{Binding Path=TechnologyList}"> <ItemsControl.ItemsPanel> <ItemsPanelTemplate> <Grid> <Grid.RowDefinitions> <RowDefinition Height="10*"/> <RowDefinition Height="10*"/> <RowDefinition Height="10*"/> <RowDefinition Height="10*"/>

UWP Binding in Style Setter not working

♀尐吖头ヾ 提交于 2019-12-17 02:38:18
问题 I have problem with creating xaml control. I'm writing new project in VS 2015 in universal app. I want create grid. In this grid I want to have a button. In model I specifi the column (Level) and Row. this is my code: <ItemsControl Grid.Row="1" ItemsSource="{Binding Path=TechnologyList}"> <ItemsControl.ItemsPanel> <ItemsPanelTemplate> <Grid> <Grid.RowDefinitions> <RowDefinition Height="10*"/> <RowDefinition Height="10*"/> <RowDefinition Height="10*"/> <RowDefinition Height="10*"/>