we have two ways of coding. Which one is the better approach?
var visibility = Windows.UI.Xaml.Visibility.Collapsed;
or
using Windows.UI.Xaml;
var visibility = Visibility.Collapsed;
we have two ways of coding. Which one is the better approach?
var visibility = Windows.UI.Xaml.Visibility.Collapsed;
or
using Windows.UI.Xaml;
var visibility = Visibility.Collapsed;
No. It makes no difference1
The compiled code is the same. The using Directive merely instructs the compiler how to resolve the types used.
1 This is true of C#; WinRT or WPF or XAML does not change this.