uwp

How do I view a XAML control's default templates and styles without the Visual Studio designer?

一曲冷凌霜 提交于 2021-01-28 13:05:34
问题 According to the Control template documentation on MSDN, the officially-supported way to view a Control's default templates and styles is with Visual Studio's Designer (well, technically the Document Outline , but that only works with the Designer turned on): A fast way to apply themes to your controls is to right-click on a control on the Microsoft Visual Studio Document Outline and select Edit Theme or Edit Style (depending on the control you are right-clicking on). You can then apply an

How do I view a XAML control's default templates and styles without the Visual Studio designer?

◇◆丶佛笑我妖孽 提交于 2021-01-28 13:02:06
问题 According to the Control template documentation on MSDN, the officially-supported way to view a Control's default templates and styles is with Visual Studio's Designer (well, technically the Document Outline , but that only works with the Designer turned on): A fast way to apply themes to your controls is to right-click on a control on the Microsoft Visual Studio Document Outline and select Edit Theme or Edit Style (depending on the control you are right-clicking on). You can then apply an

How do I view a XAML control's default templates and styles without the Visual Studio designer?

倾然丶 夕夏残阳落幕 提交于 2021-01-28 13:01:51
问题 According to the Control template documentation on MSDN, the officially-supported way to view a Control's default templates and styles is with Visual Studio's Designer (well, technically the Document Outline , but that only works with the Designer turned on): A fast way to apply themes to your controls is to right-click on a control on the Microsoft Visual Studio Document Outline and select Edit Theme or Edit Style (depending on the control you are right-clicking on). You can then apply an

Radio.RequestAccessAsync only return DeniedByUser

早过忘川 提交于 2021-01-28 12:32:51
问题 Got problems getting access to radio control. I followed the MSDN and also downloaded their example. MSDN states that when executing Radio.RequestAccessAsync(); it should pop a dialog asking the user to allow or deny. Debugged the sample radio app from Microsoft here and put a breakpoint at var accessLevel = await Radio.RequestAccessAsync(); Again no popup with the access question but this time it returned allowed...idk why. Created a new UWP project and all I added was Radio

UWP project not compatible with netcoreapp2.1

若如初见. 提交于 2021-01-28 12:31:57
问题 I created an UWP app and I will use entityFrameworkCore to create my DB with code first. My app console (entityFrameworkCore app) works and creates my DB but when I make a reference to my UWP project it doesn't work and shows this error: The project uwp is not compatible with netcoreapp2.1(.NETCoreApp,version=v2.1) And when i would like add a reference in uwp to db project i have this error enter image description here 回答1: A .NET Core app cannot add a reference to a UWP app and vice versa.

Radio.RequestAccessAsync only return DeniedByUser

流过昼夜 提交于 2021-01-28 12:30:50
问题 Got problems getting access to radio control. I followed the MSDN and also downloaded their example. MSDN states that when executing Radio.RequestAccessAsync(); it should pop a dialog asking the user to allow or deny. Debugged the sample radio app from Microsoft here and put a breakpoint at var accessLevel = await Radio.RequestAccessAsync(); Again no popup with the access question but this time it returned allowed...idk why. Created a new UWP project and all I added was Radio

How do I gain access to the documents folder (UWP)

人走茶凉 提交于 2021-01-28 10:51:46
问题 When closing the UWP I will get a list of items from a database. I want to save this list in a file which will be created/edited in the documents folder. I tried to gain access to the Documents folder by this: StorageFolder stFo = KnownFolders.DocumentsLibrary; My Problem is that I have no access to the Documents Folder ('An exception of type "System.UnauthorizedAccessException" occured...'). Now I have read that you could get access by adding some lines to Package.appxmanifest <Package xmlns

How to update Windows 10 UWP store certificate

大憨熊 提交于 2021-01-28 09:38:14
问题 I have a Windows 10 UWP application deployed to the Windows store. When I now build, I get warning APPX0108: The certificate specified has expired. For more information about renewing certificates, see http://go.microsoft.com/fwlink/?LinkID=241478 It has been a while so that is fine, so I want to renew. Going to the link, and to the section Renewing a certificate , steps 3 and 4 say to choose "Create Test Certificate". But I don't want a test certificate, I want one I can use to build and

How to bind a treeview in UWP to a ViewModel?

≡放荡痞女 提交于 2021-01-28 09:35:43
问题 I am currently working in UWP and I need to create a TreeView to store hierarchically a query of a service. example: Example I have I keep the information in a public ObservableCollection <Model> name_of_object {get; set; } = new ObservableCollection <Model> (); But I create the TreeView in the XAML and I do not see any way to do a Binding to the "SelectedItem" and "ItemSource" or any way to bring a query. Tried this solution: Recursive XAML binding data templates on the Universal Windows

Combox first row not selectable

时间秒杀一切 提交于 2021-01-28 09:00:19
问题 How to make first row of combobox not-selectable? (https://docs.microsoft.com/en-us/uwp/api/Windows.UI.Xaml.Controls.ComboBox?view=winrt-19041) 回答1: Combox first row not selectable You could detect DropDownOpened event and find the fist item with ContainerFromIndex then disable it like the following. Because Combobox dropdown is lazy load, so we need add the task delay in DropDownOpened event. private async void MyCb_DropDownOpened(object sender, object e) { await Task.Delay(100); var item =