We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Export as DrawingBrush

Thread ID:

Created:

Updated:

Platform:

Replies:

108277 Apr 11,2013 08:38 AM UTC Dec 11,2013 12:01 PM UTC Metro Studio 1
loading
Tags: Metro Studio
JMR
Asked On April 11, 2013 08:38 AM UTC

It would be useful to be able to export the xaml as DrawingBrush (for use in a ResourceDictionary).

Sample :

<DrawingBrush x:Key="PictoLock" Stretch="Uniform" PresentationOptions:Freeze="True">

  <DrawingBrush.Drawing>

    <DrawingGroup>

      <DrawingGroup.Children>

        <GeometryDrawing Brush="#FFFFFFFF" Geometry="F1 M 8.33,3.38L 7.43,1.96C 7.07,1.40 6.32,1.23 5.76,1.59L 4.15,2.62C 3.59,2.97 3.42,3.72 3.78,4.28L 5.16,6.22"/>

        <GeometryDrawing Brush="#FFFFFFFF" Geometry="F1 M 3.07,5.75L 9.92,5.75L 9.92,11.20L 3.07,11.20L 3.07,5.75 Z "/>

        <GeometryDrawing Brush="#00FFFFFF" Geometry="F1 M 0,0L 13,0L 13,13L 0,13L 0,0 Z "/>

      </DrawingGroup.Children>

    </DrawingGroup>

  </DrawingBrush.Drawing>

</DrawingBrush>

Use :

<Rectangle Fill="{StaticResource PictoLock}"/>

 

 

 

 

 


Shandhanu B [Syncfusion]
Replied On December 11, 2013 12:01 PM UTC

Hi,

Thank you for contacting us regarding Metro Studio.
The feedback that you have provided has been added to our internal feature/incident management system.
The Metro Studio team is constantly reviewing feedback and initiating action as required and will be acting upon your feedback also.

We are closing this incident now. Please feel free to contact us with any other feedback/questions.

Regards
Shandhanu B

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;