PhilipRieck / WpfAppBar

WPF AppBar helper
133 stars 48 forks source link

strange error #34

Closed SvilenStoianov closed 5 years ago

SvilenStoianov commented 5 years ago

I was try your helper class with some very basic empty project:

private void Form1_Shown(object sender, EventArgs e){ AppBarFunctions.SetAppBar(this, ABEdge.Right); } and I've got that error: Error CS1503 Argument 1: cannot convert from 'Solution1.Form1' to 'System.Windows.Window'

I really can not understand where is the problem :( Why i can not use 'this' as argument here?

SvilenStoianov commented 5 years ago

sorry. i've used a wpf version on windows form project. Silly me