Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NavigationViewTemplate Property Not Found #71

Open
DavidChaiOne opened this issue Nov 17, 2022 · 8 comments
Open

NavigationViewTemplate Property Not Found #71

DavidChaiOne opened this issue Nov 17, 2022 · 8 comments
Labels
awaiting-author Awaiting a respose from the author bug Something isn't working

Comments

@DavidChaiOne
Copy link

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

@DavidChaiOne DavidChaiOne added the bug Something isn't working label Nov 17, 2022
@ME-MarvinE
Copy link
Owner

ME-MarvinE commented Nov 17, 2022

Are you able to run the sample app? Every example makes use of the NavigationViewTemplate property so see if you can get to at least one of those pages. What happens if you try to reference NavigationViewTemplate using a CalendarView in C#?

@ME-MarvinE
Copy link
Owner

Could not replicate the issue using this repo

@DavidChaiOne
Copy link
Author

Could not replicate the issue using this repo

Repo not accessible.
Error occurs on 4.2.0 consistently.

@ME-MarvinE
Copy link
Owner

ME-MarvinE commented Nov 17, 2022

Repo is public now. Are you able to run it without issues?

@DavidChaiOne
Copy link
Author

Ran your repo, works as expected

@DavidChaiOne
Copy link
Author

DavidChaiOne commented 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>

@ME-MarvinE
Copy link
Owner

ME-MarvinE commented Nov 18, 2022

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

@ME-MarvinE ME-MarvinE added the awaiting-author Awaiting a respose from the author label Jan 6, 2023
@ME-MarvinE
Copy link
Owner

@DavidChaiOne are you still experiencing this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-author Awaiting a respose from the author bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants