uwp

ListView with horizontal items

只愿长相守 提交于 2021-02-20 06:53:09
问题 I come from WPF and I don't know if it's possible to make a ListView to distribute items horizontally, with all the extras like mouse-wheel scrolling (mouse devices) and swiping (touch devices). I've tried this, but it doesn't behave like the vertical one. Example: I cannot scroll with the mouse-wheel. <ListView ScrollViewer.VerticalScrollBarVisibility="Disabled" ScrollViewer.HorizontalScrollBarVisibility="Auto" ItemsSource="{Binding Collection}" > <ListView.ItemsPanel> <ItemsPanelTemplate>

Project is not compatible with uap10.0.16299 (UAP,Version=v10.0.16299)

强颜欢笑 提交于 2021-02-20 05:27:08
问题 I have created Xamarin project which is in .NET standard. Now I am trying to add .NET core 5.0 Class library reference in Xamarin project and i am getting below error. Any solution will be helpful. Severity Code Description Project File Line Suppression State Error NU1201 Project Db.Models is not compatible with uap10.0.16299 (UAP,Version=v10.0.16299) / win10-x86. Project Db.Models supports: net5.0 (.NETCoreApp,Version=v5.0)ui.UWP 回答1: I have created Xamarin project which is in .NET standard.

How to set the 'PRAGMA foreign_keys = ON' statement with SQLitePCL

↘锁芯ラ 提交于 2021-02-20 04:37:51
问题 I have been using SQLitePCL (currently ver 3.8.7.2), and now decided to experiment with Delete and Update Cascade by turning on the Foreign Key constraint. I understand this feature is disabled by default and according to SQLite documentation, the constraint must be enabled separately for each database connection . The connection string only takes a database path (for SQLitePCL anyway) and doesn't allow more flexible composite connection string of the form data source=d:\foo\bar\mySqlite.db

Is it possible to create a borderless UWP application?

五迷三道 提交于 2021-02-18 19:36:38
问题 In WPF, we can set WindowStyle to None to create a "borderless" window. But, I found that UWP contains pages only. Is there any way to have borderless windows in UWP? 回答1: It's not possible to do the same, however you could make your app go fullscreen or expand its content into title bar so you'll get more place for the content. Another similar thing may be using Picture In Picture mode, but these windows are always above others AFAIK. Read more about fullscreen in UWP for example here, about

AZURE AD B2C The browser page is mis-rendered in Embedded Webviews with MSAL.net web(new versio userflow (Recommended))

▼魔方 西西 提交于 2021-02-17 01:56:07
问题 As the microsoft iffical said, The UWP can't use system web with aad b2c, has to use Embedded Webviews. But when I use MSAL.net, it offen mis-render the page, as the image below(in some times , the page maybe right render). And I can run the user flow and right render with my system chrome web browser . The uwp Embedded Webviews is in old edge core(maybe this is the reason?). what can I do? does Microsoft can solve the matter? 回答1: B2C is supported in UWP. Please upgrade the application to

UWP ScrollBar styles

亡梦爱人 提交于 2021-02-11 16:52:48
问题 I have 2 styles for vertical and horizontal scrollbar, which for a long time I can't combine into one style for my ScrollViewer I have Styles for VerticalScrollBar <Style x:Name="VerticalScrollBar" TargetType="{x:Type ScrollBar}"> <Setter Property="Stylus.IsPressAndHoldEnabled" Value="false"/> <Setter Property="Stylus.IsFlicksEnabled" Value="false"/> <Setter Property="Background" Value="{DynamicResource ScrollBarBackgroundBrush}"/> <Setter Property="BorderThickness" Value="0"/> <Setter

UWP ScrollBar styles

夙愿已清 提交于 2021-02-11 16:52:34
问题 I have 2 styles for vertical and horizontal scrollbar, which for a long time I can't combine into one style for my ScrollViewer I have Styles for VerticalScrollBar <Style x:Name="VerticalScrollBar" TargetType="{x:Type ScrollBar}"> <Setter Property="Stylus.IsPressAndHoldEnabled" Value="false"/> <Setter Property="Stylus.IsFlicksEnabled" Value="false"/> <Setter Property="Background" Value="{DynamicResource ScrollBarBackgroundBrush}"/> <Setter Property="BorderThickness" Value="0"/> <Setter

Why can't I cast from Action to DispatchedHandler?

不羁的心 提交于 2021-02-11 14:59:53
问题 G'day Folks, I feel like I'm can't see something basic. Action is defined as public delegate void Action(). DispatchedHandler is defined as public delegate void DispatchedHandler(). Yet the following code generates at the RunASync line: Error CS1503 Argument 2: cannot convert from 'System.Action' to 'Windows.UI.Core.DispatchedHandler'. public static async Task DispatchToUI(Action action, CoreDispatcherPriority priority = CoreDispatcherPriority.Normal ) { if (CoreApplication.MainView

How to upgrade from OneDrive SDK to Microsoft Graph SDK and keep the old AppFolder

倾然丶 夕夏残阳落幕 提交于 2021-02-11 14:59:27
问题 My UWP app uses app folder ( Files.ReadWrite.AppFolder ) for storing app data on OneDrive. I upgraded the app to use Microsoft Graph SDK instead of the old OneDrive SDK (version 1.x). I didn't get the authentication to work using the old client id registered in https://apps.dev.microsoft.com, so I registered my app in https://aad.portal.azure.com/ and I use MSAL.NET for authentication. The problem is that the upgraded app creates a new app folder on OneDrive ( My App 1 ) instead of using the

How can I use a collection on the data item row of my Windows Community Template datagrid as the Itemsource for a ComboBox column on the same row?

随声附和 提交于 2021-02-11 14:56:33
问题 How can I bind the ItemsSource of a Combobox column to a collection that is a sub-property of a property on the same row? In other words, the DataGrid is bound to a collection of items of a class the contains Property1 and Property2. So the DataGrid has two columns, Property1 and Property2. Property1 has a sub-property that is an Observable Collection. The column for Property2 is a Combobox column that should use Property1's Observable Collection as its ItemsSource. I'm loading the grid's