improve:浮动栏
This commit is contained in:
@@ -290,7 +290,7 @@ namespace Ink_Canvas
|
|||||||
ViewboxFloatingBar.UpdateLayout();
|
ViewboxFloatingBar.UpdateLayout();
|
||||||
|
|
||||||
// 等待一小段时间让布局完全更新
|
// 等待一小段时间让布局完全更新
|
||||||
await Task.Delay(50);
|
Task.Delay(50);
|
||||||
|
|
||||||
// 再次强制更新布局
|
// 再次强制更新布局
|
||||||
ViewboxFloatingBar.UpdateLayout();
|
ViewboxFloatingBar.UpdateLayout();
|
||||||
|
|||||||
@@ -207,12 +207,12 @@ namespace Ink_Canvas
|
|||||||
if (WindowState == WindowState.Normal)
|
if (WindowState == WindowState.Normal)
|
||||||
{
|
{
|
||||||
WindowState = WindowState.Maximized;
|
WindowState = WindowState.Maximized;
|
||||||
FontIconFullscreen.Glyph = "";
|
FontIconFullscreen.Text = "";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
WindowState = WindowState.Normal;
|
WindowState = WindowState.Normal;
|
||||||
FontIconFullscreen.Glyph = "";
|
FontIconFullscreen.Text = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -80,7 +80,7 @@
|
|||||||
<DropShadowEffect Direction="0" ShadowDepth="0" Opacity="0.1" BlurRadius="3"/>
|
<DropShadowEffect Direction="0" ShadowDepth="0" Opacity="0.1" BlurRadius="3"/>
|
||||||
</Border.Effect>
|
</Border.Effect>
|
||||||
<Viewbox Margin="5.5">
|
<Viewbox Margin="5.5">
|
||||||
<ui:FontIcon Name="FontIconFullscreen" Glyph="" Foreground="Black" FontFamily="Segoe MDL2 Assets" FontSize="12" />
|
<TextBlock Name="FontIconFullscreen" Text="" Foreground="Black" FontFamily="Segoe MDL2 Assets" FontSize="12" />
|
||||||
</Viewbox>
|
</Viewbox>
|
||||||
</Border>
|
</Border>
|
||||||
<Border x:Name="BtnClose" MouseUp="BtnClose_MouseUp" HorizontalAlignment="Right" VerticalAlignment="Bottom"
|
<Border x:Name="BtnClose" MouseUp="BtnClose_MouseUp" HorizontalAlignment="Right" VerticalAlignment="Bottom"
|
||||||
@@ -90,7 +90,7 @@
|
|||||||
<DropShadowEffect Direction="0" ShadowDepth="0" Opacity="0.1" BlurRadius="3"/>
|
<DropShadowEffect Direction="0" ShadowDepth="0" Opacity="0.1" BlurRadius="3"/>
|
||||||
</Border.Effect>
|
</Border.Effect>
|
||||||
<Viewbox Margin="5.5">
|
<Viewbox Margin="5.5">
|
||||||
<ui:FontIcon Glyph="" Foreground="White" FontFamily="Segoe MDL2 Assets" FontSize="12" />
|
<TextBlock Text="" Foreground="White" FontFamily="Segoe MDL2 Assets" FontSize="12" />
|
||||||
</Viewbox>
|
</Viewbox>
|
||||||
</Border>
|
</Border>
|
||||||
</ui:SimpleStackPanel>
|
</ui:SimpleStackPanel>
|
||||||
|
|||||||
@@ -30,12 +30,12 @@ namespace Ink_Canvas
|
|||||||
if (WindowState == WindowState.Normal)
|
if (WindowState == WindowState.Normal)
|
||||||
{
|
{
|
||||||
WindowState = WindowState.Maximized;
|
WindowState = WindowState.Maximized;
|
||||||
FontIconFullscreen.Glyph = "";
|
FontIconFullscreen.Text = "";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
WindowState = WindowState.Normal;
|
WindowState = WindowState.Normal;
|
||||||
FontIconFullscreen.Glyph = "";
|
FontIconFullscreen.Text = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user