Skip to content

Commit

Permalink
[UI] prompt for BorderStrokeSelectionControl
Browse files Browse the repository at this point in the history
  • Loading branch information
ChangSakura committed Jul 31, 2024
1 parent 3123ca0 commit 99c2968
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
27 changes: 24 additions & 3 deletions Ink Canvas/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
PreviewTouchUp="GridInkCanvasSelectionCover_PreviewTouchUp"
Visibility="Visible" />
<Border x:Name="BorderStrokeSelectionControl"
Height="100"
Height="104"
Margin="0,50,0,0"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Expand Down Expand Up @@ -609,8 +609,29 @@
</Border>
</ikw:SimpleStackPanel>
</ikw:SimpleStackPanel>
<ikw:SimpleStackPanel Height="20">
<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="{DynamicResource FloatBarForeground}" Text="鼠标拖拽进行移动,鼠标滚轮进行缩放" />
<ikw:SimpleStackPanel
Height="20"
Margin="0,0,0,4"
HorizontalAlignment="Center"
VerticalAlignment="Top"
Opacity="0.75"
Orientation="Horizontal"
Spacing="6">
<Border Width="200" BorderThickness="0.75" BorderBrush="{DynamicResource FloatBarBorderBrush}" CornerRadius="2">
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"
Foreground="{DynamicResource FloatBarForeground}"
Text="鼠标:拖拽移动,滚轮缩放" />
</Border>
<Border Width="200" Margin="2,0,-2,0" BorderThickness="0.75" BorderBrush="{DynamicResource FloatBarBorderBrush}" CornerRadius="2">
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"
Foreground="{DynamicResource FloatBarForeground}"
Text="触屏:单指移动,两指缩放/旋转" />
</Border>

</ikw:SimpleStackPanel>
</ikw:SimpleStackPanel>
</Viewbox>
Expand Down
2 changes: 1 addition & 1 deletion Ink Canvas/MainWindow_cs/MW_SelectionGestures.cs
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ private void inkCanvas_SelectionChanged(object sender, EventArgs e)
}
}
double BorderStrokeSelectionControlWidth = 695;
double BorderStrokeSelectionControlHeight = 80;
double BorderStrokeSelectionControlHeight = 104;

private void updateBorderStrokeSelectionControlLocation()
{
Expand Down

0 comments on commit 99c2968

Please sign in to comment.