我使用VS 2012和Blend的Windows 8.當我使用轉換器在我的Windows Phone和Silverlight應用程序時,我會點擊新的轉換,並從我的轉換器中選擇我的轉換器名單。現在我已經升級到VS 2012和Blend for Windows 8,我的自定義轉換器都沒有顯示出來。任何人都知道如何找到轉換器?IValueConverter不工作VS2012-混合贏得8
class Class1 : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
throw new NotImplementedException();
}
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
throw new NotImplementedException();
}
}
奇怪,他們工作我在WP8中。你確定你的項目中有一個對System.Windows.Data的引用嗎? – robertk
是的。它只是一個簡單的新項目wp8然後我添加一個轉換器,然後嘗試使用顯示所有綁定。我創造的東西都不會顯示出來。我知道它適用於Windows 8應用程序,但不適用於wp8 ... VS2012和Blend不會顯示它們。它只是奇怪。 –
你可以發佈多一點你的代碼嗎?例如,你的.xaml頁面? – robertk