uwp-xaml

ItemsControl with VirtualizingStackPanel disables horizontal animations in ScrollViewer

為{幸葍}努か 提交于 2021-01-29 03:36:29
问题 I'm building a custom XAML control for a UWP app that relies heavily on a ScrollViewer with snap points. I would really like the content that is bound to the control to be virtualized, so I'm using an ItemsControl. However, when I use a VirtualizingStackPanel in the ItemsControl, and then call ChangeView() on the ScrollViewer to a specific HorizontalOffset, the animation effect when scrolling to the new offset is disabled (it just jumps directly to the offset). If I simply replace the

How to get the event when clicking the microsoft ad in uwp

删除回忆录丶 提交于 2021-01-29 03:01:26
问题 I'm using Microsoft Advertising SDK for xaml. And my app can show the ad now. But I want to know the event when user click the ad. None of the following event worked. <ads:AdControl x:Name="adAd" Grid.Row="3" ApplicationId="" AdUnitId="" Width="300" Height="250" AdRefreshed="OnAdRefreshed" ErrorOccurred="OnErrorOccurred" Tapped="OnAdTapped" OnPointerDown="OnAdPointerDown" PointerPressed="OnAdPointerPressed"/> 回答1: None of the following event worked. Actually, you could not use the above event

Effect on all buttons in Xamarin Forms

别说谁变了你拦得住时间么 提交于 2021-01-28 09:11:47
问题 I'm trying to have a effect on all my buttons, but I can't seem to get the configuration right. this is what I have now: <ResourceDictionary> <ControlTemplate x:Key="ButtonTemplate" > <Grid RowSpacing="0" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"> <ContentPresenter Grid.Row="0" Grid.Column="0" > <ContentPresenter.Effects> <effects:ShadowEffect Radius="5" DistanceX="5" DistanceY="5"> <effects:ShadowEffect.Color> <OnPlatform x:TypeArguments="Color"> <On Platform="iOS"

uwp adaptive gridview renders 1st element wrong

a 夏天 提交于 2021-01-28 08:04:12
问题 I am using AdaptiveGridView from UWP Community toolkit . The Very first Item displays horribly wrong and all other Items are displayed just fine. See in the picture below the 1st item has bigger Folder Image than others. XAML <Style TargetType="controls:AdaptiveGridView" x:Key="MainAdaptiveStyle"> <Setter Property="SelectionMode" Value="None"/> <Setter Property="StretchContentForSingleRow" Value="False"/> <Setter Property="DesiredWidth" Value="220"/> <Setter Property="IsItemClickEnabled"

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

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