Page Index Toggle Pages: [1] 2  Send TopicPrint
Very Hot Topic (More than 25 Replies) ItemClick does't works! (Read 2038 times)
Mandy
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 47
Joined: Jun 3rd, 2020
ItemClick does't works!
Sep 4th, 2023 at 4:02am
Print Post  
Hi ,

I'm running Sample Browser - Scheduling.WPF (3.5.1.451).

The Framework is .Net Framework 4.7.2

1)Sample-Localization : ItemClick event not firing.

2)Sample-DualView : The prev/next month is incorrect.
« Last Edit: Sep 4th, 2023 at 7:20am by Mandy »  

DualView.png ( 102 KB | 26 Downloads )
DualView.png
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Offline


tech.support

Posts: 3154
Joined: Oct 19th, 2005
Re: ItemClick does't works!
Reply #1 - Sep 4th, 2023 at 3:06pm
Print Post  
Hi Mandy,

Quote:
1)Sample-Localization : ItemClick event not firing.


ItemClick is raised when you click an appointment. E.g. select some cells and type on the keyboard to create appointment; clicking it afterwards should raise the event as expected. If you need to detect clicks on empty date cells, handle the DateClick event instead.
  
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Offline


tech.support

Posts: 3154
Joined: Oct 19th, 2005
Re: ItemClick does't works!
Reply #2 - Sep 4th, 2023 at 3:17pm
Print Post  
Quote:
2)Sample-DualView : The prev/next month is incorrect.


The calendar has a separate ScrollInterval property controlling that, you could set it to 1 or 2 depending on how much you want to offset the current range.

Code
Select All
<planner:MonthRangeSettings ScrollInterval="2" ... 



(the default ScrollInterval is 4 to match default NumberOfMonths, but they are not bound to each other and can be set independently).

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Mandy
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 47
Joined: Jun 3rd, 2020
Re: ItemClick does't works!
Reply #3 - Sep 5th, 2023 at 12:06pm
Print Post  
Hi Slavcho,

My project is use the MaterialDesignThemes.

The appointment subject will overlapping text during edit mode.

Is there any way to solve it ?


Thanks for your help!
  

1_005.png ( 51 KB | 22 Downloads )
1_005.png
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Offline


tech.support

Posts: 3154
Joined: Oct 19th, 2005
Re: ItemClick does't works!
Reply #4 - Sep 5th, 2023 at 1:29pm
Print Post  
Hi Mandy,

It seems your theme sets global transparent background for textboxes, and the appointment behind the inplace-edit textbox remains visible too. You can replace that background with solid color specifically for textboxes inside the calendar:

Code
Select All
<planner:Calendar ...>
	<planner:Calendar.Resources>
		<Style TargetType="{x:Type TextBox}">
			<Setter Property="Background" Value="White" />
		</Style>
	</planner:Calendar.Resources>
</planner:Calendar>
 



Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Mandy
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 47
Joined: Jun 3rd, 2020
Re: ItemClick does't works!
Reply #5 - Sep 6th, 2023 at 9:02am
Print Post  
Hi Slavcho,

Is there any way to solve below problems ?

1)How to change the text color of the button at the top of the window?
2)How to set location?
3)How to make the description warp text ?
4)What is the purpose of this field?
5)The arrow icons are not shown.
6)How to set the time zone?

Is is there have any XAML sample of AppointmentForm and RecurrenceForm (Like 4.png)?
« Last Edit: Sep 6th, 2023 at 10:22am by Mandy »  

3_001.png ( 99 KB | 19 Downloads )
3_001.png
4_001.png ( 155 KB | 22 Downloads )
4_001.png
Back to top
 
IP Logged
 
Mandy
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 47
Joined: Jun 3rd, 2020
Re: ItemClick does't works!
Reply #6 - Sep 7th, 2023 at 6:45am
Print Post  
Hi Slavcho,

How to detect these events ?
1)The subject changed.
2)The Appointment Form save or delete clicked.

  

a_001.png ( 16 KB | 24 Downloads )
a_001.png
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Offline


tech.support

Posts: 3154
Joined: Oct 19th, 2005
Re: ItemClick does't works!
Reply #7 - Sep 7th, 2023 at 9:21am
Print Post  
Quote:
1)How to change the text color of the button at the top of the window?


Try this code -

Code
Select All
var form = new AppointmentForm(...);
var panel = (Panel)form.Content;
var toolbar = (ToolBar)panel.FindName("toolBar1");
toolbar.Foreground = Brushes.Orange;
foreach (Button button in toolbar.Items)
	button.Foreground = Brushes.Orange; 

  
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Offline


tech.support

Posts: 3154
Joined: Oct 19th, 2005
Re: ItemClick does't works!
Reply #8 - Sep 7th, 2023 at 9:25am
Print Post  
Quote:
2)How to set location?


That dropdown lists Schedule.Locations objects.
  
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Offline


tech.support

Posts: 3154
Joined: Oct 19th, 2005
Re: ItemClick does't works!
Reply #9 - Sep 7th, 2023 at 9:27am
Print Post  
Quote:
3)How to make the description warp text ?


It does wrap text by default, do you mean you want it to scroll instead?
  
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Offline


tech.support

Posts: 3154
Joined: Oct 19th, 2005
Re: ItemClick does't works!
Reply #10 - Sep 7th, 2023 at 9:32am
Print Post  
Quote:
4)What is the purpose of this field?


It lists schedule.Contacts, lets you select ones associated with the appointment.
  
Back to top
 
IP Logged
 
Mandy
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 47
Joined: Jun 3rd, 2020
Re: ItemClick does't works!
Reply #11 - Sep 7th, 2023 at 9:40am
Print Post  
Quote:
3)How to make the description warp text ?


It does wrap text by default, do you mean you want it to scroll instead?

=>I cannot input wrap text. Can't type Enter or Shift+Enter.
  
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Offline


tech.support

Posts: 3154
Joined: Oct 19th, 2005
Re: ItemClick does't works!
Reply #12 - Sep 7th, 2023 at 9:42am
Print Post  
Quote:
5)The arrow icons are not shown.


Arrow icons are paths set as content of buttons inside DateTimePicker control:

Code
Select All
<Button Name="buttonUp"  VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch" Margin="0,0,0,-1" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Column="11" BorderThickness="0">
	<Path Fill="Black" Data="M 5 1 L 9 8 L 1 8 z" Stretch="Uniform" />
</Button>
<Button Name="buttonDown"  HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Margin="0,-1,0,0" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="11" BorderThickness="0">
	<Path Fill="Black" Data="M 5 8 L 1 1 L 9 1 z" Stretch="Uniform" />
</Button> 



Not sure why they would hide, please attach a test project demonstrating that.
  
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Offline


tech.support

Posts: 3154
Joined: Oct 19th, 2005
Re: ItemClick does't works!
Reply #13 - Sep 7th, 2023 at 9:49am
Print Post  
Quote:
6)How to set the time zone?


The standard form does not support selecting time zones at this time. Anyway if you need that many customizations, you might be better off just creating a new form altogether, to set the ten or so properties of appointments.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Offline


tech.support

Posts: 3154
Joined: Oct 19th, 2005
Re: ItemClick does't works!
Reply #14 - Sep 7th, 2023 at 9:52am
Print Post  
Quote:
1)The subject changed.


Try handling ItemInplaceEdited event.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint