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;
|
const int limit = 10000;
|
||||||
var binded = false;
|
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))
|
using (var parser = new CsvParser(sr))
|
||||||
{
|
{
|
||||||
|
@@ -78,7 +78,7 @@ namespace QuickLook.Plugin.TextViewer
|
|||||||
|
|
||||||
private void LoadFile(string path)
|
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;
|
const int bufferLength = 1 * 1024 * 1024;
|
||||||
var buffer = new byte[bufferLength];
|
var buffer = new byte[bufferLength];
|
||||||
|
@@ -71,9 +71,9 @@
|
|||||||
<DockPanel.Effect>
|
<DockPanel.Effect>
|
||||||
<DropShadowEffect ShadowDepth="0" BlurRadius="2" Opacity="0.7" Color="#B2FFFFFF" />
|
<DropShadowEffect ShadowDepth="0" BlurRadius="2" Opacity="0.7" Color="#B2FFFFFF" />
|
||||||
</DockPanel.Effect>
|
</DockPanel.Effect>
|
||||||
<Button DockPanel.Dock="Right" x:Name="buttonCloseWindow"
|
<Button DockPanel.Dock="Right" x:Name="buttonCloseWindow" ToolTip="Close"
|
||||||
Style="{StaticResource CaptionCloseButtonStyle}" Content="" />
|
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}}">
|
Visibility="{Binding ContextObject.CanResize, ElementName=mainWindow, Converter={StaticResource BooleanToVisibilityConverter}}">
|
||||||
<Button.Style>
|
<Button.Style>
|
||||||
<Style TargetType="Button" BasedOn="{StaticResource CaptionButtonStyle}">
|
<Style TargetType="Button" BasedOn="{StaticResource CaptionButtonStyle}">
|
||||||
@@ -95,7 +95,7 @@
|
|||||||
</TextBlock>
|
</TextBlock>
|
||||||
</Button.Content>
|
</Button.Content>
|
||||||
</Button>
|
</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>
|
<Button.Resources>
|
||||||
<Grid x:Key="ContentTop">
|
<Grid x:Key="ContentTop">
|
||||||
<TextBlock></TextBlock>
|
<TextBlock></TextBlock>
|
||||||
@@ -116,7 +116,7 @@
|
|||||||
</Style>
|
</Style>
|
||||||
</Button.Style>
|
</Button.Style>
|
||||||
</Button>
|
</Button>
|
||||||
<Button DockPanel.Dock="Left" x:Name="buttonPin" Tag="Auto">
|
<Button DockPanel.Dock="Left" x:Name="buttonPin" Tag="Auto" ToolTip="Prevent Closing">
|
||||||
<Button.Resources>
|
<Button.Resources>
|
||||||
<Grid x:Key="ContentPin">
|
<Grid x:Key="ContentPin">
|
||||||
<TextBlock></TextBlock>
|
<TextBlock></TextBlock>
|
||||||
@@ -138,7 +138,7 @@
|
|||||||
</Button.Style>
|
</Button.Style>
|
||||||
</Button>
|
</Button>
|
||||||
<Button DockPanel.Dock="Left" x:Name="buttonShare" Style="{StaticResource CaptionButtonStyle}"
|
<Button DockPanel.Dock="Left" x:Name="buttonShare" Style="{StaticResource CaptionButtonStyle}"
|
||||||
Content="" />
|
Content="" ToolTip="Open With..." />
|
||||||
<Grid x:Name="titleArea" Background="Transparent">
|
<Grid x:Name="titleArea" Background="Transparent">
|
||||||
<TextBlock Text="{Binding ContextObject.Title, ElementName=mainWindow}" FontSize="12"
|
<TextBlock Text="{Binding ContextObject.Title, ElementName=mainWindow}" FontSize="12"
|
||||||
HorizontalAlignment="Left" TextTrimming="CharacterEllipsis"
|
HorizontalAlignment="Left" TextTrimming="CharacterEllipsis"
|
||||||
|
Reference in New Issue
Block a user