问题
Ok. I know wpf and am learning programming windows runtime via c# and xaml. Both use xaml that have the same namespace. Win rt is new and has the same namespace declared at the root element.
What are the similarities and differences.
回答1:
Here are some of the differences between WPF and WinRT:
Different XML namespace declaration in XAML code (Instead of using a clr-namespace:/assembly= qualifier set for code-to-XAML namespace references, you use the using: qualifier. XAML namespaces no longer reference specific assemblies)
Missing Expression SDK in WPF
Missing Property-/DataTriggers in WPF
Reduced BindingMode enum
Missing Multi/Priority Binding in WPF
Missing RoutedCommands in WPF
Missing InputBindings in WPF
DependencyProperty value calculation goes without coercion and validation
There are lot more differences. You can check this link to know further.
来源:https://stackoverflow.com/questions/28675287/programming-wpf-xaml-vs-windows-rt-with-c-sharp-and-xaml