Click here to Skip to main content
15,895,557 members
Articles / Desktop Programming / WPF

Vector Brush Library

Rate me:
Please Sign up or sign in to vote.
5.00/5 (20 votes)
25 Apr 2014CPOL6 min read 44.9K   2.1K   56  
How to conveniently produce and use a vector Icon Library, with sample Icons
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
     xmlns:local="clr-namespace:ReflectionIconLib"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <DrawingBrush x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:LibraryResources}, ResourceId=ClosedFolderIconBrush}"
                   Viewbox="0,0,26.867,21.591" ViewboxUnits="Absolute" Stretch="Uniform">

        <DrawingBrush.Drawing>
            <DrawingGroup>
                <DrawingGroup>
                    <DrawingGroup.Transform>
                        <MatrixTransform Matrix="1,0,0,1,0.001,3.698"/>
                    </DrawingGroup.Transform>
                    <GeometryDrawing Geometry="M26.865988,17.89301 L-1.513672E-05,17.89301 -1.513672E-05,-1.4892599E-05 26.865988,-1.4892599E-05 z">
                        <GeometryDrawing.Brush>
                            <LinearGradientBrush EndPoint="0.565,0.918" StartPoint="0.385,-0.242">
                                <GradientStop Color="#FFA79F89" Offset="0"/>
                                <GradientStop Color="#FF221E1F" Offset="1"/>
                            </LinearGradientBrush>
                        </GeometryDrawing.Brush>
                    </GeometryDrawing>
                </DrawingGroup>
                <DrawingGroup>
                    <DrawingGroup.Transform>
                        <MatrixTransform Matrix="1,0,0,1,1.825,5.423"/>
                    </DrawingGroup.Transform>
                    <GeometryDrawing Geometry="M23.366013,14.247 L1.0253907E-05,14.247 1.0253907E-05,9.5214782E-06 23.366013,9.5214782E-06 z">
                        <GeometryDrawing.Brush>
                            <LinearGradientBrush EndPoint="0.879,1.091" StartPoint="0.258,0.122">
                                <GradientStop Color="#FFF8F0BD" Offset="0"/>
                                <GradientStop Color="#FFE0AB25" Offset="1"/>
                            </LinearGradientBrush>
                        </GeometryDrawing.Brush>
                    </GeometryDrawing>
                </DrawingGroup>
                <GeometryDrawing Brush="#FFA7A08A" Geometry="M3.3530077,4.8828213E-08 L9.0709968,4.8828213E-08 12.373991,3.6970091 1.4013645E-05,3.6970091 z"/>
                <DrawingGroup>
                    <DrawingGroup.Transform>
                        <MatrixTransform Matrix="1,0,0,1,2.279,1.361"/>
                    </DrawingGroup.Transform>
                    <GeometryDrawing Brush="#FFF8F1BD" Geometry="M2.1180113,1.0888679E-05 L5.7310069,1.0888679E-05 7.8160043,2.3360124 1.3867171E-05,2.3360124 z"/>
                </DrawingGroup>
            </DrawingGroup>
        </DrawingBrush.Drawing>




    </DrawingBrush>
</ResourceDictionary>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
Written software for what seems like forever. I'm currenly infatuated with WPF. Hopefully my affections are returned.

Comments and Discussions