Click here to Skip to main content
15,891,423 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to set border in xaml and want to use only style inwindows..
this is my code in app.XAML
but it is not working in window style property
also i use for grid..

XML
<Style x:Key="SetBorder">
         <Setter Property="C>
             <Setter.Value>
                 <C>
                     <Border  BorderBrush="#FF101010" BorderThickness="5" CornerRadius="60,0,60,0" Width="1002" Height="643">
                         <Border.Background>
                             <LinearGradientBrush EndPoint="1,1" StartPoint="0,0">
                                 <GradientStop Color="#FFFDE6FF" Offset="0" />
                                 <GradientStop Color="cyan" Offset="0.4" />
                                 <GradientStop Color="Gray" Offset="1" />
                             </LinearGradientBrush>
                         </Border.Background>
                     </Border>
                 </C>
             </Setter.Value>
         </Setter>
     </Style>
Posted
Comments
ashok rathod 6-Oct-14 5:31am    
what is C here ?
adityaswami89 10-Oct-14 4:25am    
Please refer this article :
http://stackoverflow.com/questions/431940/how-to-set-default-wpf-window-style-in-app-xaml

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900