mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-11 17:59:17 +00:00
tooltip
This commit is contained in:
@@ -44,7 +44,7 @@ namespace QuickLook.Plugin.CsvViewer
|
||||
const int limit = 10000;
|
||||
var binded = false;
|
||||
|
||||
using (var sr = new StreamReader(path))
|
||||
using (var sr = new StreamReader(new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.ReadWrite)))
|
||||
{
|
||||
using (var parser = new CsvParser(sr))
|
||||
{
|
||||
|
@@ -78,7 +78,7 @@ namespace QuickLook.Plugin.TextViewer
|
||||
|
||||
private void LoadFile(string path)
|
||||
{
|
||||
using (var s = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read))
|
||||
using (var s = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
|
||||
{
|
||||
const int bufferLength = 1 * 1024 * 1024;
|
||||
var buffer = new byte[bufferLength];
|
||||
|
@@ -71,9 +71,9 @@
|
||||
<DockPanel.Effect>
|
||||
<DropShadowEffect ShadowDepth="0" BlurRadius="2" Opacity="0.7" Color="#B2FFFFFF" />
|
||||
</DockPanel.Effect>
|
||||
<Button DockPanel.Dock="Right" x:Name="buttonCloseWindow"
|
||||
<Button DockPanel.Dock="Right" x:Name="buttonCloseWindow" ToolTip="Close"
|
||||
Style="{StaticResource CaptionCloseButtonStyle}" Content="" />
|
||||
<Button DockPanel.Dock="Right" x:Name="buttonWindowStatus"
|
||||
<Button DockPanel.Dock="Right" x:Name="buttonWindowStatus" ToolTip="Toggle Maximize and Normal"
|
||||
Visibility="{Binding ContextObject.CanResize, ElementName=mainWindow, Converter={StaticResource BooleanToVisibilityConverter}}">
|
||||
<Button.Style>
|
||||
<Style TargetType="Button" BasedOn="{StaticResource CaptionButtonStyle}">
|
||||
@@ -95,7 +95,7 @@
|
||||
</TextBlock>
|
||||
</Button.Content>
|
||||
</Button>
|
||||
<Button DockPanel.Dock="Left" x:Name="buttonTop" Tag="Auto">
|
||||
<Button DockPanel.Dock="Left" x:Name="buttonTop" Tag="Auto" ToolTip="Stay on Top">
|
||||
<Button.Resources>
|
||||
<Grid x:Key="ContentTop">
|
||||
<TextBlock></TextBlock>
|
||||
@@ -116,7 +116,7 @@
|
||||
</Style>
|
||||
</Button.Style>
|
||||
</Button>
|
||||
<Button DockPanel.Dock="Left" x:Name="buttonPin" Tag="Auto">
|
||||
<Button DockPanel.Dock="Left" x:Name="buttonPin" Tag="Auto" ToolTip="Prevent Closing">
|
||||
<Button.Resources>
|
||||
<Grid x:Key="ContentPin">
|
||||
<TextBlock></TextBlock>
|
||||
@@ -138,7 +138,7 @@
|
||||
</Button.Style>
|
||||
</Button>
|
||||
<Button DockPanel.Dock="Left" x:Name="buttonShare" Style="{StaticResource CaptionButtonStyle}"
|
||||
Content="" />
|
||||
Content="" ToolTip="Open With..." />
|
||||
<Grid x:Name="titleArea" Background="Transparent">
|
||||
<TextBlock Text="{Binding ContextObject.Title, ElementName=mainWindow}" FontSize="12"
|
||||
HorizontalAlignment="Left" TextTrimming="CharacterEllipsis"
|
||||
|
Reference in New Issue
Block a user