Grid から継承したコントロールがあります
<Grid x:Class="User_Controls.CustomGrid"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d" x:Name="LayoutRoot"
>
<TextBlock>Test</TextBlock>
</Grid>
現時点では、背後にあるコードは空白です
public partial class CustomGrid : Grid
{
public CustomGrid(){}
}
ページ上の別のグリッド内に CustomGrid のインスタンスがあります。
<Grid Grid.Column="4" Grid.Row="2" Style="{StaticResource MenuItemStyle}">
<src:LiveTile x:Name="liveTile1" />
</Grid>
プロジェクトを実行すると、テキスト フィールドの値が表示されません。親グリッドからコントロールを取り出し、フォントと垂直/水平方向の配置をいじってみました。
値が表示されない理由は何ですか?