0

GridView を拡張するクラスがあります。xaml ファイルで使用したい。名前空間MyApplicationがあるので、xamlに入れます

<Page
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:MyApplication"

ありがとうございます 使いたいです

<local:VariableGridView Grid.Column="1" x:Name="listView">

動作しますが、エラーが発生しました

Error   6   The name "VariableGridView" does not exist in the namespace "using:MyApplication".  

なぜこれが得られるのかわかりません。プロジェクトを数回再構築しましたが、それでもこれを取得します。

// 編集

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SignDictionary.Model;
using Windows.Foundation;
using Windows.UI;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Media;

namespace MyApplication
{
public class VariableGridView : GridView
4

1 に答える 1

0

usingステートメントを次のように変更してみましたか:

xmlns:local="clr-namespace:MyApplication"

それが、このコントロールが生きているように見える場所です。

于 2012-08-16T19:04:06.533 に答える