Comments (3)
Hi,
Adding x:Name="This"
to the page makes everything work as expected:
In the samples, there are bindings which use Source={x:Reference This}
in order to escape the local binding context and reference the binding context of the page. These bindings look for a VisualElement
with x:Name="This"
but this is not defined anywhere in "CalendarPage.xaml", so these bindings fail silently.
You can identify these errors by looking at the Output window in debug mode. Here's an example of one from your repo:
[0:] Microsoft.Maui.Controls.Xaml.Diagnostics.BindingDiagnostics: Warning: 'BindingContext' property not found on 'Microsoft.Maui.Controls.Xaml.ReferenceExtension', target property: 'XCalendar.Maui.Views.DayView.CurrentMonthCommand'
There is also a reference to a namespace that does not exist in your solution and may throw errors when attempting to use it: xmlns:ViewModels="clr-namespace:XCalendarMauiSample.ViewModels
.
Unrelated, but every time I see XCalendar.Maui used in an actual app I'm reminded of the disappointment I felt when I first observed its terrible speed after porting the plugin to .NET MAUI.
Thanks for using XCalendar.
from xcalendar.
You are the G.O.A.T. Thanks for your insanely quick response and thanks for noticing my silly error. Do you maybe have a patreon or something of that kind?
from xcalendar.
No, I don't. I looked into GitHub sponsors but couldn't figure that out, maybe Patreon would be easier.
Always happy to help.
from xcalendar.
Related Issues (20)
- Example App has dates jumbled up HOT 7
- Invalid dates lost after navigating months HOT 5
- Passing DateTime of a day in viewmodel to make more control for background changing HOT 5
- IOS calendar aesthetic issue & performance issue HOT 11
- Android Crash on EventCalendar open in Release Mode HOT 2
- Let events or selections visually span across multiple days HOT 5
- XCalendar.Maui 4.4.2 works when debugging, crashes at startup when installed on android phone HOT 11
- Type "xc:CalendarView" was not found HOT 2
- FEATURE REQUEST: Badge Support HOT 2
- Month Translations? HOT 2
- RightArrowCommand, LeftArrowCommand properties changes are not available in latest nuget 4.5.1 MAUI HOT 3
- Set localize manual HOT 2
- Maui iOS Release Build throws XamlParseException HOT 5
- Maybe we need add net8.0 framework to maui library. HOT 3
- Calendar ignores value of NavigationLowerBound HOT 9
- Avalonia version/port ? HOT 1
- Show weeknumbers left from calendar HOT 11
- Page does not load if CalendarView's IsVisible property is set. HOT 2
- DaySelectedBackgroundColor - Circle not Rendering HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xcalendar.