Skip to content

Select week range for separate month. #166

Answered by ME-MarvinE
nutwich asked this question in Q&A
Discussion options

You must be logged in to vote

Solution 1: Upgrade to > 4.5.x

From 4.5.0, each state has its own style that is applied. This way, you are not limited to just the text colour, background colour, and commands. The XCalendar.Forms.Styles.DefaultStyles or XCalendar.Maui.Styles.DefaultStyles class can be used to maintain default functionality when changing these styles. You can then also apply triggers for a specific state's style. In this case, it would be for OtherMonthStyle and you would apply solution #2 to it.

For example:

<xc:DayView
    DateTime="{Binding DateTime}"
    IsCurrentMonth="{Binding IsCurrentMonth}"
    IsInvalid="{Binding IsInvalid}"
    IsSelected="{Binding IsSelected}"
    IsToday="{Binding IsToday}">
…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@nutwich
Comment options

@ME-MarvinE
Comment options

Answer selected by nutwich
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants