Article From:https://www.cnblogs.com/lonelyxmas/p/9689215.html
Original text: WPF party flag and national emblem!

Copyright notice: This article is an original article for bloggers. It can not be reproduced without permission from bloggers. Https://blog.csdn.net/yangyisen0713/article/details/18087007

I. the party flag and the national emblem.

xamlCode:

<Window x:Class="WpfMaking party flag.MainWindow "Xmlns= "http://schemas.microsoft.com/winfx/2006/xaml/presentation"Xmlns:x= "http://schemas.microsoft.com/winfx/2006/xaml"Title= "MainWindow" Height= "334" WidTh= "465" >< Viewbox Width= "348.553711" Height= "345.027832".Xmlns= "http://schemas.microsoft.com/winfx/2006/xaml/presentation "Xmlns:x= "http://schemas.microsoft.com/winfx/2006/xaml ">< Canvas Width= "471" Height= "350" >< Canvas>< Path Data= "M 166.979980,0.072754 C 177.454590,3.563965 187.428711,7.196777 197.354980,1"2.048828 C 186.879883,8.557129 177.160156,4.276855 166.979980,0.072754 ">< Path.Fill>< LinearGradientBrush MappingMode= "Absolute" StartPoint= "206.919434656.222168 "EndPoint=" 195.395905676.181519 ">";< LinearGrAdientBrush.GradientStops>< GradientStop Offset= "0" CoLor= "#ffff0000" />< GradientStop Offset= "0.490000" Color= "#fff"Fff00 "/>< GradientStop Offset= "1" Color= "#ffff0000" /&gT;< /LinearGradientBrush.GradientStops>< LinearGradientBrush.Transform>< MatrixTransform MatriX= "1.000000,0.000000, -0.000000, -1.000000, -18.876953672.458496" />≪ /LinearGradientBrush.Transform>< /LinearGradientBrush>< /Path.Fill>< /Path>< Path Data= "M 260.534180223.114746 C 265.394531224.793457 270.254883226.472168 275.115723228.150879 C 254.294922206.899902 233.473145185.648926 212.652344164.397461 C 199.968262151.451660 187.284180138.505371 174.600098125.559570 C 171.822266122.724121 169.043945119.888672 166.266113117.053223 C 163.188477113.912598 155.187012113.056641 151.009277111.680664 C 187.517578148.825195 224.025879,185.970215 260.534180223.114746 ">";< Path.Fill>< LinearGradientBrush MappingMode= "Absolute" StartPoint= "268.759766438.768555" EndPoint= "195.437"637565.766174 ">< LinearGradientBrush.GradientStops>< GradientStop Offset= "0" Color= "#ffff0000" />< GradientStop Offset= "0.490000" Color= "#ffffff00" />< GradientStop Offset= "1" Color= "#ffff0000" />< /LiNearGradientBrush.GradientStops>< LinearGradientBrush.Transform&gT;< MatrixTransform Matrix= "1.000000,0.000000, -0.000000, -1.000000, -18.876953672.458496 "/>< /LinearGradientBrush.Transform>< /LinearGradientBrush>< /Path.Fill>< /Path>< Path Data= "M 151.009277111.680664 C 153.096680,112.368164 164.743164117.559570 165.968750116.333984 C 170.215820112.087402 174.462891107.840332 178.709473103.593262 C 188.511719,93.791504 198.313965,83.989746 208.115723,74.187988 C 206.027832,73.500000 194.381836,68.308105 193.156250,69.533691 C 188.909180,73.780762 184.662598,78.027344 180.415039,82.274414 C 170.613281,92.076660 160.811035101.878418 151.009277111.680664 ">< Path.Fill>< LinearGradientBrush MappingMode= "Absolute" STartPoint= "213.973145552.619629" EndPoint= "182.885605606.464844" >< LinearGradientBrush.GradientStops>< GradientStop Offset= "0 "Color=" #ffff0000 "/>";< GradientStop Offset= "0.490000"Color= "#ffffff00" />< GradientStop Offset= "1" Color= "Ffff0000 "/>< /LinearGradientBrush.GradientStops>< LinearGradientBrush.Transform>< MatrixTraNsform Matrix= "1.000000,0.000000, -0.000000, -1.000000, -18.876953672.458496" />< /LinearGradientBrush.Transform>< /LinearGradientBrush≫< /Path.Fill>< /Path>< PathData= "M 193.362305,69.327637 C 198.280273,70.947754 203.197754,72.567871 208.115723,74.187988 C 20"1.068359,67.048828 194.020508,59.909668 186.973145,52.770508 C 180.812500,46.529785 175.480469,45.258301 166.979980,42.424316 C 175.774414,51.392090 184.568359,60.359863 193.362305,69.327637 ">";< Path.Fill>< LinearGradientBrush MappingMode= "AbsOlute "StartPoint=" 217.441895595.070801 "EndPoint=" 195.749924632.642395 ">";< LinearGradientBrush.GradientStops>< GradientStopOffset= "0" Color= "#ffff0000" />< GradientStop Offset= "0.490000 "Color=" #ffffff00 "/>";< GradientStop Offset= "1"Color= "#ffff0000" />< /LinearGradientBrush.GradientStops>< LinearGradientBrush.Transform>< MAtrixTransform Matrix= "1.000000,0.000000, -0.000000, -1.000000, -18.876953672.458496" />< /LinearGradientBrush.Transform>< /LinearGradieNtBrush>< /Path.Fill>< /Path>< Path Data= "M 78.629883186.317383 C 83.464355187.910645 88.298828189.504395 93.132813191.097656 C 94.256836191.467773 99.475098184.811523 100.272461183.978516 C 108.274902175.616699 116.276367167.254395 124.278809158.892578 C 119.444336157.243164 114.609863155.593750 109.775879,153.944336 C 108.672363153.567871 103.422852160.272461 102.635742161.099121 C 94.633789169.50537186.631836177.911621 78.629883186.317383 ">< Path.Fill>< LinearGradientBrush MappingMode= "Absolute" StartPoint= "132.348633479.038574" EndPoiNt= "107.646286521.824280" >< LinearGradientBrush.GradientStops>< GradientStop Offset= "0" Color= "#ffff0000" />< GradientStop Offset= "0.490000" Color= "#ffffff00" />< GradientStop Offset= "1" Color= "#ffff0000" />< /LinearGradientBrush.GradientStops>< LinearGradientBrush.Transform>< MatrixTransform Matrix= "1.000000,0.000000, -0.000000, -1.000000, -18.876953672.458496 "/>";< /LinearGradientBrush.TranSform>< /LinearGradientBrush>< /Path.Fill≫< /Path>< Path Data= "M 121.849121278.832520 C 126.767090280.452637 131.685059282.071777 136.603027283.690918 C 118.035645279.447754 101.201172,271.685059 84.973633261.853516 C 76.700684256.842285 69.117676250.454590 61.842285244.118164 C 58.307129241.040039 54.802734235.968262 50.856445233.530273 C 46.796387231.022461 40.807617230.061035 36.276855228.496582 C 59.886230252.886230 88.618652271.013672 121.849121278.832520 ">";< Path.Fill>< LinearGradientBrush MappingMode= "AbSolute "StartPoint=" 127.011230378.789063 "EndPoint=" 82.923027455.152069 ">";< LinearGradientBrush.GradientStops>< GradientStopOffset= "0" Color= "#ffff0000" />< GradientStop Offset= "0.490000 "Color=" #ffffff00 "/>";< GradientStop Offset= "1"Color= "#ffff0000" />< /LinearGradientBrush.GradientStops>< LinearGradientBrush.Transform>< MAtrixTransform Matrix= "1.000000,0.000000, -0.000000, -1.000000, -18.876953672.458496" />< /LinearGradientBrush.Transform>< /LinearGradieNtBrush>< /Path.Fill>< /Path>< Path Data= "M 28.813965287.858887 C 33.673828289.479004 38.533691291.099121 43.393555292.718262 C 37.777344291.301270 31.753906289.070801 26.035645287.164551 C 27.019531287.317871 27.854492287.580566 28.813965287.858887 ">";< Path.Fill>< LinearGradientBrush MappingMode= "Absolute" StartPoint= "56.084961378.198242" EndPoint= "49".974094388.782562 ">< LinearGradientBrush.GradientStops>< GradientStop Offset= "0" Color= "#ffff0000" />< GradientStop Offset= "0.490000" Color= "#ffffff00" />< GradientStop Offset= "1" Color= "#ffff0000" />< /LinearGradientBrush.GradientStops>< LinearGradientBrush.TransfoRm>< MatrixTransform Matrix= "1.000000,0.000000, -0.000000, -1.000000, -18.876953672.458496 "/>< /LinearGradientBrush.Transform&gT;< /LinearGradientBrush>< /Path.Fill>< /Path>< Path Data= "M 21.696777339.756348 C 27.350098,"341.684082 34.117676345.572754 40.269531344.963379 C 34.147949342.924316 28.139160340.274902 21.696777339.756348 ">< Path.Fill>< LinearGraDientBrush MappingMode= "Absolute" StartPoint= "52.950195324.746094" EndPoint= "46.740662335.501312" ≫< LinearGradientBrush.GradientStops>< GradientStop Offset= "0" Color= "#ffff0000" />≪ GradientStop Offset= "0.490000" Color= "#ffffff00" />< GradieNtStop Offset= "1" Color= "#ffff0000" />< /LinearGradientBrusH.GradientStops>< LinearGradientBrush.Transform>< MatrixTransform Matrix= "1.000000,0.000000, -0.000000, -1.000000, -18.876953672.458496 "/>< /LinearGradientBrush.Transform>< /LinearGradientBrush>< /Path.Fill>< /PAth>< Path Data= "M 25.687500340.104980 C 38.511719344.378418 48.198242, 347.613770 58.839844337.326660 C 62.217285334.062012 64.698242330.041504 65.959473325.524902 C66.209961324.626465 67.501953319.150879 66.576660318.846191 C 61.742676317.253418 56.908203315.659668 52.073730314.066895 C 51.935059328.373535 39.889160339.881348 25.687500340.104980 ">";< Path.Fill>< LinearGradientBrush MappingMode= "ABsolute "StartPoint=" 75.322266325.193359 "EndPoint=" 54.014801362.098969 ">";< LinearGradientBrush.GradientStops>< GradientStopOffset= "0" Color= "#ffff0000" />< GradientStop Offset= "0.490000 "Color=" #ffffff00 "/>";< GradientStop Offset= "1"Color= "#ffff0000" />< /LinearGradientBrush.GradientStops>< LinearGradientBrush.Transform>< MAtrixTransform Matrix= "1.000000,0.000000, -0.000000, -1.000000, -18.876953672.458496" />< /LinearGradientBrush.Transform>< /LinearGradieNtBrush>< /Path.Fill>< /Path>< Path Data= "M 52.073730314.066895 C 56.990723315.687012 61.908203317.308105 66.825195318.928223 C 65.702148311.508301 58.149414311.843262 51.203125309.556152 C 51.649414310.998535 51.973633312.491699 52.073730314.066895 ">";< Path.Fill>< LinearGradientBrush MappingMode= "Absolute" StartPoint= "80.921387352.101563" EndPoint= "73".755142364.513855 ">< LinearGradientBrush.GradientStops>< GradientStop Offset= "0" Color= "#ffff0000" />< GradientStop Offset= "0.490000" Color= "#ffffff00" />< GradientStop Offset= "1" Color= "#ffff0000" />< /LinearGradientBrush.GradientStops>< LinearGradientBrush.TransfoRm>< MatrixTransform Matrix= "1.000000,0.000000, -0.000000, -1.000000, -18.876953672.458496 "/>< /LinearGradientBrush.Transform&gT;< /LinearGradientBrush>< /Path.Fill>< /Path>< Path Data= "M 51.203125309.556152 C 55.011230,"310.809082 58.819336312.063965 62.627930313.317871 C 66.905273314.726074 66.626465313.546387 69.429199309.901855 C 65.666504308.647949 61.903809307.394043 58.141113306.140137 C 53.880371304.720215 54.088867305.983887 51.203125309.556152 ">";< Path.Fill>< LinearGradientBrush MappingMode= "Absolute" StartPoint= "82.501953356.998047" EnDPoint= "75.260674369.540314" >< LinearGradientBrush.GradientStops>< GradientStop Offset= "0" Color= "#ffff0000" />< GradientStop Offset= "0.490000" Color= "#ffffff00" />< GradientStop Offset= "1" Color= "#ffff0000" />< /LinearGradientBrush.GradientStops>< LinearGradientBruSh.Transform>< MatrixTransform Matrix= "1.000000,0.000000, -0.000000, -1.000000, -18.876953672.458496 "/>";< /LinearGradientBrush.TRansform>< /LinearGradientBrush>< /Path.FiLl>< /Path>< Path Data= "M 134.868164338.195801 C"183.204590354.125488 233.538574338.587402 275.982422313.548340 C 270.608887311.756348 263.787109307.317871 258.671387310.258301 C 253.170898313.421387 247.625488316.444824 241.950684319.282715 C 230.617676324.949707 218.514648330.061035 206.238770333.290527 C 182.321289339.582520 159.391113340.849121 134.868164338.195801 ">";< Path.Fill>< LinearGradientBrush MappingMode= "Absolute" StartPoint= "247.446289306.500000" EndPoint= "201.608322385.893677 ">< LinearGradientBrush.GradientStops>< GradientStop Offset= "0" Color= "#ffff0000" />< GradientStop Offset= "0.490000" Color= "#ffffff00" />< GradientStop Offset= "1" Color= "#ffff0000" />< /LinearGradientBrush.GradientStops>< LinearGradientBrush.TranSform>< MatrixTransform Matrix= "1.000000,0.000000, -0.000000," -1, -18.876953672.458496 "/>< /LinearGradientBrush.TransforM>< /LinearGradientBrush>< /Path.Fill>< /Path>< Path Data= "M 291.430664340.104980 C 293.499023340.794434 304.996094345.971191 306.219727344.759277 C 310.483398340.528809 314.748047336.299316 319.011719332.069824 C 328.853516322.309082 338.696289312.546387 348.538086302.785645 C 346.433594302.092285 334.815430296.897949 333.569336298.139160 C 329.583008302.108887 325.595703,36.079590 321.609375310.050293 C 311.549805320.068848 301.490234330.086426 291.430664340.104980 ">< Path.Fill>< LinearGradientBrush MappingMode= "Absolute" StartPoint= "355.064453322.948242" EndPoint= "323.977844376.791809" >< LinearGradientBrush.GradientStops>< GradIentStop Offset= "0" Color= "#ffff0000" />< GradientStopOffset= "0.490000" Color= "#ffffff00" />< GradientStop Offset= "1.000000 "Color=" #ffff0000 "/>";< /LinearGradientBrush.GradientStops≫< LinearGradientBrush.Transform>< MatrixTransform Matrix= "1.000000,0.000000, -0.000000, -1.000000, -18.876953672.458496" />< /LinearGradientBrush.Transform>< /LinEarGradientBrush>< /Path.Fill>< /Path>< Path Data= "M 333.784180297.925293 C 338.702148299.545410 343.620117301.165527 348.538086302.785645 C 340.909180294.985840 333.280273287.186035 325.651367279.385254 C 323.249023276.929688 320.592773273.006836 317.640625271.195801 C 313.574219268.701172 307.439453267.835938 302.886719266.336426 C 313.185547276.866211 323.485352287.395020 333.784180297.925293 ">";< Path.Fill>< LinearGradientBrush MappingMode= "ABsolute "StartPoint=" 357.218750366.021484 "EndPoint=" 332.780609408.349609 ">";< LinearGradientBrush.GradientStops>< GradientStoP Offset= "0" Color= "#ffff0000" />< GradientStop Offset="0.490000" Color= "#ffffff00" />< GradientStop Offset= "1"Color=" #ffff0000 "/>";< /LinearGradientBrush.GradientStops>< LinearGradientBrush.Transform>< MatrixTransform Matrix= "1.000000,0.000000, -0.000000, -1.000000, -18.876953672.458496" />< /LinearGradientBrush.Transform>< /LinearGradIentBrush>< /Path.Fill>< /Path>< Path Data= "M 302.886719266.336426 C 307.721680267.928711 312.556641269.521484 317.392578271.113770 C 318.318359271.418945 324.430664260.056641 325.278320258.525391 C 329.754883250.432129 334.141602241.643066 337.181641232.893066 C 344.016602213.214355 347.890625193.997070 348.501953173.138184 C 349.604492135.537109 333.109375,94.943848 308.563477,66.888184 C 288.424805,43.868652 265.074219,25.655273 235.889160,16.041504 C 270.529297,34.649414 303.173828,63.586426 318.630859100.689453 C 334.457031138.677246 337.265625175.669434 326.744141215.532715 C 321.926758233.782227 312.545898250.310547 302.886719266.336426 ">";< Path.Fill>< LinearGradientBrush MappingMode= "Absolute" StartPoint= "374.715820421.998047""EndPoint=" 250.000259638.011719 ">";< LinearGradientBrush.GradientStops>< GradientStop Offset= "0" Color= "#ffff0000" />< GradientStop Offset= "0.490000" Color= "#ffffff00" />< GradientStop Offset= "1" Color= "#ffff0000" />< /LinearGradientBrush.GradientStops>< LinearGradieNtBrush.Transform>< MatrixTransform Matrix= "1.000000,0.000000-0.000000, -1.000000, -18.876953672.458496 "/>";< /LinearGradientBrUsh.Transform>< /LinearGradientBrush>< /PaTh.Fill>< /Path>< Path Data= "M 166.979980,0.072754 C"177.454590,3.563965 187.428711,7.196777 197.354980,12.048828 C 186.879883,8.557129 177.160156,4.276855 166.979980,0.072754 ">";< Path.Fill>< LineArGradientBrush MappingMode= "Absolute" StartPoint= "206.919434656.222168" EndPoint= "195.395905676.1"81519 ">< LinearGradientBrush.GradientStops>< GradientStop Offset= "0" Color= "#ffff0000" />< GradientStop Offset= "0.490000" Color= "#ffffff00" />< GradientStop Offset= "1" Color= "#ffff0000" />< /LinearGradiEntBrush.GradientStops>< LinearGradientBrush.Transform>< MatrixTransform Matrix= "1.000000,0.000000, -0.000000, -1.000000, -18.876953672.458496 "/>< /LinearGradientBrush.Transform>< /LinearGradientBrush>< /Path.Fill>< /Path>< Path Data= "M 260.534180223.114746 C 265.394531224.793457270.254883226.472168 275.115723228.150879 C 254.294922206.899902 233.473145185.648926 212.652344, 164.397461 C 199.968262151.451660 187.284180138.505371 174.600098125.559570 C 171.822266122.724121 169.043945119.888672 166.266113117.053223 C 163.188477113.912598 155.187012113.056641 1519277111.680664 C 187.517578148.825195 224.025879185.970215 260.534180223.114746 ">< Path.Fill>< LinearGradientBrush MappingMode= "Absolute"StartPoint= "268.759766438.768555" EndPoint= "195.437637565.766174" >< LinearGradientBrush.GradientStops>< GradientStop Offset="0" Color= "#ffff0000" />< GradientStop Offset= "0.490000"Color=" #ffffff00 "/>";< GradientStop Offset= "1" Color= "#ffff0000 "/>< /LinearGradientBrush.GradientStops>< LinearGradientBrush.Transform>< MatrixTrAnsform Matrix= "1.000000,0.000000, -0.000000, -1.000000, -18.876953672.458496" />< /LinearGradientBrush.Transform>< /LinearGradientBrush>< /Path.Fill>< /Path>< Path Data= "M 151.009277111.680664 C 153.096680112.368164 164.743164117.559570 165.968750116.33"3984 C 170.215820112.087402 174.462891107.840332 178.709473103.593262 C 188.511719,93.791504 198.313965,83.989746 208.115723,74.187988 C 206.027832,73.500000 194.381836,68.308105 193.156250,69.533691 C 188.909180,73.780762 184.662598,78.027344 180.415039,82.274414 C 170.613281,92.076660 160.811035101.878418 151.009277111.680664 ">";< Path.Fill>< LinearGradientBrush MappingMode= "Absolute" StartPoint= "213.973145552.619629" EndPoint= "182."885605606.464844 ">< LinearGradientBrush.GradientStops>< GradientStop Offset= "0" Color= "#ffff0000" />< GradientStop Offset= "0.490000" Color= "#ffffff00" />< GradientStop Offset= "1" Color= "#ffff0000" /></LinearGradientBrush.GradientStops>< LinearGradientBrush.TransforM>< MatrixTransform Matrix= "1.000000,0.000000, -0.000000, -1.000000, -18.876953672.458496 "/>< /LinearGradientBrush.Transform>< /LinearGradientBrush>< /Path.Fill>< /Path>< Path Data= "M 193.362305,69.327637 C 198.280273,"70.947754 203.197754,72.567871 208.115723,74.187988 C 201.068359,67.048828 194.020508,59.909668 186.973145,52.770508 C 180.812500,46.529785 175.480469,45.258301 166.979980,42.424316 C 175.774414,51.392090 184.568359,60.359863 193.362305,69.327637 ">";< Path.Fill>< LinearGradientBrush MappingMode= "Absolute" StartPoint= "217.441895595.070801" EnDPoint= "195.749924632.642395" >< LinearGradientBrush.GradientStopS>< GradientStop Offset= "0" Color= "#ffff0000" />< GradientStop Offset= "0.490000" Color= "#ffffff00" />< GradientStop Offset= "1" Color= "#ffff0000" />< /LinearGradientBrush.GradientStops>< LinearGradientBrUsh.Transform>< MatrixTransform Matrix= "1.000000,0.000000, -0.000000, -1.000000, -18.876953672.458496 "/>";< /LinearGradientBrush.Transform>< /LinearGradientBrush>< /Path.FIll>< /Path>< Path Data= "M 78.629883186.317383 C"83.464355187.910645 88.298828189.504395 93.132813191.097656 C 94.256836191.467773 99.475098184.811523 100.272461183.978516 C 108.274902175.616699 116.276367167.254395 124.278809158.892578 C119.444336157.243164 114.609863155.593750 109.775879153.944336 C 108.672363153.567871 103.422852, 160.272461 102.635742161.099121 C 94.633789169.505371 86.631836177.911621 78.629883186.317383 "≫< Path.Fill>< LinearGradientBrush MappingMOde= "Absolute" StartPoint= "132.348633479.038574" EndPoint= "107.646286521.824280" >< LinearGradientBrush.GradientStops>< GradiEntStop Offset= "0" Color= "#ffff0000" />< GradientStop OFfset= "0.490000" Color= "#ffffff00" />< GradientStop Offset= "1.000000 "Color=" #ffff0000 "/>";< /LinearGradientBrush.GradientStops&gT;< LinearGradientBrush.Transform>< MatrixTransform Matrix= "1.000000,0.000000, -0.000000, -1.000000, -18.876953672.458496" />< /LinearGradientBrush.Transform>< /LineArGradientBrush>< /Path.Fill>< /Path>< Path Data= "M 121.849121278.832520 C 126.767090280.452637 131.685059282.071777 136.603027283.690918 C 118.035645279.447754 101.201172271.685059 84.973633261.853516 C 76.700684,256.842285 69.117676250.454590 61.842285244.118164 C 58.307129241.040039 54.802734235.968262 50.856445233.530273 C 46.796387231.022461 40.807617230.061035 36.276855228.496582 C 59.886230252.886230 88.618652271.013672 121.849121278.832520 ">";< Path.Fill>< LinearGradientBrush MappingMode= "Absolute" StartPoint= "127.011230378.789063" ENdPoint= "82.923027455.152069" >< LinearGradientBrush.GradientStopS>< GradientStop Offset= "0" Color= "#ffff0000" />< GradientStop Offset= "0.490000" Color= "#ffffff00" />< GradientStop Offset= "1" Color= "#ffff0000" />< /LinearGradientBrush.GradientStops>< LinearGradientBrUsh.Transform>< MatrixTransform Matrix= "1.000000,0.000000, -0.000000, -1.000000, -18.876953672.458496 "/>";< /LinearGradientBrush.Transform>< /LinearGradientBrush>< /Path.FIll>< /Path>< Path Data= "M 28.813965287.858887 C"33.673828289.479004 38.533691291.099121 43.393555292.718262 C 37.777344291.301270 31.753906289.070801 26.035645287.164551 C 27.019531287.317871 27.854492287.580566 28.813965287.858887 ">< Path.Fill>< LinearGradientBrush MappingMode= "Absolute "StartPoint=" 56.084961378.198242 "EndPoint=" 49.974094388.782562 ">";< LinearGradientBrush.GradientStops>< GradientStopOffset= "0" Color= "#ffff0000" />< GradientStop Offset= "0.490000 "Color=" #ffffff00 "/>";< GradientStop Offset= "1"Color= "#ffff0000" />< /LinearGradientBrush.GradientStops>< LinearGradientBrush.Transform><MatrixTransform Matrix= "1.000000,0.000000, -0.000000, -1.000000, -18.876953672.458496" />< /LinearGradientBrush.Transform>< /LinearGradiEntBrush>< /Path.Fill>< /Path>< Path Data= "M 21.696777339.756348 C 27.350098341.684082 34.117676345.572754 40.269531344.96"3379 C 34.147949342.924316 28.139160340.274902 21.696777339.756348 "><Path.Fill>< LinearGradientBrush MappingMode= "Absolute" StartPoint= "52.950195324.746094 "EndPoint=" 46.740662335.501312 ">";< LinearGradiEntBrush.GradientStops>< GradientStop Offset= "0" Color= "#ffff0000" />< GradientStop Offset= "0.490000" Color= "#ffffff"00 "/>< GradientStop Offset= "1" Color= "#ffff0000" />< /LinearGradientBrush.GradientStops>< LinearGradientBrush.Transform>< MatrixTransform Matrix= "1.000000,0.000000, -0.000000, -1.000000, -18.876953672.458496 "/></LinearGradientBrush.Transform>< /LinearGradientBrush>< /Path.Fill>< /Path>< Path Data= "M 2"5.687500340.104980 C 38.511719344.378418 48.198242347.613770 58.839844337.326660 C 62.217285334.062012 64.698242330.041504 65.959473325.524902 C 66.209961324.626465 67.501953319.150879 66.576660318.846191 C 61.742676317.253418 56.908203315.659668 52.073730314.066895 C 51.935059328.373535 39.889160339.881348 25.687500340.104980 ">";< Path.Fill>< LinearGradientBrush MappingMode= "Absolute" StartPoint= "75.322266325.193359" EndPoInt= "54.014801362.098969" >< LinearGradientBrush.GradientStops>< GradientStop Offset= "0" Color= "#ffff0000" />< GradientStop Offset= "0.490000" Color= "#ffffff00" />< GradientStop Offset= "1" Color= "#ffff0000" />< /LinearGradientBrush.GradientStops>< LinearGradientBrush.Transform>< MatrixTransform Matrix= "1.000000,0.000000, -0.000000, -1.000000, -18.876953672.458496 "/>";< /LinearGradientBrush.TranSform>< /LinearGradientBrush>< /Path.Fill≫< /Path>< Path Data= "M 52.073730314.066895 C 56.990723315.687012 61.908203317.308105 66.825195318.928223 C 65.702148311.508301 58.149414311.843262 51.203125309.556152 C 51.649414310.998535 51.973633312.491699 52.073730314.066895 ">";< Path.Fill>< LinearGradientBrush MappingMode= "AbsoLute "StartPoint=" 80.921387352.101563 "EndPoint=" 73.755142364.513855 ">";< LinearGradientBrush.GradientStops>< GradientStop OffSet= "0" Color= "#ffff0000" />< GradientStop Offset= "0.490000 "Color=" #ffffff00 "/>";< GradientStop Offset= "1" ColOr= "#ffff0000" />< /LinearGradientBrush.GradientStops>< LinearGradientBrush.Transform>< MatrIxTransform Matrix= "1.000000,0.000000, -0.000000, -1.000000, -18.876953672.458496" />< /LinearGradientBrush.Transform>< /LinearGradientBRush>< /Path.Fill>< /Path>< Path Data= "M 51.203125309.556152 C 55.011230310.809082 58.819336312.063965 62.627930313.31"7871 C 66.905273314.726074 66.626465313.546387 69.429199309.901855 C 65.666504308.647949 61.90389307.394043 58.141113306.140137 C 53.880371304.720215 54.088867305.983887 51.203125309.556152 ">< Path.Fill>< LinearGradientBrush MappingMode= "Absolute" StartPoint= "82.501953356.998047" EndPoint= "75.260674369.540314" >< LinearGradientBrush.GradientStops>< GradieNtStop Offset= "0" Color= "#ffff0000" />< GradientStop OfFset= "0.490000" Color= "#ffffff00" />< GradientStop Offset= "100000 "Color=" #ffff0000 "/>";< /LinearGradientBrush.GradientStops>< LinearGradientBrush.Transform>< MatrixTransform Matrix= "1.000000,0.000000, -0.000000, -1.000000, -18.876953672.458496" />< /LinearGradientBrush.Transform>< /LineaRGradientBrush>< /Path.Fill>< /Path>< Path Data= "M 134.868164338.195801 C 183.204590354.125488 233.538574338.587402 275.982422313.548340 C 270.608887311.756348 263.787109307.317871 258.671387310.258301 C 253.170898,313.421387 247.625488316.444824 241.950684319.282715 C 230.617676324.949707 218.514648330.061035206.238770333.290527 C 182.321289339.582520 159.391113340.849121 134.868164338.195801 ">< Path.Fill>< LinearGradientBrush MappingMode= "AbsOlute "StartPoint=" 247.446289306.500000 "EndPoint=" 201.608322385.893677 ">";< LinearGradientBrush.GradientStops>< GradientStopOffset= "0" Color= "#ffff0000" />< GradientStop Offset= "0.490000 "Color=" #ffffff00 "/>";< GradientStop Offset= "1"Color= "#ffff0000" />< /LinearGradientBrush.GradientStops>< LinearGradientBrush.Transform>< MAtrixTransform Matrix= "1.000000,0.000000, -0.000000, -1.000000, -18.876953672.458496" />< /LinearGradientBrush.Transform>< /LinearGradieNtBrush>< /Path.Fill>< /Path>< Path Data= "M 291.430664340.104980 C 293.499023340.794434 304.996094345.971191 306.219727, 344.759277 C 310.483398340.528809 314.748047336.299316 319.011719332.069824 C 328.853516322.309082 338.696289312.546387 348.538086302.785645 C 346.433594302.092285 334.815430296.897949 333.569336298.139160 C 329.583008302.108887 325.595703306.079590 321.609375310.050293 C 311.549805320.068848 301.490234330.086426 291.430664340.104980 ">< Path.Fill>< LinearGradientBrush MappingMode= "Absolute" StartPoint= "355.064453322.94824"2 "EndPoint=" 323.977844376.791809 ">";< LinearGradientBrush.GradienTStops>< GradientStop Offset= "0" Color= "#ffff0000" />< GradientStop Offset= "0.490000" Color= "#ffffff00" />< GradientStop Offset= "1" Color= "#ffff0000" />< /LinearGradientBrush.GradientStops>< LinearGradiEntBrush.Transform>< MatrixTransform Matrix= "1.000000,0.000000, -0.000000, -1.000000, -18.876953672.458496 "/>";< /LinearGradientBRush.Transform>< /LinearGradientBrush>< /PAth.Fill>< /Path>< Path Data= "M 333.784180297.925293 C 338.702148299.545410 343.620117301.165527 348.538086302.785645 C 340.909180294.985840 333.280273287.186035 325.651367279.385254 C 323.249023276.929688 320.592773273.006836 317.640625,271.195801 C 313.574219268.701172 307.439453267.835938 302.886719266.336426 C 313.185547276.866211323.485352287.395020 333.784180297.925293 ">< Path.Fill>< LinearGradientBrush MappingMode= "Absolute" StartPoint= "357.218750366.021484" EndPOint= "332.780609408.349609" >< LinearGradientBrush.GradientStops≫< GradientStop Offset= "0" Color= "#ffff0000" />< GradientStop Offset= "0.490000" Color= "#ffffff00" />< GradientStop Offset= "1" Color= "#ffff0000" />< /LinearGradientBrush.GradientStops>< LinearGradientBrusH.Transform>< MatrixTransform Matrix= "1.000000,0.000000, -0.000000, -1.000000, -18.876953672.458496 "/>";< /LinearGradientBrush.TrAnsform>< /LinearGradientBrush>< /Path.FilL>< /Path>< Path Data= "M 302.886719266.336426 C"307.721680267.928711 312.556641269.521484 317.392578271.113770 C 318.318359271.418945 324.430664, 260.056641 325.278320258.525391 C 329.754883250.432129 334.141602241.643066 337.181641232.893066 C 344.016602213.214355 347.890625193.997070 348.501953173.138184 C 349.604492135.537109 333.109375,94.943848 308.563477,66.888184 C 288.424805,43.868652 265.074219,25.655273 235.889160,16.041504C 270.529297,34.649414 303.173828,63.586426 318.630859100.689453 C 334.457031138.677246 337.265625175.669434 326.744141215.532715 C 321.926758233.782227 312.545898250.310547 302.886719266.336426 ">< Path.Fill>< LinearGradientBrush MappIngMode= "Absolute" StartPoint= "374.715820421.998047" EndPoint= "250.000259638.011719" >< LinearGradientBrush.GradientStops>< GRadientStop Offset= "0" Color= "#ffff0000" />< GradientStOP Offset= "0.490000" Color= "#ffffff00" />< GradientStop Offset= "1" Color= "#ffff0000" />< /LinearGradientBrush.GradientStoPs>< LinearGradientBrush.Transform>< MatrixTransform Matrix= "1.000000,0.000000, -0.000000, -1.000000, -18.876953672.458496" />< /LinearGradientBrush.Transform>< /LinearGradientBrush>< /Path.Fill>< /Path>< /Canvas>< Path Data= "M 166.979980,0.072754 C 253.418945,33.397949 305.490234138.584961 260.534180223.114746 L 151.009277111.680664 L 193.362305,69.327637 L 166.979980,42.424316 C 152.746582,56.831055 129.834961,59.435059 113.863770,53.185547 L 30.895020138.584961 L 78.629883186.317383 L 109.527344153.859863 L 219.052246265.467773 C 165.068359296.017090 90.951660286.121582 36.276855228.496582 L 10.586914255.572266 C 17.704102266.336426 24.820801276.229004 32.632324285.254395 C 32.632324286.121582 30.028320288.032715 30.028320288.032715 C 28.291016288.032715 26.558594286.989746 25.687500286.989746 C 11.456055286.989746 0.000000299.663574 0.000000314.066895 C 0.000000328.474121 11.456055340.104980 25.687500340.104980 C 39.747070,340.104980 52.073730328.474121 52.073730314.066895 C 52.073730312.158691 51.203125310.422363 51.203125309.556152 L 54.849609305.043457 C 118.379395348.262207 187.287598353.642090 261.404785308.687012 L 291.430664340.104980 L 333.784180297.925293 L 302.886719266.336426 C 391.236328130.599121272.860840, -3.573242 166.979980,0.072754 Z ">< Path.Fill>< LinearGradientBrush MappingMode= "Absolute" StartPoint= "277.862305289.525391" EndPoint= "4"7.058170689.289795 ">< LinearGradientBrush.GradientStops>< GradientStop Offset= "0" Color= "#ffff0000" />< GradientStop Offset= "0.490000" Color= "#ffffff00" />< GRadientStop Offset= "1" Color= "#ffff0000" />< /LinearGradientBruSh.GradientStops>< LinearGradientBrush.Transform>< MatrixTransform Matrix= "1.000000,0.000000, -0.000000, -1.000000, -18.876953672.458496"/>< /LinearGradientBrush.Transform>< /LiNearGradientBrush>< /Path.Fill>< /Path>< Path Fill= "#ffea3c00" Data= "M 166.979980,0.072754 C 253.418945,33.397949 305.490234138.584961"260.534180223.114746 L 151.009277111.680664 L 193.362305,69.327637 L 166.979980,42.424316 C 152.746582,56.831055 129.834961,59.435059 113.863770,53.185547 L 30.895020138.584961 L 78.629883186.317383 L 109.527344153.859863 L 219.052246265.467773 C 165.068359296.017090 90.951660286.121582 36.276855228.496582 L 10.586914255.572266 C 17.704102266.336426 24.820801276.229004 32.632324285.254395 C 32.632324286.121582 30.028320288.032715 30.028320288.032715 C 28.291016288.032715 26.558594286.989746 25.687500286.989746 C 11.456055286.989746 0.000000299.663574 0.000000314.066895 C0.000000328.474121 11.456055340.104980 25.687500340.104980 C 39.747070340.104980 52.073730328.474121 52.073730314.066895 C 52.073730312.158691 51.203125310.422363 51.203125309.556152 L 54.849609305.043457 C 118.379395348.262207 187.287598353.642090 261.404785308.687012 L 291.430664340.104980 L 333.784180297.925293 L 302.886719266.336426 C 391.236328130.599121 272.860840, -3.573242166.979980,0.072754 Z "/>< /Canvas>< /Viewbox>< /Window>

