Skip to content

DateTimePicker does not hides for Date Change #2720

@yeasin90

Description

@yeasin90

What steps will reproduce this issue?

In DateTimePicker, If just change Only Date and click in any blank space of the screen - DateTimePicker panel does not hides. But if I change first Date then Time and click in blank space, DateTimePicker panel gets hide.

<UserControl x:Class="MainModule.Views.Utility.DateTimePickerControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
             mc:Ignorable="d">
    <Controls:DateTimePicker 
                             Background="Transparent"
                             HandVisibility="{Binding SelectedItem, ElementName=DateTimePickerHandVisibility, Mode=TwoWay}"
                             IsClockVisible="{Binding IsChecked, ElementName=DateTimePickerIsClockVisible, Mode=TwoWay}"
                             IsEnabled="{Binding IsChecked, ElementName=DateTimePickerIsEnabled, Mode=TwoWay}"
                             IsReadOnly="False"
                             Orientation="{Binding SelectedItem, ElementName=DateTimePickerOrientation, Mode=TwoWay}"
                             PickerVisibility="{Binding SelectedItem, ElementName=DateTimePickerPickerVisibility, Mode=TwoWay}" 
                             Controls:TextBoxHelper.UseFloatingWatermark="False" />
</UserControl>

This issue also exist in the samples

Expected outcome

DateTimePicker panel should hide when clicking on blank space of the screen, either for Date or Time change.

Environment

  • MahApps.Metro v1.4.0
  • Windows 10
  • Visual Studio 2015
  • .NET Framework 4.0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions