question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to add TabViewControl directly to xaml file?

See original GitHub issue

I’m trying to add the TabViewControl directly to the xaml file like so:

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:local="clr-namespace:CustomRenderer"
             xmlns:tv="clr-namespace:Xam.Plugin.TabView;assembly=Xam.Plugin.TabView"
             x:Class="CustomRenderer.TabViewPage">

but I’m getting this error:

/Users/user/Desktop/CustomRenderer/TabViewPage.xaml: Error: The given key 'Xamarin.Forms.Xaml.ElementNode' was not present in the dictionary. (CustomRenderer)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
pacomaralcommented, Jun 26, 2018

Hello @rraallvv or @rjantz3 ,

Could you please explain how did you implement that?

I can’t get to use the control directly in the XAML file even using the code of the example rjant shared. I’m adding the nuget package but the XAML doesnt recognise the control.

1reaction
rraallvvcommented, Jun 11, 2018

@rjantz3 wow! thanks, it works beautifully.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TabView Class - Windows App SDK
Open the WinUI 3 Gallery app and see the TabView in action. The WinUI 3 Gallery app includes interactive examples of most WinUI...
Read more >
Getting Started with Xamarin Tabbed View (SfTabView)
This section explains how to create a tab view and configure it. The control can be configured entirely in C# code or by...
Read more >
Lesson 1: Create Tab Items Manually | Mobile UI Controls
This lesson explains how to create a bottom tab navigation bar with the TabView view: The lesson result. The control displays manually added ......
Read more >
Tab Control In WPF
In WPF, Tabs are very easy to implement. Create a new WPF Window, remove the default Grid tags, and add the following XAML:...
Read more >
WinUI3 TabView XAML does not update the data binding ...
Now the default tab is initialized, I thought great! But whenever add or remove is clicked nothing happened. I started the Debugger, the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found