我正在使用DataPiker控件中的Viewbox样式来增加日历的大小
<DatePicker Name="DatePickerWaybillDate"
CalendarStyle="{StaticResource styleCalendar}"
Grid.Column="1"
FontSize="25"
VerticalContentAlignment="Center"
HorizontalContentAlignment="Center"
SelectedDateFormat="Short"
SelectedDate="{Binding dWaybillDateInput, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" FirstDayOfWeek="Monday" Cursor="None" Padding="2" RenderTransformOrigin="0,0" ScrollViewer.CanContentScroll="True"
>
<DatePicker.Resources>
<Style TargetType="{x:Type DatePickerTextBox}">
<Setter Property="IsEnabled" Value="False"/>
</Style>
</DatePicker.Resources>
</DatePicker>
<Style x:Key="styleCalendar" TargetType="{x:Type Calendar}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Calendar}">
<!-- Wrapping in ViewBox will enlarge calendar of that size.-->
<Viewbox Height="400"
Width="400">
<CalendarItem x:Name="PART_CalendarItem"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"/>
</Viewbox>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
但是当我运行应用程序时,将鼠标移至数据选择器时,鼠标指针将变为不可见。问题是当我在PC上运行应用程序时看起来不错,但是当我将应用程序迁移到服务器时出现了问题