Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以将某些 CSS 类或 id 的颜色提取为 Xamarin 中的 UIColor。在我的 default.css 中,我会创建一个像这样的 id:
#colorid { color: #FFF; }
然后像这样访问颜色:
UIColor color = SomePixateClass.UIColorFromId("colorid");