no problems...">All geek questions in one placeDeclare TargetType Type for NestedClass in WPFI have a class MyClass.I announce<Style TargetType="local:MyClass"></Style> no problems.I have a class MyClass.MyNestedClass(public).Announcing ...?+3.net styles a wpf the xaml TargetTypeserhio Nov 25 '10 at 13:23source share2 answersYou need to use a + to separate the outer class name from the nested class name:<Style TargetType="local:MyClass+MyNestedClass"></Style> +7Quartermeister Nov 25 '10 at 13:30source shareYou cannot declare nested classes in XAML (afaik), as this interferes with the Xaml parsing logic, which assumes dot notation represents a property0Dean chalk Nov 25 '10 at 13:28source shareSource: https://habr.com/ru/post/1776890/More articles:Should I store PHP5 objects in a session for SPEED and why? - phpWizard component, library or application for Java SE - javaNewbie: how to use Pantheios magazine API library as a replacement for #ifdef DEBUG? How to determine SEVLEVEL? - c ++https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1776888/what-are-the-possible-ways-to-using-c-code-in-c&usg=ALkJrhjUul1TDlkoj5mXacEjmYky4jzRkwHow to get the current application path in MFC (VC ++)? - visual-c ++unordered_set TCHAR * requirements? - c ++How to load CLR into process - .netHow to exclude svn metadata when synchronizing with unison? - synchronizationJQuery getting ul based on matching in child text inside anchor inside with variable cost - jqueryPython, как настроить крючки для отслеживания событий ввода-вывода - pythonAll Articles
I have a class MyClass.I announce
MyClass
<Style TargetType="local:MyClass"></Style>
no problems.
I have a class MyClass.MyNestedClass(public).
MyClass.MyNestedClass
Announcing ...?
You need to use a + to separate the outer class name from the nested class name:
<Style TargetType="local:MyClass+MyNestedClass"></Style>
You cannot declare nested classes in XAML (afaik), as this interferes with the Xaml parsing logic, which assumes dot notation represents a property
Source: https://habr.com/ru/post/1776890/More articles:Should I store PHP5 objects in a session for SPEED and why? - phpWizard component, library or application for Java SE - javaNewbie: how to use Pantheios magazine API library as a replacement for #ifdef DEBUG? How to determine SEVLEVEL? - c ++https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1776888/what-are-the-possible-ways-to-using-c-code-in-c&usg=ALkJrhjUul1TDlkoj5mXacEjmYky4jzRkwHow to get the current application path in MFC (VC ++)? - visual-c ++unordered_set TCHAR * requirements? - c ++How to load CLR into process - .netHow to exclude svn metadata when synchronizing with unison? - synchronizationJQuery getting ul based on matching in child text inside anchor inside with variable cost - jqueryPython, как настроить крючки для отслеживания событий ввода-вывода - pythonAll Articles