Microsoft.Expression.Drawing文件安装

使用Blend的绘制功能,需要引用 Microsoft.Expression.Drawing 库文件,

xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing"
<UserControl x:Class="CircleProgressBarDemo2.UserControls.LoadingRing"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing"
             xmlns:local="clr-namespace:CircleProgressBarDemo2.UserControls"
             mc:Ignorable="d">
    <Viewbox>
        <Grid>
            <Ellipse Stroke="Gray" StrokeThickness="3" Opacity="0.6"/>
            <ed:Arc ArcThickness="3" EndAngle="0" Margin="0" Stretch="None" Stroke="Transparent" StrokeThickness="0" StartAngle="0" Fill="#FF0071BC" x:Name="EllipseFill"/>
        </Grid>
    </Viewbox>
</UserControl>

1. 使用 Nuget 添加对 Microsoft.Expression.Drawing 3.0.0 的引用(https://www.nuget.org/packages/Microsoft.Expression.Drawing/

打开Nuget程序包管理器控制台,输入以下命令即可完成安装:

Install-Package Microsoft.Expression.Drawing -Version 3.0.0
原文地址:https://www.cnblogs.com/runningRain/p/13820566.html