XAMLの覚書

またまたつまずいた

XAMLでCheckBoxを貼る。なぜか両方ともtrueが帰る

	if (CB_PathClose->IsChecked)
	{
		OutputDebugString(L"Checked\n");
	}
	else
	{
		OutputDebugString(L"UnChecked\n");
	}

こうする。無事に動く

	if (CB_PathClose->IsChecked->Value)
	{
		OutputDebugString(L"Checked\n");
	}
	else
	{
		OutputDebugString(L"UnChecked\n");
	}

Leave a Reply