Quantcast
Viewing all articles
Browse latest Browse all 18858

How can I add XAML stuff in my Styles.xaml?

Hi all of you,

My aim is using throught my WPF app the following code but first of all I would like to add in my styles files.

How can I do that?

Thanks in advance for your comments!!!

<Button Width="53" Height="30"  Content="Click Me" Margin="0,20"><Button.ToolTip><StackPanel  Height="200" Width="200"><StackPanel Background="#FF99B4D1" Height="30" Width="200" Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Top" ><Image VerticalAlignment="Top"  Width="30" Height="30" Source="/Imagenes/Git.jpg" Margin="4" Name="image1" /><TextBlock FontFamily="Trebuchet MS" FontSize="24" FontWeight="Bold" Foreground="Black" 
                                       TextWrapping="Wrap" VerticalAlignment="Top" Height="30"
                                       HorizontalAlignment="Right" Width="143"><Run FontFamily="Trebuchet MS  " FontSize="18" FontWeight="Normal" Text="Reparation Orders"/></TextBlock></StackPanel><StackPanel Width="200" Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Top" ><TextBlock TextWrapping="Wrap" Foreground="#FF99B4D1" TextAlignment="Center" Background="{x:Null}"
                                       HorizontalAlignment="Right" VerticalAlignment="Top" Width="181" Height="98"><Run FontFamily="Trebuchet MS" FontSize="12" FontWeight="Normal" Foreground="#FF99B4D1" 

            						Text="This option manages all the lifecyle for any Reparation Order."/></TextBlock></StackPanel></StackPanel></Button.ToolTip></Button>

When I try to put the code in my Styles.xaml it complains about  <Button.ToolTip>


Primary platform is Windows 7 Ultimate 64 bit along with VS 2012/Sql2k8 for WPF and SilverLight stuff


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>