ツールバーに配置されたチェックボックスが表示されない (.NET 4.0 Win 7.0 Aero)
Dim vLabel As New Label
vLabel.Content = "Tenant"
Dim TenantDP As New DockPanel
Dim TenantCB As New CheckBox
With TenantCB
.Content = vLabel
.Name = "WebsiteUser_TenantCB"
.ToolTip = "Check if the user is a tenant"
.VerticalAlignment = Windows.VerticalAlignment.Center
.HorizontalAlignment = Windows.HorizontalAlignment.Left
.Padding = New Thickness(5, 0, 0, 0)
.BorderBrush = New SolidColorBrush(Colors.Black)
.IsEnabled = True
End With
RegisterControl(Website_User_Grid, TenantCB, TenantCB.Name.ToString)
TenantDP.Children.Add(TenantCB)
vToolBar.Items.Add(TenantDP)
vToolBar.Items.Add(TS_Separator)
Border を使用して (マウスがその上に移動するまで) ボックスを表示することができます。
.BorderBrush = New SolidColorBrush(Colors.Black)
チェックではなく、実際のコントロールは正常に機能しますが、ユーザーはそれを見ることができません。何か案は?