我在 XAML 中添加了一个 InkPresenter。如何动态更改其背景颜色?
这可行吗?
ImageBrush ib = 新的 ImageBrush(); ib.Stretch = Stretch.Uniform; ib.ImageSource = new BitmapImage(new Uri(@"/Images/WhiteBoard_1000.jpg", UriKind.Relative)); myInk.Background = ib;
我在 XAML 中添加了一个 InkPresenter。如何动态更改其背景颜色?
这可行吗?
ImageBrush ib = 新的 ImageBrush(); ib.Stretch = Stretch.Uniform; ib.ImageSource = new BitmapImage(new Uri(@"/Images/WhiteBoard_1000.jpg", UriKind.Relative)); myInk.Background = ib;