uwp

how to change the background color of flyout in uwp?

耗尽温柔 提交于 2021-01-07 03:23:14
问题 I want to set menu flyout background either in c# or xaml. I want like this <FlyoutBase.AttachedFlyout> <MenuFlyout x:Name="Flyout"> <MenuFlyout.Items > <MenuFlyoutItem Text="Add Expense" Click="AddExpense_Click"/> <MenuFlyoutItem Text="Add Friends" Click="AddFriends_Click"/> </MenuFlyout.Items> </MenuFlyout> </FlyoutBase.AttachedFlyout> ... And this is my xaml code for menu fly-out 回答1: For your requirement, you could custom MenuFlyoutPresenterStyle like the following <MenuFlyout x:Name=

What are numbered list, Increase Indent, and Decrease Indent icons in Segoe MDL2 Assets?

六眼飞鱼酱① 提交于 2021-01-07 01:34:44
问题 For our UWP app, where can we find the Numbered Listt, Increase Indent, and Decrease Indent icons in Segoe MDL2 Assets? This link has one icon for bulleted list but not for numbered list, Increase Indent, and Decrease Indent. Please note: we need it from Segoe MDL2 Assets . Otherwise, there are plenty of such icons available online. 来源: https://stackoverflow.com/questions/65598914/what-are-numbered-list-increase-indent-and-decrease-indent-icons-in-segoe-mdl2

What are numbered list, Increase Indent, and Decrease Indent icons in Segoe MDL2 Assets?

匆匆过客 提交于 2021-01-07 01:33:12
问题 For our UWP app, where can we find the Numbered Listt, Increase Indent, and Decrease Indent icons in Segoe MDL2 Assets? This link has one icon for bulleted list but not for numbered list, Increase Indent, and Decrease Indent. Please note: we need it from Segoe MDL2 Assets . Otherwise, there are plenty of such icons available online. 来源: https://stackoverflow.com/questions/65598914/what-are-numbered-list-increase-indent-and-decrease-indent-icons-in-segoe-mdl2

What is the closest thing to a modal dialog that can be used with a UWP app?

℡╲_俬逩灬. 提交于 2021-01-07 01:23:12
问题 In my UWP app, I need to get information from the user to store in a database. In standard Windows this is easy, of course, by creating a modal dialog form and instantiating it when needed. But in UWP, although there are Dialogs, they seem limited to minimal and constrained functionality. What I want is something at least similar to a modal dialog form, where the user would enter information I could then use to insert into the database, but the closest thing I can see available in UWP is a

What is the closest thing to a modal dialog that can be used with a UWP app?

余生颓废 提交于 2021-01-07 01:22:18
问题 In my UWP app, I need to get information from the user to store in a database. In standard Windows this is easy, of course, by creating a modal dialog form and instantiating it when needed. But in UWP, although there are Dialogs, they seem limited to minimal and constrained functionality. What I want is something at least similar to a modal dialog form, where the user would enter information I could then use to insert into the database, but the closest thing I can see available in UWP is a

Why does the async/await code to show my ContentDialog fail at runtime?

风格不统一 提交于 2021-01-07 01:20:49
问题 I want to instantiate a ContentDialog in my UWP app, which is defined in my XAML as follows: <Page . . . <Grid x:Name="grd"> . . . <ContentDialog x:Name="cntDlgLoadMap" Title="This is an example" PrimaryButtonText="Ok" CloseButtonText="Cancel" DefaultButton="Primary"> </ContentDialog> </Grid> </Page> Trying to get a minimal example running, I was going to try this: private void btnLoadMap_Click(object sender, RoutedEventArgs e) { cntDlgLoadMap.ShowAsync(); } ...but got this design-time err

Why does the async/await code to show my ContentDialog fail at runtime?

主宰稳场 提交于 2021-01-07 01:20:28
问题 I want to instantiate a ContentDialog in my UWP app, which is defined in my XAML as follows: <Page . . . <Grid x:Name="grd"> . . . <ContentDialog x:Name="cntDlgLoadMap" Title="This is an example" PrimaryButtonText="Ok" CloseButtonText="Cancel" DefaultButton="Primary"> </ContentDialog> </Grid> </Page> Trying to get a minimal example running, I was going to try this: private void btnLoadMap_Click(object sender, RoutedEventArgs e) { cntDlgLoadMap.ShowAsync(); } ...but got this design-time err

Why does the async/await code to show my ContentDialog fail at runtime?

拥有回忆 提交于 2021-01-07 01:18:53
问题 I want to instantiate a ContentDialog in my UWP app, which is defined in my XAML as follows: <Page . . . <Grid x:Name="grd"> . . . <ContentDialog x:Name="cntDlgLoadMap" Title="This is an example" PrimaryButtonText="Ok" CloseButtonText="Cancel" DefaultButton="Primary"> </ContentDialog> </Grid> </Page> Trying to get a minimal example running, I was going to try this: private void btnLoadMap_Click(object sender, RoutedEventArgs e) { cntDlgLoadMap.ShowAsync(); } ...but got this design-time err

Why does the async/await code to show my ContentDialog fail at runtime?

一笑奈何 提交于 2021-01-07 01:18:37
问题 I want to instantiate a ContentDialog in my UWP app, which is defined in my XAML as follows: <Page . . . <Grid x:Name="grd"> . . . <ContentDialog x:Name="cntDlgLoadMap" Title="This is an example" PrimaryButtonText="Ok" CloseButtonText="Cancel" DefaultButton="Primary"> </ContentDialog> </Grid> </Page> Trying to get a minimal example running, I was going to try this: private void btnLoadMap_Click(object sender, RoutedEventArgs e) { cntDlgLoadMap.ShowAsync(); } ...but got this design-time err

UWP WebView2 not working with WebView2 Runtime installed

家住魔仙堡 提交于 2021-01-05 12:45:27
问题 I've created a WinUI 3.0 UWP application and installed the WebView2 runtime as per documentation. When I inspect the regkey and its pv property, per documentation, it is set. However, when launching my app, regardless of in debug or release, I see the A suitable version of Microsoft Edge was not detected The XML itself is extremely simple: <Grid> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="*" /> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition