I am using WKWebView to show a pdf file from a remote url. It was working fine in iOS 12 but in iOS 13 it just shows blank screen.
I hit same domain with an image url and that worked fine but it has some issues with pdf files only.
let myURL = URL(string:"somefileurl.pdf") // If I hit this url in safari, It will download a pdf file.
let myRequest = URLRequest(url: myURL!)
webViewPdf.load(myRequest)
Run Code Online (Sandbox Code Playgroud) 我在我的应用程序中使用长列表选择器,我已经在其中创建了组和组头.现在,我在组头中添加一个按钮,并希望按钮打开新页面.但是,当我点击按钮时,它会导航到新页面并打开"跳转列表".单击按钮时我不想要跳转列表.我找到了这个链接,但是,这里没有明确的答案.
有没有办法在"组头"上禁用"点击"事件并在需要时调用?
我的代码是:
XAML:
<DataTemplate x:Key="groupHeaderTemplate">
<Border HorizontalAlignment="Stretch" Height="70" Background="{Binding Converter={StaticResource BackgroundConverter}}" Margin="6">
<Grid HorizontalAlignment="Stretch" Background="Transparent">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<TextBlock Text="{Binding Title}"
FontSize="40" Padding="6"
VerticalAlignment="Center"
Foreground="{Binding Converter={StaticResource ForegroundConverter}}" />
<Button Content="addNew" Name="addNew_btn" Grid.Column="1" Click="addNew_btn_Click_1" Tag="{Binding transType}" />
</Grid>
</Border>
</DataTemplate>
Run Code Online (Sandbox Code Playgroud)
CS:
private void addNew_btn_Click_1(object sender, RoutedEventArgs e)
{
NavigationService.Navigate(new Uri("/Expense.xaml", UriKind.Relative));
}
Run Code Online (Sandbox Code Playgroud) xaml windows-phone-7 windows-phone longlistselector windows-phone-8