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.1.dll

Declaration

public ResourceDictionary CustomResources { get; set; }
Public Property CustomResources As ResourceDictionary

Property Value

Type Description
ResourceDictionary

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

Examples

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