0
我已經改名爲的InitializeComponent在這方面
OSCCellEdit.xaml-> OSCCell.xaml.cs
從
using System;
using Xamarin.Forms;
namespace MyApp
{
public partial class OSCCellEditor : ContentPage
{
public OSCCellEditor()
{
InitializeComponent();
}
到
using System;
using Xamarin.Forms;
namespace MyApp
{
public partial class OSCCellEdit : ContentPage
{
public OSCCellEdit()
{
InitializeComponent();
}
而且
不可用OSCCellEd it.xaml從
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="MyApp.OSCCellEditor" Title="{Binding Name}">
到
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="MyApp.OSCCellEdit" Title="{Binding Name}">
現在,編譯器告訴我: 「 'InitalizeComponent' 這個名字是不是在當前情況下可用」。
有人能告訴我爲什麼會發生這種情況,以及如何解決這個問題?
非常感謝。
是的,我做到了。事實證明,我必須在重命名對話框中激活「包含字符串」選項。 – tmighty