InkCanvas supoorts background

Javier R 211 Reputation points
2020-06-29T19:58:42.277+00:00

Hello:

inkcanvas supports Background for various color changes.

Universal Windows Platform (UWP)
0 comments No comments
{count} votes

Accepted answer
  1. Fay Wang - MSFT 5,211 Reputation points
    2020-06-30T02:58:02.177+00:00

    Hello,

    Welcome to Microsoft Q&A!

    In UWP, there is no Background property to change the Background color of InkCanvas. If you want to change the Background color, you could put the InkCanvas into a container(e.g. Grid) and then set the background on the container object. In this case, the Background color of container can be used as the background color of InkCanvas. For example:

    .xaml:

    <Grid Height="400" Background="AliceBlue">
        <InkCanvas x:Name="inkCanvas"/>
    </Grid>
    
    2 people found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.