http://sourceforge.jp/projects/futonwriter/の旧リポジトリ
Revision | f94c73a7f05cb6e97ccde967c70c60c95e4761d2 (tree) |
---|---|
Zeit | 2011-05-12 16:57:06 |
Autor | azyobuzin <azyobuzin@user...> |
Commiter | azyobuzin |
ボタンにアイコンを付けてみた
@@ -112,6 +112,7 @@ | ||
112 | 112 | <AppDesigner Include="Properties\" /> |
113 | 113 | </ItemGroup> |
114 | 114 | <ItemGroup> |
115 | + <Resource Include="Images\Send Document.png" /> | |
115 | 116 | <Content Include="InfrastructureAssemblies\Design\Livet.Design.dll" /> |
116 | 117 | <Content Include="InfrastructureAssemblies\Design\Livet.Expression.Design.dll" /> |
117 | 118 | <Content Include="InfrastructureAssemblies\Livet.dll" /> |
@@ -27,7 +27,26 @@ | ||
27 | 27 | </Menu> |
28 | 28 | |
29 | 29 | <StackPanel Grid.Row="1" Orientation="Horizontal" Background="LightSteelBlue"> |
30 | - <Button Content="投稿" Width="50" Height="40"/> | |
30 | + <StackPanel.Resources> | |
31 | + <Style TargetType="Image"> | |
32 | + <Setter Property="HorizontalAlignment" Value="Center"/> | |
33 | + <Setter Property="Width" Value="32"/> | |
34 | + <Setter Property="Height" Value="32"/> | |
35 | + </Style> | |
36 | + <Style TargetType="TextBlock"> | |
37 | + <Setter Property="HorizontalAlignment" Value="Center"/> | |
38 | + </Style> | |
39 | + <Style TargetType="Button"> | |
40 | + <Setter Property="Width" Value="50"/> | |
41 | + </Style> | |
42 | + </StackPanel.Resources> | |
43 | + | |
44 | + <Button> | |
45 | + <StackPanel> | |
46 | + <Image Source="/HatenaDiaryClient;component/Images/Send%20Document.png" /> | |
47 | + <TextBlock Text="投稿"/> | |
48 | + </StackPanel> | |
49 | + </Button> | |
31 | 50 | </StackPanel> |
32 | 51 | |
33 | 52 | <Grid Grid.Row="2" Background="LightBlue"> |