I have been experimenting with creating reusable title and navigation components in my apps. I have the components working but find that when I open the app containing the components, some of the custom component properties are not being used. I have several properties for each component, controlling things like text sizes and colours. When my app opens up some of the text sizes are incorrect and seem to be those stored as defaults in the component and not those shown in the app component's properties. If I overwrite the app component's property values the app will then display correctly, but the values are ignored again when the app is saved and reopened.
Is there anything I need to do to get the app to read its custom values at start-up?
@CNT - thanks for the quick response. I've attached two screenshots of the component (TitleBar) properties and a screenshot of the same component in an app (TitleBar_1). The custom properties that seem to revert to the default component values are TitleTextSize and TitleIconSize. The other properties seem to retain their app values (though the Color values are the same in the component as the app).
@biterbit What are the controls inside the component? Is the TitleTextSize and TitleIconSize Input property values applied to these controls?
@CNT - Yes I have two components: one to display a title bar and menu icon and one to display the menu when the icon is clicked. I separated the two parts to avoid issues with the component being in front of other controls. The title bar component works as expected, but the menu component seems to be erratic in its reading of the custom properties controlling the text and icon size. When the menu is first displayed it seems to use the size parameters from the component's default values. After that it correctly picks up the size parameters from the custom input properties. I've attached two screenshots to illustrate what I see when the app is launched and then when the menu has been used once.
@CNT I have added the same components to a fresh app to ensure the anomaly I am seeing is not app-specific. I have added the two components to a new screen, configured all the input parameters, and then copied the configured components to two additional screens in the same app. When I navigate between the three screens the first screen displays the menu in the default text size stored in the component whereas the other two screens correctly show the menu in the text size configured in the component's input parameters. In the attached GIF you can see the effect: the first screen is named 'Counsellor Profile' and the other two screens are named 'Centre Profile and 'Service Profile'.
Is this a bug with the PowerApps component implementation?
Check out the News & Announcements to learn more.
Check out the new Power Platform Community Connections gallery!
Congratulations, the new Super User Season 2 for 2021 has started!
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.