Skip to main content
A newer version of this page is available. .
Bar

BarItemLinkBase.CustomResources Property

Gets or sets custom resources for the current link. This is a dependency property.

Namespace: DevExpress.Xpf.Bars

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Core, DevExpress.Wpf.Core

Declaration

public ResourceDictionary CustomResources { get; set; }

Property Value

Type Description
ResourceDictionary

A ResourceDictionary object that contains custom resources for the current link.

Example

This example demonstrates how to change a BarItemLink’s appearance by customizing templates (available via the CustomResources property)

To learn more on how to implement similar functionality in Silverlight, refer to the T246660 example.

See also: T361488 - How to find and change an inner DevExpress control template.

View Example

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using DevExpress.Xpf.Core;

namespace CustomResources {
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : DXWindow {
        public MainWindow() {
            InitializeComponent();
        }
    }
}
See Also