Skip to content

Commit c931783

Browse files
committed
Added tooltip customization sample.
1 parent fffeea6 commit c931783

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# show-tooltip-for-appointment-schedule-wpf
22

3-
This repository contains sample code that demonstrates how to enable the tooltip in WinUI Scheduler control. An interactive tooltip provides additional details about the appointments when the user hovers the mouse over them.
3+
This repository contains sample code that demonstrates how to enable the tooltip in WPF Scheduler control. An interactive tooltip provides additional details about the appointments when the user hovers the mouse over them.

WPFSchedulerDemo/WPFSchedulerDemo/MainWindow.xaml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
</Grid.DataContext>
1414

1515
<scheduler:SfScheduler x:Name="scheduler"
16-
ItemsSource="{Binding Appointments}"
17-
EnableToolTip="True">
16+
ItemsSource="{Binding Appointments}"
17+
EnableToolTip="True">
1818
<scheduler:SfScheduler.ToolTipTemplate>
1919
<DataTemplate>
2020
<Border Background="Black"
@@ -26,37 +26,37 @@
2626
<ColumnDefinition Width="*" />
2727
</Grid.ColumnDefinitions>
2828
<Rectangle Fill="{Binding AppointmentBackground}"
29-
Grid.Column="0"
30-
VerticalAlignment="Stretch"
31-
HorizontalAlignment="Left"
32-
Width="10"
33-
Margin="0,0,5,0" />
29+
Grid.Column="0"
30+
VerticalAlignment="Stretch"
31+
HorizontalAlignment="Left"
32+
Width="10"
33+
Margin="0,0,5,0" />
3434
<StackPanel Grid.Column="1"
35-
Orientation="Vertical">
35+
Orientation="Vertical">
3636
<TextBlock Text="{Binding Subject}"
37-
TextWrapping="Wrap"
38-
FontWeight="Bold"
39-
FontSize="12"
40-
Foreground="White"
41-
TextTrimming="CharacterEllipsis"
42-
Margin="0,0,0,5" />
37+
TextWrapping="Wrap"
38+
FontWeight="Bold"
39+
FontSize="12"
40+
Foreground="White"
41+
TextTrimming="CharacterEllipsis"
42+
Margin="0,0,0,5" />
4343
<StackPanel Orientation="Horizontal">
4444
<TextBlock Text="Start Time: " Margin="0,0,2,0"
45-
FontWeight="Bold"
46-
FontSize="12"
47-
Foreground="White" />
45+
FontWeight="Bold"
46+
FontSize="12"
47+
Foreground="White" />
4848
<TextBlock Text="{Binding StartTime}"
49-
FontSize="12"
50-
Foreground="White" />
49+
FontSize="12"
50+
Foreground="White" />
5151
</StackPanel>
5252
<StackPanel Orientation="Horizontal">
5353
<TextBlock Text="End Time: " Margin="0,0,2,0"
54-
FontWeight="Bold"
55-
FontSize="12"
56-
Foreground="White" />
54+
FontWeight="Bold"
55+
FontSize="12"
56+
Foreground="White" />
5757
<TextBlock Text="{Binding EndTime}"
58-
FontSize="12"
59-
Foreground="White" />
58+
FontSize="12"
59+
Foreground="White" />
6060
</StackPanel>
6161
</StackPanel>
6262
</Grid>

0 commit comments

Comments
 (0)