使用icontfont svg转 Geometry

wpf

<hc:Window
    x:Class="IconfontXGeometry.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:avalonEdit="http://icsharpcode.net/sharpdevelop/avalonedit"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:hc="https://handyorg.github.io/handycontrol"
    xmlns:local="clr-namespace:IconfontXGeometry"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    Title="iconfont转几何图形"
    Width="1000"
    Height="600"
    Loaded="Window_Loaded"
    mc:Ignorable="d" Icon="/app1.png">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto" />
            <RowDefinition />
            <RowDefinition Height="auto" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <TextBlock
            Margin="10,5"
            FontSize="18"
            Foreground="{DynamicResource PrimaryBrush}"
            Text="SVG 代码" />

        <avalonEdit:TextEditor
            Name="SVG_Text"
            Grid.Row="1"
            Margin="5"
            FontFamily="Consolas"
            FontSize="10"
            ShowLineNumbers="True"
            SyntaxHighlighting="XML"
            TextChanged="SVG_Text_TextChanged"
            WordWrap="True" />

        <StackPanel Grid.Row="2" Orientation="Horizontal">
            <CheckBox
                x:Name="CKB_Spy"
                Margin="10,5,30,5"
                Content="监控剪切板"
                FontSize="18"
                IsChecked="True" />

            <RadioButton
                x:Name="RaBtn_Geometry"
                Margin="5"
                Checked="RadioButton_Checked"
                Content="Geometry"
                IsChecked="True" />
            <RadioButton
                x:Name="RaBtn_PathGeometry"
                Margin="5"
                Checked="RadioButton_Checked"
                Content="PathGeometry" />
            <RadioButton
                x:Name="RaBtn_CombinedGeometry"
                Margin="5"
                Checked="RadioButton_Checked"
                Content="CombinedGeometry" />
            <RadioButton
                x:Name="RaBtn_DrawingImage"
                Margin="5,5,30,5"
                Checked="RadioButton_Checked"
                Content="DrawingImage" />
            <Label
                Padding="0"
                Background="Transparent"
                BorderThickness="0"
                Content="资源名称:"
                FontSize="16"
                Foreground="{DynamicResource PrimaryBrush}" />
            <hc:TextBox
                x:Name="TB_Name"
                MinWidth="260"
                MaxWidth="400"
                Margin="3"
                VerticalContentAlignment="Center"
                hc:BorderElement.CornerRadius="0"
                BorderThickness="1"
                FontSize="14"
                Text="Icon_"
                TextChanged="TB_Name_TextChanged" />
        </StackPanel>

        <TabControl Name="MyTabControl" Grid.Row="3">
            <TabItem FontSize="18" Header="Geometry 资源">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="2*" />
                        <ColumnDefinition Width="*" />
                    &l
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值