public class CustomAppointment : Appointment
{
public string Domain { get; set; }
public string Status { get; set; }
}
<DataTemplate x:Key="CustomAppoinementToolTipTemplate">
<Grid MaxWidth="300">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<TextBlock Text="{Binding Subject}" Grid.Row="0" TextWrapping="Wrap" Margin="5 8 4 3" FontWeight="Bold" />
<StackPanel Orientation="Horizontal" Margin="5 8 4 3" Grid.Row="1">
<TextBlock Text="Domain: " FontSize="10" />
<TextBlock Text="{Binding Domain}" FontSize="10" />
<TextBlock Text="Status: " FontSize="10" />
<TextBlock Text="{Binding Status}" FontSize="10" FontWeight="Bold"/>
</StackPanel>
</Grid>
</DataTemplate>
The "Subject" can display in the tooltip .
"Domain" and "Status" can't display in the tooltip finally.
Why?
{
public string Domain { get; set; }
public string Status { get; set; }
}
<DataTemplate x:Key="CustomAppoinementToolTipTemplate">
<Grid MaxWidth="300">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<TextBlock Text="{Binding Subject}" Grid.Row="0" TextWrapping="Wrap" Margin="5 8 4 3" FontWeight="Bold" />
<StackPanel Orientation="Horizontal" Margin="5 8 4 3" Grid.Row="1">
<TextBlock Text="Domain: " FontSize="10" />
<TextBlock Text="{Binding Domain}" FontSize="10" />
<TextBlock Text="Status: " FontSize="10" />
<TextBlock Text="{Binding Status}" FontSize="10" FontWeight="Bold"/>
</StackPanel>
</Grid>
</DataTemplate>
The "Subject" can display in the tooltip .
"Domain" and "Status" can't display in the tooltip finally.
Why?