New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DateTimePicker does not hides for Date Change #2720

Closed
yeasin90 opened this Issue Oct 28, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@yeasin90

yeasin90 commented Oct 28, 2016

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

@punker76 punker76 added the Bug label Oct 28, 2016

@punker76 punker76 added this to the 1.4.0 milestone Oct 28, 2016

@punker76 punker76 self-assigned this Oct 28, 2016

@punker76 punker76 closed this in ab76e78 Oct 28, 2016

@yeasin90

This comment has been minimized.

Show comment
Hide comment
@yeasin90

yeasin90 Oct 29, 2016

Taking an update from Nuget - would fix it i think :)

yeasin90 commented Oct 29, 2016

Taking an update from Nuget - would fix it i think :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment