I create a canvas

<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <Canvas x:Name="GraphCanvas" Background="Azure" HorizontalAlignment="Left" Height="100" Margin="261,244,0,0" VerticalAlignment="Top" Width="100"/> </Grid> 

Trying to turn and ..

 void App::OnLaunched(Windows::ApplicationModel::Activation::LaunchActivatedEventArgs^ e) { GraphCanvas->... ... } 

And nothing, how do I draw something there?

  • In WPF, you “draw” not in the code-behind, but by adding child elements. Add something inside, it will draw itself. - VladD
  • Deal with the problem? - user227049
  • I decided that I would draw a picture, but not in Canvas - Fangog

0