WildGums / Orc.Theming

Theming library for all WildGums libraries
Other
4 stars 4 forks source link

Missing template part for Orc.Controls.DropDownButton (ShouldCreateStyleForwarders=false) #118

Open lipchev opened 3 years ago

lipchev commented 3 years ago

Please check all of the platforms you are having the issue on (if platform is not listed, it is not supported)

Component

Orc.Theming (4.0.2) / Orc.Controls.DropDownButton (4.0.8)

Version of Library

Orchestra.Examples.MahApps (6.0.4)

Version of OS(s) listed above with issue

Win 10, .net core 3.1

Steps to Reproduce

  1. Open the MahApps.Shell example from the Orchestra package
  2. Skip the call to StyleHelper.CreateStyleForwardersForDefaultStyles() by registering a NoForwardingThemingService (or simply commenting out this line)

Expected Behavior

(My guess): The application should start with the implicit styles for all Orc.Controls (or there is a ResourceDictionary that can be imported for those)

Actual Behavior

[ERROR] [Orc.Controls.DropDownButton] [1] Can't find template part 'PART_Arrow' Exception thrown: 'System.InvalidOperationException' in Orc.Controls.dll

I was able to fix the issue by manually setting the default style from Orc.Styles.DropDownButton

GeertvanHorrik commented 3 years ago

@ceo1647 what do you think?

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.