質問編集履歴
2
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
```
|
8
8
|
リソース "MaterialDesignFloatingActionMiniAccentButton" を解決できません。
|
9
9
|
```
|
10
|
-
とエラーが起きます。下のコードのように
|
10
|
+
とエラーが起きます。下のコードのようにStaticResourceの HeaderStylex:keyに定義されているような記述があるはずなのですが、元のサンプルコードを見渡しても全く記述されているところが見当たりません。
|
11
11
|
|
12
12
|
```
|
13
13
|
|
1
syuusei
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
NuGetからmaterialdesigncolorsとmaterialdesignthemesをインストールしました。
|
1
|
+
NuGetからmaterialdesigncolorsとmaterialdesignthemesをインストールしました。問題のコードは一番下に記述しています.
|
2
2
|
```
|
3
3
|
Style="{StaticResource MaterialDesignFloatingActionMiniAccentButton}"
|
4
4
|
MaterialDesignfloatingActionMiniAccentbutton
|
@@ -7,8 +7,30 @@
|
|
7
7
|
```
|
8
8
|
リソース "MaterialDesignFloatingActionMiniAccentButton" を解決できません。
|
9
9
|
```
|
10
|
+
とエラーが起きます。下のコードのようにx:keyに定義されているような記述があるはずなのですが、元のサンプルコードを見渡しても全く記述されているところが見当たりません。
|
11
|
+
|
10
|
-
|
12
|
+
```
|
13
|
+
|
14
|
+
<Window x:Class="WpfTutorialSamples.Styles.ExplicitStyleSample"
|
15
|
+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
16
|
+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
17
|
+
Title="ExplicitStyleSample" Height="150" Width="300">
|
18
|
+
<Window.Resources>
|
19
|
+
<Style x:Key="HeaderStyle" TargetType="TextBlock">
|
20
|
+
<Setter Property="Foreground" Value="Gray" />
|
21
|
+
<Setter Property="FontSize" Value="24" />
|
22
|
+
</Style>
|
23
|
+
</Window.Resources>
|
24
|
+
<StackPanel Margin="10">
|
25
|
+
<TextBlock>Header 1</TextBlock>
|
26
|
+
<TextBlock Style="{StaticResource HeaderStyle}">Header 2</TextBlock>
|
27
|
+
<TextBlock>Header 3</TextBlock>
|
28
|
+
</StackPanel>
|
29
|
+
</Window>
|
11
30
|
```
|
31
|
+
|
32
|
+
##問題のコード
|
33
|
+
```
|
12
34
|
<Grid>
|
13
35
|
<Grid.ColumnDefinitions>
|
14
36
|
<ColumnDefinition Width="200"/>
|