Xam.TabView Header is not scrollable in Xamarin forms - xamarin.forms

I am using Xam.Tabview plugin in my project.
Everything works fine except the header is not scrollable.
Below is my code:
<control:XFTabControl
x:Name="Tabcomponent"
VerticalOptions="FillAndExpand"
TabClicked="Tab_TabClicked"
HeaderHeight="40" FlowDirection="LeftToRight"
SelectedIndex="{Binding Index}">
<control:XFTabControl.XFTabPages>
**//Page1**
<tabview:XFTabPage>
<tabview:XFTabPage.Header>
<tabview:XFTabHeader>
<Label Text="Tab1"/>
</tabview:XFTabHeader>
</tabview:XFTabPage.Header>
<tabview:XFTabPage.Content>
<template:Page1></template:Page1>
</tabview:XFTabPage.Content>
</tabview:XFTabPage>
</control:XFTabControl.XFTabPages>
**//Page2**
<tabview:XFTabPage>
<tabview:XFTabPage.Header>
<tabview:XFTabHeader>
<Label Text="Tab1"/>
</tabview:XFTabHeader>
</tabview:XFTabPage.Header>
<tabview:XFTabPage.Content>
<template:Page2></template:Page2>
</tabview:XFTabPage.Content>
</tabview:XFTabPage>
</control:XFTabControl.XFTabPages>
</control:XFTabControl>
Any help is appreciated!

I am not sure if that package is still maintained or has documentation but the last update is 10 months ago, as an alternative you can try TabView from XamarinCommunityToolkit which is officially maintained by Xamarin.Forms team and the community.
Getting Started with the Xamarin Community Toolkit
TabView Docs https://learn.microsoft.com/en-us/xamarin/community-toolkit/views/tabview
Another option would be Sharpnado.Tabs package, Repo

Related

How to change the cancel icon in Xamarin Forms Shell SearchHandler

I have a Xamarin Forms Shell app where I have implemented the Shell SearchHandler. The cancel button shows a book image.
This only occurs on iOS - on Android, there is no cancel button.
My xaml looks like this:
<Shell.SearchHandler>
<controls:RouteSearchHandler
x:Name="RouteSearch"
BackgroundColor="White"
ClearPlaceholderCommand="{Binding ClearSearch}"
ClearPlaceholderIcon="{StaticResource Cancel}"
DisplayMemberName="Street1"
SearchBoxVisibility="{Binding TopSearchVisibility, Converter={StaticResource visibleConvert}}"
ShowsResults="True" />
</Shell.SearchHandler>
How do I change the cancel icon from a book to another fonticon or image?
It seems a potential issue , the team set a default(book) icon on Clear button.
Workaround
You can prepare a small/transparent image and place it in Resources folder in iOS project , and set ClearPlaceholderIcon with it, then the problem should be solved .
And Feel free to file the feature request on github :https://github.com/xamarin/Xamarin.Forms/issues.

Xamarin Forms: UWP app clicking is not working as expected

I have a weird issue with my UWP version of the xamarin forms project. The clicking is not working as expected. Sometimes no response when clicking items (button, image), and sometimes top items are opening when clicking an item.
Please watch this video for getting a clear idea. In this video, I am clicking the next button(Quiz page) several times, but no response. On the game page, the top item pages are opening when clicking an item. In android and ios, everything is working fine.
Version Details:
Xamarin Forms: 4.7.0.968
UWP target version: Windows 10, version 1903(10.0;Build 18362)
UWP Min version: Windows 10, Fall Creators Update(10.0; Build 16299)
Please help me to find the issue behind this. Thanks in advance.
Update
Button Code
<Button
Text="NEXT"
TextColor="White"
HorizontalOptions="EndAndExpand"
BackgroundColor="#f5c74c"
Clicked="NextButtonClicked"
WidthRequest="150"
HeightRequest="40"
FontSize="18"
BorderRadius="20"/>
public void NextButtonClicked(object sender, EventArgs args)
{
//action
}
I have solved this issue by updating the xamarin forms version to 4.8.0.1269.

The type 'page' does not support direct content

I create new Uno Cross-Platform App 2.2 from template.
When I open Shared->MainPage.xaml in doesn't open designer in code view there is a underlined error The type 'page' does not support direct content
<Page
x:Class="App6.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:App6"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<TextBlock Text="Hello, world!" Margin="20" FontSize="30" />
</Grid>
</Page>
This is an Intellisense issue which happens when the project selector (the DropDown at the top of the XAML editor) is not on the UWP project, but rather on iOS, Android or another platform.
If you select the UWP project, close the editor, and re-open it again, the errors will disappear.
As of Visual Studio 2019 16.5 the issue is still present, but is likely to be addressed in a future version.
At the beginning I can use designer to edit MainPage.xaml in Shared folder, after one moment (there was an error that crashed my VS) not any more...
So solution is to move MainPage.xml to UWP project, edit there, and than move it back.
That's work for now.
Maybe it would work with linked file.
I used Blend for Visual Studio to open and edit the file. The next time I opened the project with VS the problem was fixed.

CollectionView IsGrouped property Xamarin.Forms >4.0

According to the docs, the property IsGrouped is available on the new(ish) XF CollectionView class (only on iOS for now as the docs state)
I'm however getting a compiler error with this code:
<CollectionView ItemsSource="{Binding Data}" IsGrouped="true">
<!--<..../>-->
</CollectionView>
No property, bindable property, or event found for 'IsGrouped', or mismatching type between value and property.
Both Android and iOS, seems the IsGrouped property may not be in the API yet, I guess.
Tried on Xamarin Forms 4.1.0.581479/673156
You should update your Xamarin.Forms version to v4.2
From the latest release notes regarding v4.2.0.709249 (4.2.0)
"CollectionView Grouping iOS" (#6590)
The grouping functionality is in development right now. I think the implementation for iOS is merged and the Android one is about to be merged.
Funny that the property is already mentioned in the Docs already. Sorry about that. The grouping for iOS seems to be also merged into 4.2 that was released yesterday. For Android it should be there soon so don't expect it to work there for now.

Xamarin NetStandard SfListview Item tapped event not firing?

This is just as the title suggests. I've updated my Xamarin Forms project to a 1.6 NetStandard project and now the tapped event on my SfListView isn't working (It just doesn't fire at all).
Does anyone has any suggestions of what could be wrong or have faced anything like this?
EDIT
this is xaml code for SfListView:
<StackLayout HeightRequest="15" Grid.Row="0" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand">
<xForms:SfListView Orientation="Horizontal" ItemSize="128" ItemsSource="{Binding Categories}" SelectionBackgroundColor="Transparent" IsScrollBarVisible="False">
<xForms:SfListView.ItemTemplate>
<DataTemplate>
<cells:CategoryCell />
</DataTemplate>
</xForms:SfListView.ItemTemplate>
<xForms:SfListView.Behaviors>
<behaviors:SfSelectedItemBehavior Command="{Binding FilterCommand}" />
</xForms:SfListView.Behaviors>
</xForms:SfListView>
</StackLayout>
this structure was working before the update. I use a behavior for item selection.
We have checked with the reported query “SfListView ItemTapped event does not trigger after updating the NetStandard Library” from our side. Unfortunately the reported issue does not occur at our end and the ItemTapped event is fired as expected.
For your reference, we have attached the working sample link below.
Sample link: http://www.syncfusion.com/downloads/support/directtrac/190562/ze/SfListViewSample-670965361
Can you please check in your device whether the issue reproduces in our sample also?
If so, Can you please share the below details?
Whether the reported issue occurs in particular device or all devices? (Can you please share the details of your tested device)
Whether the issue is produced in particular platform?
Whether the issue is produced in particular version of Xamarin.Forms and SfListView? (In our sample, we used XForms (v2.3.4.280) and SfListView(v15.3.0.33))
Also can you please share the share the template in which the SfListView items are loaded?

Resources