Using WPF Path for ribbon:Button Image

Ribbon for WPF Forum

Posted 8 years ago by MCRXB
Version: 11.1.0541
Avatar
Is it possible to set the image of a ribbon button to a WPF path or other canvas element?

I can do it with a regular WPF button:

<Button>
  <Button.Content>
    <Polygon Points="100,0 75,75 100,100 125,75" Stroke="Black" StrokeThickness="2" Fill="Yellow"/>
  </Button.Content>
</Button>

Comments (1)

Posted 8 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Sorry but ribbon buttons are designed to support variant sizes, and thus have to specifically support images of certain sizes for their content, and text labels per the ribbon spec.

There are some styles included for native buttons though that you could use that make the native buttons look like ribbon buttons. Those may be of use to you.


Actipro Software Support

The latest build of this product (v2018.1 build 0675) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.