win-universal-app

VisualStateManager on Flyout not highlighting entire area

半世苍凉 提交于 2019-12-08 14:23:26
问题 I have a VisualStateManager that controls the background color when the pointer is over the item. The problem is, it doesn't highlight the entire area, just a small portion around the text and icon. Here's my code: Not fully highlighted <FlyoutBase.AttachedFlyout> <MenuFlyout> <MenuFlyoutItem Text="Delete" Click="DeleteMenuItemClick"> <MenuFlyoutItem.Template> <ControlTemplate TargetType="MenuFlyoutItem"> <Grid> <StackPanel Orientation="Horizontal" Padding="0"> <SymbolIcon Symbol="Delete"

Win RT Xaml GridView: Drag select multiple items

ⅰ亾dé卋堺 提交于 2019-12-08 13:45:30
I'm trying to select multiple items in a GridView by hovering over them with pressed mouse (like drawing). I tried to achieve this with the PointerEntered event but I'm unable to change the selction from code. Is there a way to implement a custom selection mode? This didn't work for me because I can't use Style.Triggers in Win RT XAML: https://stackoverflow.com/a/2886223/5739170 You will have to inherit the gridview control and override the PrepareContainerForItemOverride method: The code: public class MyGridView : GridView { protected override void PrepareContainerForItemOverride

Windows 10 Universal app screen size on launch not working

自闭症网瘾萝莉.ら 提交于 2019-12-08 12:17:53
问题 I had read a ton about setting the app window size on launch. Basically, my app is launching full screen everytime. I want to restrict it to a pre-defined size when it launches. However, nothing seems to be working. Here is what I have done so far: I have put the following: var desiredSize = new Size(400, 600); ApplicationView.GetForCurrentView().ExitFullScreenMode(); ApplicationView.GetForCurrentView().SetPreferredMinSize(desiredSize); ApplicationView.PreferredLaunchViewSize = desiredSize;

Win universal app using Prism NavigationService with Frame control

落爺英雄遲暮 提交于 2019-12-08 11:37:19
问题 How to us the Prism NavigationService combined with the Frame control? I have a main page which includes a Frame. First, I have to navigate to the main page, after that I want to change the NavigationSerices so that it uses the Frame instead of the whole page. So I need something like regions from Prism 5.0 in the Windows-Store-App-Prism framework. A similar problem was already solved: Register Navigation Service to Frame Element and NOT the page - WinRt Prism 2.0 but I don't like this

UWP custom toast notification sound doesn't play on mobile

醉酒当歌 提交于 2019-12-08 11:35:09
问题 So I have an xml as notification body witch includes audio element with source (src) attribute pointing to preset windows sound and it doesn't play the sound I want and instead plays the default system sound. My notification xml looks like this (I use this as a test message to send trough Azure notification hubs debug option) <?xml version="1.0" encoding="utf-8"?> <toast> <visual> <binding template="ToastText01"> <text id="1">Test message</text> </binding> </visual> <audio src="ms

Xamarin Form - How to upload,Delete,Download Files From Google Drive in UWP

南笙酒味 提交于 2019-12-08 08:50:58
问题 Hello friend I want to upload an images,files on Google Drive. So I have installed the Google.Apis.Auth and Google.Apis.Drive.v3 nuget packages. I have also created the Client_secrete.json file by referring video https://www.youtube.com/watch?v=xtqpWG5KDXYNow . Question, how to use this Client_secrete.json file and upload, download, delete the files from the Google Drive in uwp ? :( Any idea then please share code or link. Thanks in advance :)... public static DriveService GetService() {

HttpClient in Windows Phone 8.1 Universal app

北城以北 提交于 2019-12-08 08:16:49
问题 So i'm testing universal applications and have reached this: I have an application on Windows Tablet that gets data from server. Server is protected with certificate ( SSL ) I have this code, runs great on simple Windows Store Application, and Universal application project for tablet, but not Phone async public static Task<string> GetDataFromServer() { try { HttpClientHandler aHandler = new HttpClientHandler(); aHandler.ClientCertificateOptions = ClientCertificateOption.Automatic; HttpClient

Win RT Xaml GridView: Drag select multiple items

陌路散爱 提交于 2019-12-08 08:16:42
问题 I'm trying to select multiple items in a GridView by hovering over them with pressed mouse (like drawing). I tried to achieve this with the PointerEntered event but I'm unable to change the selction from code. Is there a way to implement a custom selection mode? This didn't work for me because I can't use Style.Triggers in Win RT XAML: https://stackoverflow.com/a/2886223/5739170 回答1: You will have to inherit the gridview control and override the PrepareContainerForItemOverride method: The

Implement UI virtualization in custom ItemsPanel

99封情书 提交于 2019-12-08 08:10:28
问题 My goal is to display some layout like the official Android Imgur app where items have fixed width but variable height. I already have a custom panel with a GridView . It works. However, it breaks a couple of things: I don't get UI virtualization. This is a big performance bottleneck when lots of images need to be rendered. Since virtualization is gone, incremental loading isn't supported either. I've searched around a lot, but I couldn't find any documentation on how to implement

CameraPreviewImageSource empty preview frame

风格不统一 提交于 2019-12-08 07:50:47
问题 I made cut and paste of the code below about how to use CameraPreviewImageSource and access to preview buffer frames, but do not work and it seems the frame buffer size is 0x0 reading the value of IImageSize parameter of OnPreviewFrameAvailable event. How to get preview buffer of MediaCapture - Universal app protected override void OnNavigatedTo(NavigationEventArgs e) { InitializeAsync(); } public async void InitializeAsync() { _cameraPreviewImageSource = new CameraPreviewImageSource(); await