Design sketch:

Two, three dimensional Party emblem.

Code:

<Window x:Class="WpfMaking party flag.MainWindow "Xmlns= "http://schemas.microsoft.com/winfx/2006/xaml/presentation"Xmlns:x= "http://schemas.microsoft.com/winfx/2006/xaml"Title= "MainWindow" Height= "350" WidTh= "525" >< Viewbox Width= "578.947266" Height= "348.085449".Xmlns= "http://schEmas.microsoft.com/winfx/2006/xaml/presentation "Xmlns:x= "http://schemas.microsoft.com/winFx/2006/xaml ">< Canvas Width= "578.947266" Height= "348.085449" >< PaTh Fill= "#ffff0000" Data= "M 0.000000348.085449 L 578.947266348.085449 L 578.947266,0.000000 L 0"00000,0.000000 L 0.000000348.085449 Z "/>< Path Fill= "#ffffff00" Data= "M 130.505"371,30.992188 C 172.251465,47.226563 197.551758,98.037109 175.624023138.939453 L 122.915527,84.966309 L 143.366699,64.515137 L 130.505371,51.444336 C 123.759277,58.401367 112.585449,59.666016 104.994629,56.714355 L 64.726074,98.037109 L 87.916992121.018555 L 102.675293105.416504 L 155.595703159.390137 C 129.663086174.146973 93.820801169.297363 67.256348141.469238 L 55.027344154.541504 C 58.401367159.812012 61.774414164.450195 65.569336168.876953 C 65.569336169.297363 64.304199170.143555 64.304199170.143555 C 63.460449170.143555 62.618164169.720215 62.196289169.720215 C 55.448730169.720215 49.966797175.833984 49.966797182.794434 C 49.966797189.749023 55.448730195.44238362.196289195.442383 C 69.154297195.442383 75.057129189.749023 75.057129182.794434 C 75.057129,181.947754 74.635254181.107422 74.635254180.684082 L 76.321289178.365234 C 107.103516199.237305 140.203613201.977051 176.045898180.052246 L 190.592773195.442383 L 211.044434174.993652 L 196.286133159.812012 C 238.874512,94.032227 181.737793,29.306641 130.505371,30.992188 Z "/>";</Canvas>< /Viewbox>< /Window>

Design sketch:

Leave a Reply

Your email address will not be published. Required fields are marked *