-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue when having ContentControl as Content in ContentControl #47
Comments
Could you tell me what the issue is? If I paste your code snippet into the Perspex TestApplication, it runs as expected. |
I don't see the TreeView, if I remove the ContentControl and set it directly to Window Content it works. |
Hmm I'm not seeing that, but I did have some unpushed changes here locally. Could you try pulling from git and trying again. This is what I did to test:
I get this: |
Found the issue, I had custom control deriving from ContentControl as for IStyleable.StyleKey it was not founding the style key for my custom control, deriving from UserControl worked, would be fine to find style from base class if not found from current one. |
Ok, great - the problem with automatically using the style for a base class instead of the most derived class is that at the point of style binding it's not known whether a style will be found or not. There may be a better way around this, but at the moment indeed it's recommended to derive from Thanks for working through the problem, I know it's not easy when the project is in this early stage! |
Maybe the title can be missleading but there is an issue with template create when having something like this:
The text was updated successfully, but these errors were encountered: