Closed rjantz3 closed 6 years ago
And it has functionality, does it run the code behind of the page in the tab?
I get this error: Gravidade Código Descrição Projeto Arquivo Linha Estado de Supressão No property, bindable property, or event found for 'Content', or mismatching type between value and property
<views:TabViewControl HeaderSelectionUnderlineColor="{StaticResource Custom Orange}" HeaderBackgroundColor="Transparent" BindingContext="{Binding BindingContext, Source={x:Reference DetailPage}}">
Well the Binding Context and the code is running fine, thanks I'm using your code for the time being until @chaosifier accepts the merge request, while you're at it to fix the delay when sliding you need to set the position in the positionchanging Event args like this:
private void _carouselView_PropertyChanged(object sender, PropertyChangedEventArgs e) { if (e.PropertyName == nameof(_carouselView.Position) && !_supressCarouselViewPositionChangedEvent) { var positionChangingArgs = new PositionChangingEventArgs() { Canceled = false, NewPosition = _carouselView.Position, OldPosition = _position };
OnPositionChanging(ref positionChangingArgs);
if (positionChangingArgs != null && positionChangingArgs.Canceled) {
_supressCarouselViewPositionChangedEvent = true;
_carouselView.PositionSelected -= _carouselView_PositionSelected;
_carouselView.PropertyChanged -= _carouselView_PropertyChanged;
_carouselView.Position = _position;
_carouselView.PositionSelected += _carouselView_PositionSelected;
_carouselView.PropertyChanged += _carouselView_PropertyChanged;
_supressCarouselViewPositionChangedEvent = false;
}
-> SetPosition(positionChangingArgs.NewPosition);
}
}
And also this is personal preference but i set the underline box to fill the grid column i think it looks better that way.
Thank you @rjantz3 for your contribution! I really appreciate it.. And sorry for late response.
Can you provide a full example?
@rjantz3 , do you have a working example? I'm getting this error when trying to add TabViewControl in xaml.
Is a working version of this going to be published to nuget anytime soon?
Hey guys, any news about the nuget update? @chaosifier ?
For those of us who want to use this control in xaml. The tab items can be defined in xaml in the following code example.
I also think this fixes the binding context mentioned in issue #5.