uwp

How do you get a BLE Advertisment callback in a desktop .NET app?

泄露秘密 提交于 2019-12-10 11:16:53
问题 I am trying to get a BLE advertisement callback from a .NET Windows desktop application. I am able to call into the APIs, however the Received event is never called from the OS in a WPF or Command line application. I do get events when the code is called from a Unit Test in VS2015, or universal Windows app. However, I need to do other things not available in universal Windows. Here is the code: using Windows.Devices.Bluetooth.Advertisement; public static void ScanForAdvertisments() { mWatcher

Using multiple views with Template10 without always showing the Main Page?

淺唱寂寞╮ 提交于 2019-12-10 11:16:47
问题 I am new to T10 and trying to learn it. This is a follow-up to Template 10 Multiple Windows In 'regular' (meaning non-Template10) UWP app I've learned to do something like this (as a short example) in order to support multiple views: public App() { InitializeComponent(); Suspending += OnSuspending; } readonly List<CoreDispatcher> _dispatchers = new List<CoreDispatcher>(); protected override async void OnLaunched(LaunchActivatedEventArgs e) { Frame rootFrame = Window.Current.Content as Frame;

UWP, how to handle images and scaling?

↘锁芯ラ 提交于 2019-12-10 11:15:50
问题 We have a Xamarin Forms project which shall run on Android, iOS and UWP. On Android you have a number of different images in different folder to support a vast number of different screens (and PPIs) on iOS you have a similar system (@2x, @3x etc.). I can't for the life of me find how to achive something similar for UWP. When I run the project on a Windows tablet with a recommended scaling of 150 % or 200 % all the images are also scaled up, which results in a blurry image. I can't find any

Disable pivot swipe during scrolling on UWP app

瘦欲@ 提交于 2019-12-10 11:15:36
问题 I'm developing Universal Window App on Windows 10 platform and my page looks like this example : Main page contain a pivot control with 4 pivot items (PAGE 1, PAGE 2, ...). PAGE 1 contain a red stackpanel which contain a listview with horizontal scrolling. My problem is, when i want to scroll my red listview horitontaly, my pivot swipe to next page. I want to disable pivot swipe during listview scrolling ( But only during listview scrolling ). I tried to get scrollviewer from listview and to

How do you do Impersonation in UWP?

三世轮回 提交于 2019-12-10 11:13:11
问题 I am working on UWP application. A scenario came where i want to change the current context user(current login user).For that i am trying to implement Impersonation in UWP. In general windows or web application I am able to change the current context user by using sample code available on following link: http://www.codeproject.com/Articles/10090/A-small-C-Class-for-impersonating-a-User But i am unable to implement this in UWP. I want to implement impersonation in UWP. 回答1: Impersonation is

UWP: icon size in app bar/command bar

江枫思渺然 提交于 2019-12-10 11:09:19
问题 What icon sizes should I use for the app bar/command bar? I couldn't find something in Guidelines for tile and icon assets or in UWP App Visual Assets. Other names: navigation bar (iOS), app bar/action bar (Android), toolbar (Xamarin.Forms) 回答1: Image size The default icon size should be 20 pixels for app bar image at 100% scaling, but you should also provide additional image assets to ensure it looks great on all screens: appbaricon.scale-100.png - 20 px appbaricon.scale-125.png - 25 px

Filepicker for Hololens: List available filepickers?

拟墨画扇 提交于 2019-12-10 11:09:06
问题 So HoloLens is stupid in that it only recognizes one FilePicker at a time (no matter how many may be installed). I don't believe the developers are going to try making multiple filepickers work. So, I'm trying to figure out my own filepicker in an attempt to be a proxy-select for other filepickers. In essence, I want to make a filepicker chooser that appears as a typical filepicker (if that makes sense). Trouble is, it doesn't appear possible to get a list of pickers installed! Am I

How to use CalenderView in UWP MVVM

断了今生、忘了曾经 提交于 2019-12-10 10:48:13
问题 I want to bind the selected Calender View Item and set it to a DateTime Variable. My CalenderView Xaml looks like: <CalendarView Grid.Row="6" Grid.ColumnSpan="2" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="20"/> I have an DateTime item in the Datacontext class: private DateTime _DueDate; public DateTime DueDate { get { return this._DueDate; } set { if (this._DueDate != value) { this._DueDate = value; base.PropertyOnChanged("DueDate"); } } } And the DateTimeConverter:

DEP0600: Deployment failed. XmlException - '.', hexadecimal value 0x00, is an invalid character

徘徊边缘 提交于 2019-12-10 10:46:30
问题 MS VS2017. Microsoft Visual Studio 2017. DEP0600: Deployment failed. XmlException - '.', hexadecimal value 0x00, is an invalid character. Edit Begin Solution may be near. Please hold on suggestions for one day. In response to the comment below. I have renamed original VS2017 Projects Folder as an archive. MSVS2017 creates a new one, perhaps with no damages. This is beginning to help the problem. Blank Projects now can be deployed. Moving the original solution folder back in failed. I am

Change size & spacing of UWP RatingControl

ε祈祈猫儿з 提交于 2019-12-10 10:45:52
问题 There's a new RatingControl in UWP that allows you to show ratings as a series of stars. I was wondering how I can change the size of the stars and also the spacing between them. FontSize does not work like it did on the Telerik version for UWP. I hope this is possible without restyling the whole control. For example, Microsoft explicitly states "Spacing customization" as a feature: The rating control has many additional features which can be used. Details for using these features can be