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