XAML projects (Silverlight / WPF) Images or converted XAML Paths -


My teammates and I are discussing the relative properties of changing the icons that our project uses in XML Blend has an "import" option, which we can use to project some image resources in the XAML path elements to automatically convert.

Assembly will remain small by putting an XAM on one hand. On the other hand there is a simplicity in having an image reference. Another logic that considers me to be defective (if I'm wrong, then correct me) is that we have given our XAML & quot; The path data = "vs

What are the other experiences and there is an approach that is definitely "right".

You can put your XML image in reprinted words and then reference them. It will produce assemblies that are small, you simply get the ease of adding a reference to the drawing and you get a completely "miniified" xml

in your project anywhere you have There is an iterative term in which the drawing is:

  & lt; DrawingImage x: key = "image1" & gt; & Lt; DrawingImage.Drawing & gt; & Lt; GeometryDrawing & gt; & Lt; GeometryDrawing.Gemometry & gt; & Lt; GeometryGroup & gt; & Lt; EllipseGeometry Center = "50,50" RadiusX = "45" RadiusY = "20" /> & Lt; EllipseGeometry Center = "50,50" RadiusX = "20" RadiusY = "45" /> & Lt; / GeometryGroup & gt; & Lt; /GeometryDrawing.Geometry> & Lt; GeometryDrawing.Brush & gt; & Lt; LinearGradientBrush & gt; & Lt; GradientStop Offset = "0.0" Color = "Blue" /> & Lt; GradientStop Offset = "1.0" Color = "#cccff" /> & Lt; / LinearGradientBrush & gt; & Lt; /GeometryDrawing.Brush> & Lt; GeometryDrawing.Pen & gt; & Lt; Pen thickness = "10" brush = "black" /> & Lt; /GeometryDrawing.Pen> & Lt; / GeometryDrawing & gt; & Lt; /DrawingImage.Drawing> & Lt; / DrawingImage & gt;  

It will not take much space that the bitmap you add to your assembly as a bitmap, depending on the size and complexity of the bitmap as a resource, is that you alone Xaml can save space by using

Then in your code you refer to this image, then you will re-enter your bitmap, there is no difference:

  & lt; Image Source = "{stataticResource image1}" />  

You can vector your bitmap automatically ("Object-> Image-> Autotre bitmap") and export them as XAM drawing. This will make DrawingBrush though. But you can safely change it with DrawingImage.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -