SPARK-1087 typing in filter boxes
This commit is contained in:
1 parent
1ef5c670bf
commit
e11835d654
3 files changed
+8
-4
No files matched your search
@@ -3,7 +3,8 @@
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:u="clr-namespace:mbts.ui"
|
||||
xmlns:c="clr-namespace:mbts.ui.controls"
|
||||
xmlns:usp="clr-namespace:mbts.ui.spark">
|
||||
xmlns:usp="clr-namespace:mbts.ui.spark"
|
||||
FocusManager.IsFocusScope="True">
|
||||
<UserControl.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
|
||||
@@ -67,9 +67,11 @@ namespace mbts.ui.controls {
|
||||
new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnIsOpenChanged));
|
||||
static void OnIsOpenChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) {
|
||||
var target = (PopupControl)d;
|
||||
if ((bool)e.NewValue)
|
||||
if ((bool)e.NewValue) {
|
||||
target.RaiseEvent(new RoutedEventArgs(OpenedEvent, target));
|
||||
else
|
||||
(FocusManager.GetFocusScope(target) as UIElement)?.Focus();
|
||||
target._popup?.Child?.Focus();
|
||||
} else
|
||||
target.RaiseEvent(new RoutedEventArgs(ClosedEvent, target));
|
||||
}
|
||||
public bool IsOpen { get => (bool)GetValue(IsOpenProperty); set => SetValue(IsOpenProperty, value); }
|
||||
|
||||
@@ -9,7 +9,8 @@
|
||||
xmlns:uspcv="clr-namespace:mbts.ui.spark.converters"
|
||||
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="600" d:DesignWidth="1080">
|
||||
d:DesignHeight="600" d:DesignWidth="1080"
|
||||
FocusManager.IsFocusScope="True">
|
||||
<UserControl.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
|
||||
Reference in new issue
Block a user