简体   繁体   中英

Universal APP UserControl: Different XAML

Can I add another XAML File to a Windows Universal App UserControl? I want this because the Code is identically, but the structure of the view changes (Image Sizes, Textpositions, and so on)

You can inherit from a base usercontrol with your common functionality and provide a concrete usercontrol for each set of XAML. In the code behind of your XAML, you'll simply set the base class to your custom usercontrol.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM