2024-09-21 22:07:30 +08:00
|
|
|
<UserControl x:Class="InkCanvasForClass.IccInkCanvas.IccBoard"
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:local="clr-namespace:InkCanvasForClass.IccInkCanvas"
|
|
|
|
mc:Ignorable="d">
|
|
|
|
<Grid Width="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorLevel=1, AncestorType={x:Type UserControl}}, Path=ActualWidth}"
|
|
|
|
Height="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorLevel=1, AncestorType={x:Type UserControl}}, Path=ActualHeight}">
|
|
|
|
<Canvas Width="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorLevel=1, AncestorType={x:Type UserControl}}, Path=ActualWidth}"
|
|
|
|
Height="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorLevel=1, AncestorType={x:Type UserControl}}, Path=ActualHeight}"
|
|
|
|
ClipToBounds="True" x:Name="InkCanvasHostCanvas" x:FieldModifier="private">
|
2024-09-22 16:28:59 +08:00
|
|
|
<local:IccInkCanvas x:Name="InkCanvas" x:FieldModifier="private" Loaded="IccInkCanvas_Loaded"/>
|
2024-09-21 22:07:30 +08:00
|
|
|
</Canvas>
|
|
|
|
</Grid>
|
|
|
|
</UserControl>
|