WPF button with image error
Posted: Thu Sep 14, 2017 7:24 am
Hi,
this code works correctly in C#, in X# not working. Error message in attachment
I use VS Community 2017 15.3.4
<Grid.Resources>
<ImageBrush x:Key="Klienti" ImageSource="Klienti.png" Stretch="UniformToFill"/>
</Grid.Resources>
<Button Name="PBKL" Content="Klienti" Width="100" Height="100" HorizontalAlignment="Left" Margin="50,172,0,0" VerticalAlignment="Top"
Background="{StaticResource Klienti}" VerticalContentAlignment="Bottom" HorizontalContentAlignment="Left" FontSize="16" FontWeight="Bold" Foreground="Blue">
</Button>
Juraj
this code works correctly in C#, in X# not working. Error message in attachment
I use VS Community 2017 15.3.4
<Grid.Resources>
<ImageBrush x:Key="Klienti" ImageSource="Klienti.png" Stretch="UniformToFill"/>
</Grid.Resources>
<Button Name="PBKL" Content="Klienti" Width="100" Height="100" HorizontalAlignment="Left" Margin="50,172,0,0" VerticalAlignment="Top"
Background="{StaticResource Klienti}" VerticalContentAlignment="Bottom" HorizontalContentAlignment="Left" FontSize="16" FontWeight="Bold" Foreground="Blue">
</Button>
Juraj