开发者

Do Metro controls reuse the same codepath at low level even if controls are created from HTML/JS or XAML?

开发者 https://www.devze.com 2023-04-10 14:18 出处:网络
Suppose I create two metro apps, one 开发者_运维知识库with an HTML view which has <input type=\"text\"/>

Suppose I create two metro apps,

one 开发者_运维知识库with an HTML view which has

<input type="text"/>

another with a XAML based view

<TextBox/>

Does the underylying implementation map to the same code to render both controls? Will they have 100% identical behaviour?


No. The Xaml rendering stack is separate from the HTML rendering stack. Now if you go low enough, they use the same code path - for instance both the HTML rendering stack and the Xaml rendering stack are rendered through the same display driver logic. But the core rendering is separate.

0

精彩评论

暂无评论...
验证码 换一张
取 消