win-universal-app

Service-Based Database File Missing

感情迁移 提交于 2021-02-05 07:49:26
问题 So I've been having problems with this tutorial for SQL on the MDSN website. The first picture says what it should like to add a new file to the project but when I try to repeat the instruction on VS the service based database file is missing. Does anybody know what I should do? 回答1: Please try to this way: Go to Control Panel -> Uninstall a Program, select Visual Studio 201x, right click, Change -> Modify, and check whether you have installed "Microsoft SQL Server Data Tools", if you didn't

UWP TabView scroll button

懵懂的女人 提交于 2021-01-29 12:02:53
问题 I find out that the tabs of TabView can be scrolled when there is an overflow. And I can scroll them using the buttons I circled out in the image I posted above. However, I can't find out how to modify them. I just want to set their BorderThickness to 0. Can someone point them out in the source style of my TabView ? 回答1: The RepeatButton in your PlaylistTabView.xaml represents the style of the Button which you circled out, so you can set the BorderThickness to 0 in it. Note that there are two

Cannot access Zip File located in Assets folder in Windows Runtime Apps

主宰稳场 提交于 2021-01-29 03:57:30
问题 I'm trying to get the zip file that is located inside the Assets folder of Solution Explorer with the following code. It works well for other types of file like: .txt, .jpg, .png. But it gives error when trying to get the zip file. The system cannot find the file specified. var zipFile = await Package.Current.InstalledLocation.GetFileAsync("Assets\\Test.zip"); 回答1: Zip files aren't included in the appx package by default (.txt, .jpg, and .png are). Select your file in the solution explorer,

Cannot access Zip File located in Assets folder in Windows Runtime Apps

橙三吉。 提交于 2021-01-29 03:41:56
问题 I'm trying to get the zip file that is located inside the Assets folder of Solution Explorer with the following code. It works well for other types of file like: .txt, .jpg, .png. But it gives error when trying to get the zip file. The system cannot find the file specified. var zipFile = await Package.Current.InstalledLocation.GetFileAsync("Assets\\Test.zip"); 回答1: Zip files aren't included in the appx package by default (.txt, .jpg, and .png are). Select your file in the solution explorer,

No suitable transform was found to encode or decode the content error

≯℡__Kan透↙ 提交于 2021-01-28 23:30:50
问题 I am working with audio recording in windows 10 universal app, i found code here when i run that code it showing "No suitable transform was found to encode or decode the content" error, in phone any one please help me to resolve this issue. 回答1: when i run that code it showing "No suitable transform was found to encode or decode the content" error If you refer to MediaEncodingProfile.CreateMp3, you will see the following paragraph. Note While it is technically possible to call CreateMp3, you

Accessing a control which is in a contentpresenter in c#

a 夏天 提交于 2021-01-28 05:00:17
问题 How to access a named control that is in the content template of the contentpresenter. how to access the webview control(x:name=detView) from cs file. <ContentPresenter x:Name="DetailContentPresenter" Grid.Row="0" BorderBrush="{ThemeResource SystemControlForegroundBaseLowBrush}" Content="{x:Bind coll.SelectedItem,Mode=OneWay}"> <ContentPresenter.ContentTemplate> <DataTemplate x:DataType="data:coll_Details" x:Name="ttt"> <Grid> <WebView DefaultBackgroundColor="#F5F5F5" x:Name="detView" Source=

What is the alternative for BackgroundWorker in Windows 8.1 Universal Apps?

亡梦爱人 提交于 2021-01-27 17:13:38
问题 I am migrating my Windows Phone App to Windows Universal Apps. In Phone App, I used BackgroundWorker for database retrieval and then show in UI. Below is the class which I prepared in Windows Phone 8 and how it was called. public class TestBackgroundWorker { private BackgroundWorker backgroundWorker; ProgressIndicator progressIndicator; public delegate void functionToRunInBackground(); public functionToRunInBackground currentFunctionToExecute; public delegate void callbackFunction(); public

UWP Using GetBindingExpression with x:Bind

你。 提交于 2021-01-23 06:17:03
问题 I am rewrite my UWP Application from Binding to x:Bind. I have a TextChanged Event on different Textboxes. With Binding I could use GetBindingExpression to update the Model. Is there an equivalent Methode for x:Bind? Or how could I make it with x:Bind? public void TextBox_TextChanged(object sender, TextChangedEventArgs e) { var binding = ((TextBox)sender).GetBindingExpression(TextBox.TextProperty); binding.UpdateSource(); } 回答1: I've tried to do this before without success. I think is not

UWP Using GetBindingExpression with x:Bind

妖精的绣舞 提交于 2021-01-23 06:14:52
问题 I am rewrite my UWP Application from Binding to x:Bind. I have a TextChanged Event on different Textboxes. With Binding I could use GetBindingExpression to update the Model. Is there an equivalent Methode for x:Bind? Or how could I make it with x:Bind? public void TextBox_TextChanged(object sender, TextChangedEventArgs e) { var binding = ((TextBox)sender).GetBindingExpression(TextBox.TextProperty); binding.UpdateSource(); } 回答1: I've tried to do this before without success. I think is not

Display message when ListView contains no items with MVVM in a UWP

[亡魂溺海] 提交于 2021-01-21 08:33:37
问题 This is my first MVVM project and the code I need to write to manipulate controls in the view somehow seems way too complicated than it has to be. I'm finding it hard to fully understand MVVM and to decide when I can put stuff in code behind. Basically my problem is that I want to show a message telling the user that the listview is empty when the ObservableCollection it is bound to contains no items. The idea was to have a TextBlock in the view and only have its visibility property set to