Drawing a Path in XAML (with binding) vs. C#. One works, one doesn't
问题 I'm completely new to programming in general, but I've been teaching myself C# for about 6 months. Currently working on WPF/XAML. I'm trying to learn about rendering shapes in WPF. I have a Path created in a custom class that my AllocationCanvas is binding to in the XAML below. For whatever reason, it just won't draw, even though I know the binding is set up correctly. <Canvas x:Name="AllocationCanvas" Grid.Row="0" Grid.Column="0" Width="Auto" Height="Auto" DataContext="{Binding