uwp

uwp StorageFile adding a custom property

三世轮回 提交于 2020-01-05 11:06:32
问题 In my uwp app I am getting Video files with KnownFolders.VideoLibrary . I am able to PreFetch videoProperties of the file and also some other properties. Now I actually want to tag the video files with some string data, and save that data so I can check that later on. For example I want to add them to Liked Videos so can I add a custom property on the storagefile which will remain saved every time I run the app. This will let me check whether a specific storagefile is liked or not. Currently

UWP MVVM: refresh page after change of language

懵懂的女人 提交于 2020-01-05 07:57:45
问题 I have some code in my view model which changes the application language, which then changes the text on some of the controls. This is the DashboardViewModel , which the Dashboard Page's data context is set to: ApplicationLanguages.PrimaryLanguageOverride = languageCode; ResourceContext.GetForCurrentView().Reset(); ResourceContext.GetForViewIndependentUse().Reset(); NavigationService.Navigate(typeof(DashboardPage)); With NavigationService.Navigate(typeof(DashboardPage)); I tried to force the

UWP MVVM: refresh page after change of language

主宰稳场 提交于 2020-01-05 07:57:24
问题 I have some code in my view model which changes the application language, which then changes the text on some of the controls. This is the DashboardViewModel , which the Dashboard Page's data context is set to: ApplicationLanguages.PrimaryLanguageOverride = languageCode; ResourceContext.GetForCurrentView().Reset(); ResourceContext.GetForViewIndependentUse().Reset(); NavigationService.Navigate(typeof(DashboardPage)); With NavigationService.Navigate(typeof(DashboardPage)); I tried to force the

UWP appx upload to windows store gives market error

泄露秘密 提交于 2020-01-05 07:56:25
问题 I am uploading a new appxupload package to the Windows Store and it gives me the error: "You must upload at least one package for each of your market groups." The package was created using the Desktop Bridge for an older Win32 app. What does that mean? What is a market group? How do I fix this? 回答1: I think this happens while the package is validating. If you wait about 30 minutes and come back the package will have finished uploading and will no longer give this error message. Otherwise you

Edge Extension Native Messaging: Dealing with UWP message size limit

蓝咒 提交于 2020-01-05 07:53:18
问题 I am developing an extension for Edge where I need to send more than 1MB of data to the extension from UWP. I have chunked the data to be less than 1MB and tried to send reply multiple times something like below private async void OnAppServiceRequestReceived(AppServiceConnection sender, AppServiceRequestReceivedEventArgs args) { AppServiceDeferral messageDeferral = args.GetDeferral(); // This is to be replaced with enumerator for (int i = 0; i < number_of_chunks; i++) { // construct reply

ScrollViewer not scrolling when Height set to Auto or VerticalAlignment set to Stretch

不问归期 提交于 2020-01-05 07:40:26
问题 I'm trying to allow vertical scrolling on a list of settings, using an ItemsControl inside of a ScrollViewer. The scrolling works when I set the Height of the ScrollViewer to a constant like 400, but stops working when I set the height to auto or set the VerticalAlignment to stretch. Here's my code <ScrollViewer VerticalAlignment="Stretch" > <ItemsControl ItemsSource="{x:Bind _settingsViewModel.Settings}" ItemTemplate="{StaticResource SettingTemplate}"/> </ScrollViewer> How can I set the

UWP App not accessed by every user

拟墨画扇 提交于 2020-01-05 07:36:52
问题 I created Uwp app in visual studio and created app packages for test purposes. I have two users in my domain now I installed my app on my windows tablet using one user. I use powershell add-appxpackage command It gets installed and is working well but when I login from a different user on my tablet it is not able to find the UWP app. I wanted multiple users to read and write file in a shared location for all my users so my app creates it in a shared location and my other user is able to see

How to access a file in .NET Standard 2.0 DLL?

南笙酒味 提交于 2020-01-05 07:31:53
问题 Thank you for visiting. Here is the issue I am facing and would appreciate some help. I am trying to access a file in a .NET standard DLL. Everything works if I use the Windows.Storage namespace, in a test UWP app, like so: Windows.Storage.StorageFile f = await StorageApplicationPermissions.FutureAccessList.GetFileAsync("TestPickedFileToken1"); txt.Text = await Windows.Storage.FileIO.ReadTextAsync(f); The real app is a MVVM UWP app (targeting Fall Creators Update) that accesses a .NETStandard

UWP getting HTTP 301 in windows mobile

强颜欢笑 提交于 2020-01-05 07:18:05
问题 I have this URL: var url = "http://10.0.0.68/SET STB MEDIA CTRL {\"type\":\"tv\",\"action\":\"start query status\"}"; var newUri = new Uri(url); Absolute path of this URI is (From newUri): http://10.0.0.68/SET%20STB%20MEDIA%20CTRL%20%7B%22type%22:%22tv%22,%22action%22:%22start%20query%20status%22%7D I installed fiddler and when I enter to the browser this url: "http://10.0.0.68/SET STB MEDIA CTRL {"type":"tv","action":"start query status"}" I can see, that it is converted to this url: "http:/

Two-way-binding: editing passed value from XAML control in the model setter does not update control

左心房为你撑大大i 提交于 2020-01-05 07:11:17
问题 This is for a Windows 10 Universal App. XAML: <RelativePanel Padding="4" Margin="4,12,0,0"> <TextBlock x:Name="Label" Text="Class Name" Margin="12,0,0,4"/> <ListView x:Name="ClassTextBoxes" ItemsSource="{Binding TextBoxList}" SelectionMode="None" RelativePanel.Below="Label"> <ListView.ItemTemplate> <DataTemplate > <RelativePanel> <TextBox x:Name="tbox" PlaceholderText="{Binding PlaceHolder}" Text="{Binding BoxText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Padding="4" Width="200"