-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from MarkusPalcer/HandleMultiSelection
Handle multi selection
- Loading branch information
Showing
7 changed files
with
76 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System.Windows; | ||
|
||
namespace AndroidLogViewer.Command | ||
{ | ||
public class BindingRedirector : DependencyObject | ||
{ | ||
public static readonly DependencyProperty LeftProperty = DependencyProperty.Register( | ||
"Left", typeof(object), typeof(BindingRedirector), new PropertyMetadata(default(object), LeftChanged)); | ||
|
||
private static void LeftChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) | ||
{ | ||
((BindingRedirector) d).Right = e.NewValue; | ||
} | ||
|
||
public object Left | ||
{ | ||
get { return (object) GetValue(LeftProperty); } | ||
set { SetValue(LeftProperty, value); } | ||
} | ||
|
||
public static readonly DependencyProperty RightProperty = DependencyProperty.Register( | ||
"Right", typeof(object), typeof(BindingRedirector), new PropertyMetadata(default(object) , RightChanged)); | ||
|
||
private static void RightChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) | ||
{ | ||
((BindingRedirector) d).Left = e.NewValue; | ||
} | ||
|
||
public object Right | ||
{ | ||
get { return (object) GetValue(RightProperty); } | ||
set { SetValue(RightProperty, value); } | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters