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.v18.2.dll

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.

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();
        }
    }
}

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CustomResources property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also