こんにちは。
Windows10でWPFのアプリケーションを開発しています。
Visual Studio 2015 Communityを使っています。
###前提・実現したいこと
Polygonを描画したいです。
Polygonにフォーカスすると見えるのですが、フォーカスがないと透明になっていて見えません。
###発生している問題・エラーメッセージ
Polygonが見えない。
###該当のソースコード
xaml
1<UserControl x:Class="UserControls.MyUserControl" 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 xmlns:local="clr-namespace:UserControls.MyUserControl" 7 mc:Ignorable="d" 8 d:DesignHeight="100" d:DesignWidth="400"> 9 <Grid> 10 <Grid.RowDefinitions> 11 <RowDefinition Height="80*"/> 12 <RowDefinition Height="20*"/> 13 </Grid.RowDefinitions> 14 <Grid.ColumnDefinitions> 15 <ColumnDefinition Width="50*"/> 16 <ColumnDefinition Width="119*"/> 17 </Grid.ColumnDefinitions> 18 <Image Grid.Column="0" x:Name="image" Grid.Row="0" 19 Source="Image.png"/> 20 <TextBox Grid.Column="1" x:Name="text" Grid.Row="0">text</TextBox> 21 <Polygon Grid.Row="1" Points="200 5,300 5, 250 15" Stroke="Blue" Fill="Blue" /> 22 </Grid> 23</UserControl> 24
###補足情報(言語/FW/ツール等のバージョンなど)
Microsoft Visual Studio Community 2015
Version 14.0.25424.00 Update 3
Microsoft .NET Framework
Version 4.6.01038
インストールしているバージョン:Community
Visual C# 2015 00322-20000-00000-AA575
Microsoft Visual C# 2015
です。
よろしくお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/01/13 09:04