WPF——TaskBarIconOverlay(任务栏图标叠加)
2021-04-13 05:28
Window.Resources>
DrawingImage x:Key="OverlayImageVector">
DrawingImage.Drawing>
GeometryDrawing Brush="Red">
GeometryDrawing.Geometry>
RectangleGeometry Rect="0 0 16 16" RadiusX="3" RadiusY="3" />
GeometryDrawing.Geometry>
GeometryDrawing>
DrawingImage.Drawing>
DrawingImage> DrawingImage x:Key="OverlayImage">
DrawingImage.Drawing>
ImageDrawing ImageSource="0726_24px_Republic_32bit_PNG.png" Rect="0 0 24 24" />
DrawingImage.Drawing>
DrawingImage>
Window.Resources>
Window.TaskbarItemInfo>
TaskbarItemInfo />
Window.TaskbarItemInfo>
Grid>
StackPanel Width="120"
HorizontalAlignment="Center"
VerticalAlignment="Center">
Button x:Name="AddOverlay"
Content="Add Overlay"
Margin="10" />
Button x:Name="OtherOverlay"
Content="Other Overlay"
Margin="10" />
StackPanel>
Grid>
文章标题:WPF——TaskBarIconOverlay(任务栏图标叠加)
文章链接:http://soscw.com/index.php/essay/75059.html