In WPF we can able to get the style based on the target type, like below:
control.Style = (Style)toplevelcontrol.TryFindResource(typeof(control))
But in WinRT I can't do that. I can only use a key to get the resource. Is it possible to get the resource based on target type? Please help me to resolve this.
Thanks in advance
this also works so good like below,
if element dont have that key it search in its parent element