Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to: Use Styles to Customize the Appearance of Groups and Items in NavBarControl

$
0
0

This example demonstrates how the appearance of groups and items can be customized at different levels within the NavBarControl by using specific style properties. To learn more about appearance customization, please refer to Styling View Content Elements.

Question Comments

Added By: Ueli Hilfiker at: 9/9/2015 8:17:04 AM    

It doesn't work at design time with VS2015 and DevExpress v15.1?

Error-message:
ArgumentException: "NavBarLayoutSettingsExtension" ist für "Setter.Value" nicht gültig. Unterstützt werden nur die MarkupExtension-Typen "DynamicResourceExtension" und "BindingBase" oder abgeleitete Typen.

translated to English:
ArgumentException: "NavBarLayoutSettingsExtension" is not valid for "Setter.Value". The only supported MarkupExtension types are "DynamicResourceExtension" and "BindingBase" or derived types.

Stacktrace:
  bei System.Windows.Setter.Seal()
  bei System.Windows.SetterBaseCollection.Seal()
  bei System.Windows.Style.Seal()
  bei System.Windows.StyleHelper.UpdateStyleCache(FrameworkElement fe, FrameworkContentElement fce, Style oldStyle, Style newStyle, Style& styleCache)
  bei System.Windows.FrameworkElement.OnStyleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
  bei System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
  bei System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
  bei System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
  bei System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
  bei System.Windows.StyleHelper.ApplyTemplatedParentValue(DependencyObject container, FrameworkObject child, Int32 childIndex, FrugalStructList`1& childRecordFromChildIndex, DependencyProperty dp, FrameworkElementFactory templateRoot)
  bei System.Windows.StyleHelper.InvalidatePropertiesOnTemplateNode(DependencyObject container, FrameworkObject child, Int32 childIndex, FrugalStructList`1& childRecordFromChildIndex, Boolean isDetach, FrameworkElementFactory templateRoot)
  bei System.Windows.FrameworkTemplate.InvalidatePropertiesOnTemplate(DependencyObject container, Object currentObject)
  bei System.Windows.FrameworkTemplate.HandleBeforeProperties(Object createdObject, DependencyObject& rootObject, DependencyObject container, FrameworkElement feContainer, INameScope nameScope)
  bei System.Windows.FrameworkTemplate.<>c__DisplayClass0.<LoadOptimizedTemplateContent>b__5(Object sender, XamlObjectEventArgs args)
  bei System.Xaml.XamlObjectWriter.OnBeforeProperties(Object value)
  bei System.Xaml.XamlObjectWriter.Logic_CreateAndAssignToParentStart(ObjectWriterContext ctx)
  bei System.Xaml.XamlObjectWriter.WriteStartMember(XamlMember property)
  bei System.Xaml.XamlWriter.WriteNode(XamlReader reader)
  bei System.Windows.FrameworkTemplate.LoadTemplateXaml(XamlReader templateReader, XamlObjectWriter currentWriter)

Added By: Andrey K (DevExpress Support) at: 9/10/2015 4:58:02 AM    Hi,

I have created a separate ticket on your behalf in order to provide quicker and more efficient responses. We will answer you here: T288445: dxn:NavBarViewBase.LayoutSettings attached property doesn't work

Thanks,
Andrey


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>