mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-14 12:19:08 +00:00
Enable window dragging in video viewer panel #425
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</UserControl.Resources>
|
||||
<Grid>
|
||||
<Grid MouseLeftButtonDown="Panel_MouseLeftButtonDown">
|
||||
<mediakit:MediaUriElement x:Name="mediaElement" />
|
||||
<Grid x:Name="coverArtPersenter"
|
||||
Background="{StaticResource MainWindowBackground}"
|
||||
|
@@ -181,6 +181,14 @@ public partial class ViewerPanel : UserControl, IDisposable, INotifyPropertyChan
|
||||
_midiPlayer = null;
|
||||
}
|
||||
|
||||
private void Panel_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
if (e.LeftButton == MouseButtonState.Pressed)
|
||||
{
|
||||
Window.GetWindow(this)?.DragMove();
|
||||
}
|
||||
}
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
||||
private void MediaOpened(object o, RoutedEventArgs args)
|
||||
|
Reference in New Issue
Block a user