2016-11-26 202 views
-1

C#XMAL WPFアプリケーションでマテリアルデザインを設定しようとしています。 私のプロジェクトに"Material Design In XAML"を追加したところ、次のエラーが発生しました:The property 'Content' can only be set onceマークアップの問題はどこですか?XAML:プロパティ "Content"は一度しか設定できません。すでに一度だけ設定されていますが

<Window x:Class="e621_fetch.MainWindow" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:local="clr-namespace:e621_fetch" 
    mc:Ignorable="d" 
    Title="MainWindow" Height="350" Width="525" 
    xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" 
    TextElement.Foreground="{DynamicResource MaterialDesignBody}" 
    TextElement.FontWeight="Regular" 
    TextElement.FontSize="13" 
    TextOptions.TextFormattingMode="Ideal" 
    TextOptions.TextRenderingMode="Auto" 
    Background="{DynamicResource MaterialDesignPaper}" 
    FontFamily="{DynamicResource MaterialDesignFont}"> 
<Grid> 
    <materialDesign:Card Padding="32" Margin="16"> //error on this line 
            
     <TextBlock Style="{DynamicResource MaterialDesignTitleTextBlock}">My First Material Design App</TextBlock> //error on this line 
          
    </materialDesign:Card> //error on this line 
</Grid> 

答えて

-1

すでに何のアイデアは、なぜdownvote

+0

...それが原因でタグの間に空白行であった、それを固定していない:私は下のエラーを与えるファイルを提供してきましたそれは問題を解決し、あなたが自分の質問に答えを与えた質問を投稿してから2分後にdownvotesが持っていたかもしれない – Grey

+0

が明らかであるようです。あなたはあなたがそれをstackoverflowに投稿する前にあなた自身で修正しようとしなかったように見えます。 – opelhatza

+1

質問を投稿した直後に私は実現しましたxD – Grey

関連する問題