以下のコードを書いたらプロパティ要素ではプロパティを設定できませんといったエラーが出ました。自分自身なぜエラーが出るのかわかりません。教えていただけないでしょうか?
xaml
1<Page x:Class="Sample.Setting2" 2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 4 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 5 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 6 mc:Ignorable="d" 7 d:DesignHeight="700" d:DesignWidth="900" 8 Title="Setting2"> 9 10 <Grid> 11 //省略 12 <Grid Grid.Column="1" Grid.Row="1"> 13 //省略 14 <StackPanel Grid.Column="1"> 15 //コンボボックスのこの箇所のDropDownClosedでエラー 16 <ComboBox Grid.Row="6" Grid.Column="2" 17 x:Name="color1" Width="100" DropDownClosed="Selected_Color1"> 18 <ComboBox.ItemTemplate Value="{Binding RGB16}" > 19 <DataTemplate> 20 <StackPanel Orientation="Horizontal" > 21 <Label Content="{Binding Id}" /> 22 <Label Content="{Binding Name}" /> 23 </StackPanel> 24 </DataTemplate> 25 </ComboBox.ItemTemplate> 26 </ComboBox> 27 28 </StackPanel> 29 </Grid> 30 //省略 31 </Grid> 32</Page>
回答1件
あなたの回答
tips
プレビュー