解决方案
20
<StackPanel Orientation="Horizontal"> <InkCanvas Width="250" Name="ic1" Background="PeachPuff"/> <InkCanvas Width="250" Strokes="{Binding Strokes, ElementName=ic1}" Background="Linen" /> </StackPanel>
要镜像翻转,用ScaleTransform。
20
<Grid> <Grid.ColumnDefinitions> <ColumnDefinition></ColumnDefinition> <ColumnDefinition></ColumnDefinition> </Grid.ColumnDefinitions> <InkCanvas Name="inkCanvas"></InkCanvas> <Rectangle Name="rectangle" Grid.Column="1" Grid.ColumnSpan="1" RenderTransformOrigin="1,0.5"> <Rectangle.Fill> <VisualBrush Visual="{Binding ElementName=inkCanvas}"></VisualBrush> </Rectangle.Fill> </Rectangle> </Grid>