Skip to main content

BaseSvgImageSourceExtension.UsePalette Property

Gets or sets whether the image uses the WpfSvgPalette.

Namespace: DevExpress.Xpf.Core

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

NuGet Package: DevExpress.Wpf.Core

Declaration

public bool UsePalette { get; set; }

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