Template not working

I receive this exception if I follow the guide (Styles and Templates in WPF Button control | Syncfusion):

System.Windows.Markup.XamlParseException HResult=0x80131501 Nachricht = Zeilennummer "80" und Zeilenposition "18" von "Beim Festlegen der Eigenschaft "System.Windows.Controls.Control.Template" wurde eine Ausnahme ausgelöst.". Quelle = PresentationFramework Stapelüberwachung: at System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri) at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri) at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri) at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream) at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator) at ***.Windows.Sim.OperationWindow.InitializeComponent() in ***\Windows\Sim\OperationWindow.xaml:line 1
Diese Ausnahme wurde ursprünglich von dieser Aufrufliste ausgelöst: [Externer Code]
Innere Ausnahme 1:InvalidOperationException: Nicht-NULL-Wert für "Property" erforderlich.


code:  <Application.Resources> <LinearGradientBrush x:Key="ButtonAdvInnerB - Pastebin.com


1 Reply

VR Vijayalakshmi Roopkumar Syncfusion Team August 9, 2021 12:49 PM UTC

Hi Sebastian 
  
Thank you for using Syncfusion Products. 
  
We have checked the reported behavior that on editing the style for the ButtonAdv using the Edit template option, it throws error. But we are unable to reproduce the exception you have faced.  We can able to run the sample after editing the template. Please find the sample for your reference. 
  
  
Kindly check the sample and let us know whether you face any exception with it. If you still facing the exception, then please let us know your currently using Syncfusion Product version details, it would be helpful for us to check and proceed on it further. 
  
Regards, 
Vijayalakshmi VR 


Loader.
Up arrow icon