xamarin/Xamarin.Forms
[Bug] Overriden resources from a control library are not resolved correctly
Open
#6,871 opened on Jul 14, 2019
a/binding ⛓a/stylee/6 :clock6:help wantedt/bug :bug:up-for-grabs
Repository metrics
- Stars
- (5,644 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
Description
Overriden resources from a control library are not resolved correctly.
Steps to Reproduce
- Create Xamarin.Forms iOS project
- Add a library L1 and link it to the two projects (main project and iOS project)
- Create resource R1 in the library and add new control/view ControlView with style S1 and resource with key K1.
- In app.xaml Resources add MergedDictionaries with reference to resource R1.
- In the app.xaml override the resource S1 with new resource S2 with resource key K1.
- Create a new ContentView control C1 in library L1 and set its style to StaticResource with key K1.
- In MainPage.xaml define two controls ContentView and C1 and set its styles to StaticResource with key K1.
Expected Behavior
MainPage should show the ContentView control with style S2 and C1 control with the style S2 (since S2 overrides S1).
Actual Behavior
MainPage shows the ContentView control with style S2 and C1 control with style S1.
Basic Information
- Version with issue: XamarinForms 4.1.0.581479
- Last known good version:
- IDE: Visual Stydio 2019 for Windows
- Affected Devices: iOS (I have not tested with other devices.)
Screenshots
Actual
Expected S2 S2