win-universal-app

Universal Windows (UWP) Range Slider

跟風遠走 提交于 2019-12-21 05:40:53
问题 I want to create range slider in UWP . I didn't find any example. There are only single sliders but I want it like . Does anybody know how can i do it? Please help me. 回答1: To create a range slider in UWP, we can create a custom control or use UserControl. Here I use UserControl for example: Firstly, I add a UserControl named "MyRangeSlider" in my project. In the XAML: <UserControl x:Class="UWP.MyRangeSlider" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http:/

Windows Phone 8 ApplicationSettings - Get settings in Universal app

本小妞迷上赌 提交于 2019-12-21 05:36:07
问题 I'm upgrading windows phone 8 application. I created Universal app (Windows.Phone 8.1). The settings in old WP8.0 application are saved in following way: IsolatedStorageSettings.ApplicationSettings.Add("MY_SETTINGS", value); Question: How can i get this settings when app is upgraded to WP8.1 (Universal app). I try the following: var localSettings = Windows.Storage.ApplicationData.Current.LocalSettings; var isContains1 = localSettings.Values.ContainsKey("MY_SETTINGS"); var roamingSettings =

Type.GetProperties() doesn't work in Release

三世轮回 提交于 2019-12-21 05:34:26
问题 I am trying to get the properties of the FontWeights class in C# using reflection. var properties = typeof(FontWeights).GetProperties(); var dialog = new MessageDialog("Number of weights: " + properties.Length); await dialog.ShowAsync(); When built with Debug configuration, the above works as expected. However, when using Release no properties are found. Why is it so? Is there a way around it? It's an UWP app. 回答1: It's an UWP app. In the Release build your app is compiled with .NET Native.

How to enable the Windows 10 “Containers” feature?

十年热恋 提交于 2019-12-21 04:51:35
问题 Using the latest Windows 10 Fast Ring build 14316 (inside a VMware virtual machine), I'm trying to make the Desktop App Converter function working. When running the PowerShell script as advised: PS C:\> .\DesktopAppConverter.ps1 -Setup -BaseImage .\BaseImage-14316.wim I'm getting an error: Assert-RequiredFeatureEnabled: fatal error 1000: required feature is not installed or enabled. Please refer to machine setup instructions. In C:\MyPath\DesktopAppConverter\converter_util

Dark/Light theme assets qualifiers

拜拜、爱过 提交于 2019-12-21 04:34:08
问题 I have a very simple requirement to use Light/Dark themed images. I expected that a qualifier like SomeImage.Theme-Light.png or putting the image under a folder named Theme-Light Theme-Light/SomeImage.png would work, and it did, but only in the designer mode. As soon as I run the app, even though the required theme is properly set (on both app and page level so all the other ThemeResources get loaded correctly), wrong image gets loaded. I know about workarounds to load different images for

UWP DataTemplates for multiple item types in ListView

廉价感情. 提交于 2019-12-21 04:33:32
问题 How would I go about implementing this? Let's say this is my model: public interface IAnimal { string Name { get; } } public class Fish : IAnimal { public string Name { get; set; } public int ScalesCount { get; set; } } public class Dog : IAnimal { public string Name { get; set; } public string CollarManufacturerName { get; set; } } public class ViewModel { public ObservableCollection<IAnimal> Animals { get; set; } public ViewModel() { this.Animals = new ObservableCollection<IAnimal>(); this

Can I make a universal app using HTML that runs on Hololens?

℡╲_俬逩灬. 提交于 2019-12-21 04:27:24
问题 I believe these statement are true: 1) All Universal Apps Work As Holograms 2) Universal Apps can be built using HTML/JS Does this mean I can build a holographic universal app using web technologies? For example a holographic visualizations dashboard in D3.js? 回答1: It's still too early to say definitively, but here is some info I could find. UPDATE: There is now a library called HoloJS which allows devs to write apps in html. First your assumptions 1 and 2 are correct. There are ways to build

Adding BasedOn Style on App.xaml is crashing on App() { InitializeComponent(); }

荒凉一梦 提交于 2019-12-21 02:08:46
问题 Adapting an project to Template10, I go into inherited styles in App.xaml are crashing. It looks like Template10 , doesn´t support inherited or extended styles. I was trying to extend SubTitleStyle from TitleStyle but I get an COM exceptions on GetXamlType in XamlTypeInfo.g.cs My App.xaml.cs sealed partial class App : BootStrapper { public App() { InitializeComponent(); } public override async Task OnStartAsync(StartKind startKind, IActivatedEventArgs args) { NavigationService.Navigate(typeof

UWP ListView Item context menu

∥☆過路亽.° 提交于 2019-12-21 02:05:46
问题 I'm searching internet for how to add context menu for ListView . So far I've found one that actually displays context <ListView> ... RightTapped="ContactsListView_RightTapped" > ... <ListView.Resources> <MenuFlyout x:Name="allContactsMenuFlyout"> <MenuFlyout.Items> <MenuFlyoutItem x:Name="Edit" Text="Edit"/> <MenuFlyoutItem x:Name="Remove" Text="Remove" Click="Remove_Click"/> </MenuFlyout.Items> </MenuFlyout> </ListView.Resources> ... </ListView> private void ContactsListView_RightTapped

Create Round Button with Border IN UWP Windows 10 C#

我的梦境 提交于 2019-12-20 18:29:53
问题 I am trying to create a round button, with a White Border and a Transparent Background (as the old AppBarButtons in Windows 8.1) in UWP Windows 10. I have found several samples like these: https://comentsys.wordpress.com/2015/05/23/windows-10-universal-windows-platform-custom-button/ https://social.msdn.microsoft.com/Forums/sqlserver/en-US/cda7a526-5e99-4d4a-a73c-0be4ce77f961/uwpwindows10-how-to-make-button-with-round-edges?forum=wpdevelop&prof=required But the problem is with the Border.