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.

NavigationViewTemplate Property Not Found

See original GitHub issue

Describe the bug UI Fails to load when attempting to create a control Template via the NavigationViewTemplate Property in Xaml.

Expected behavior Able to create a control Template via the NavigationViewTemplate Property in Xaml. Steps to reproduce OR link to code

                <xc:CalendarView
                    x:Name="MyCally"
                    Days="{Binding Calendar.Days}"
                    DaysOfWeek="{Binding Calendar.DayNamesOrder}"
                    NavigatedDate="{Binding Calendar.NavigatedDate}">
                    <xc:CalendarView.NavigationViewTemplate>
                        <ControlTemplate>
                            <Label Text=" asdfasdfasdf" />
                        </ControlTemplate>
                    </xc:CalendarView.NavigationViewTemplate>
                </xc:CalendarView>

Xamarin Forms or .NET MAUI (If related to UI) Xamarin.Forms Additional context (Optional) Occurs in XCalendar.Forms 4.2.0 works fine in XCalendar.Forms 4.0.0 and 4.1.0 Device Info (Optional) Device Model: Android Version: IOS Version: Windows Version: Screenshot 2022-11-17 at 9 16 09 AM

Issue Analytics

  • State:open
  • Created 10 months ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
DavidChaiOnecommented, Nov 18, 2022

This breaks the code

<xcViews:CalendarView x:Name=“cally” Grid.Row=“1” Days=“{Binding Calendar.Days}” DaysOfWeek=“{Binding Calendar.DayNamesOrder}” NavigatedDate=“{Binding Calendar.NavigatedDate}”> xcViews:CalendarView.NavigationViewTemplate <ControlTemplate> <xcViews:NavigationView HeightRequest=“0” /> </ControlTemplate> </xcViews:CalendarView.NavigationViewTemplate> xcViews:CalendarView.GestureRecognizers <SwipeGestureRecognizer Command="{Binding SwipeCommand}" CommandParameter="Left" Direction="Left" /> <SwipeGestureRecognizer Command="{Binding SwipeCommand}" CommandParameter="Right" Direction="Right" /> </xcViews:CalendarView.GestureRecognizers> xcViews:CalendarView.DayTemplate <DataTemplate> <xcViews:DayView TextColor=“#0A50E0” /> </DataTemplate> </xcViews:CalendarView.DayTemplate> </xcViews:CalendarView>

0reactions
ME-MarvinEcommented, Nov 18, 2022

In what way does it break the code? What warnings/errors do you get? Or is there unexpected behaviour?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot bind Icon property in NavigationView ...
Sadly, it seems the default behaviour is that the contents of MenuItemTemplate are placed inside the NavigationViewItem 's ContentPresenter .
Read more >
NavigationViewTemplateSettings is missing OpenPaneWidth
Copy NavigationView template into an app project, get warning about property on NavigationViewTemplateSettings not existing ...
Read more >
NavigationView Class (Windows.UI.Xaml.Controls)
Represents a container that enables navigation of app content. It has a header, a view for the main content, and a menu pane...
Read more >
NavigationView - Windows apps
NavigationView is an adaptive navigation control that works well for: Providing a consistent navigational experience throughout your app.
Read more >
Navigating in a WinUI 3 Desktop application
In this article we describe a minimal framework for a navigation service in a WinUI 3 Desktop application on top of a NavigationView...
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