Ghost1372

everything can be handy

Tools

We moved all namespaces into a single namespace. No matter which (WinUICommunity) library you use, the namespace is always as follows
For use in the Xaml:
xmlns:wuc="using:WinUICommunity"
For use in the Csharp:
using WinUICommunity;

Observable

inherited from INotifyPropertyChanged

1
2
3
4
5
6
7
8
9
public class ShellViewModel : Observable
{
private bool isBackEnabled;
public bool IsBackEnabled
{
get { return isBackEnabled; }
set { Set(ref isBackEnabled, value); }
}
}

Generic Comapre

Check if there is an specific item in the collection or not

1
2
3
4
5
6
var model = new Model
{
Id = 1,
Name = "Test"
};
var contain = DataList.Contains(model, new GenericCompare<Model>(x=>x.Id));
0%