Why is the Canvas' Background property a generic “SolidColorBrush” instead of an actual color?
问题 I want to respond to a tap on a canvas and store the value of the canvas' background in app settings so that I can assign that value to the AppBar / Command Bar. So I have this XAML in a User Control: <StackPanel Orientation="Horizontal"> <Canvas Background="Aqua" Width="20" Height="20" VerticalAlignment="Center" Tapped="CanvasColor_Tapped"></Canvas> <TextBlock Text="Aqua" VerticalAlignment="Center" Tapped="CanvasColor_Tapped" ></TextBlock> </StackPanel> ..and the handler is: private void