All docs
V20.1
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

BaseSvgImageSourceExtension.UsePalette Property

Gets or sets whether the image uses the WpfSvgPalette.

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v20.1.dll

Declaration

public bool UsePalette { get; set; }
Public Property UsePalette As Boolean

Property Value

Type Default Description
Boolean

true

true, when the image uses the WpfSvgPalette; otherwise false.

Remarks

The following code sample displays two svg images. The first image gets its colors from the application theme ("Office2019Black"). The second image's UsePalette property is set to false to ignore the theme type palette theme:

<dx:ThemedWindow ...
  xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
  dx:ThemeManager.ThemeName="Office2019Black"> 
  <StackPanel>
    <dx:DXImage Source="{dx:SvgImageSource Uri='pack://application:,,,/DevExpress.Images.v20.1;component/SvgImages/Outlook Inspired/CustomerProfileReport.svg'}"/>
    <dx:DXImage Source="{dx:SvgImageSource Uri='pack://application:,,,/DevExpress.Images.v20.1;component/SvgImages/Outlook Inspired/CustomerProfileReport.svg', UsePalette = false}"/>
  </StackPanel>
</dx:ThemedWindow>

BaseSvgImageSourceExtension - UsePalette property

See Also