Click here to Skip to main content
15,888,733 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Popup window in silverlight Pin
Braulio Dez1-Apr-09 6:02
Braulio Dez1-Apr-09 6:02 
QuestionWPF Weird behavior or me? [modified] Pin
Mike Hankey15-Mar-09 13:07
mveMike Hankey15-Mar-09 13:07 
Hey y'all has anyone else run across this problem? and if so is there a work around?

I have a ResourceDictioinary where I have a linear brush declared;


<LinearGradientBrush x:Key="BlueLinearBrush" EndPoint="0.5,1" StartPoint="0.5,0">
    <gradientstop color="PowderBlue" offset="0" />
     <gradientstop color="SteelBlue" offset="1" />
</LinearGradientBrush>

and a style that uses the Brush
<style x:key="CustomBorderStyle" targettype="{x:Type Border}">
    <setter property="Background" value="{StaticResource BlueLinearBrush}" />
   .....
</style>


In my App.xaml file I have cone the MergeDictioinaires

then in my code I use it:
.....
 <border horizontalalignment="Stretch">Style="{StaticResource CustomBorderStyle}">
     <textblock text="{Binding Path=Name}" horizontalalignment="Center" fontweight="Bold" />
 </border>
.....


but it gives me problems here?

I've googled and the examples I've found say this is legal as seen here[^]. The app runs fine but its annoying because I can't see the design or look at properties because of the error.

WTF?
Mike

"It doesn't matter how big a ranch ya' own, or how many cows ya' brand, the size of your funeral is still gonna depend on the weather." -Harry Truman.


Semper Fi
http://www.hq4thmarinescomm.com[^]
My Site


modified on Sunday, March 15, 2009 8:26 PM

AnswerRe: WPF Weird behavior or me? Pin
Mark Salsbery15-Mar-09 18:45
Mark Salsbery15-Mar-09 18:45 
GeneralRe: WPF Weird behavior or me? Pin
Mike Hankey16-Mar-09 1:48
mveMike Hankey16-Mar-09 1:48 
AnswerRe: WPF Weird behavior or me? [modified] Pin
Pete O'Hanlon15-Mar-09 22:44
mvePete O'Hanlon15-Mar-09 22:44 
GeneralRe: WPF Weird behavior or me? Pin
Mike Hankey16-Mar-09 1:47
mveMike Hankey16-Mar-09 1:47 
GeneralRe: WPF Weird behavior or me? Pin
Mark Salsbery16-Mar-09 5:38
Mark Salsbery16-Mar-09 5:38 
GeneralRe: WPF Weird behavior or me? Pin
Mike Hankey16-Mar-09 10:41
mveMike Hankey16-Mar-09 10:41 
GeneralRe: WPF Weird behavior or me? Pin
Pete O'Hanlon16-Mar-09 11:21
mvePete O'Hanlon16-Mar-09 11:21 
GeneralRe: WPF Weird behavior or me? Pin
Mike Hankey16-Mar-09 11:46
mveMike Hankey16-Mar-09 11:46 
GeneralRe: WPF Weird behavior or me? Pin
Mark Salsbery16-Mar-09 12:31
Mark Salsbery16-Mar-09 12:31 
GeneralRe: WPF Weird behavior or me? Pin
Mike Hankey16-Mar-09 12:45
mveMike Hankey16-Mar-09 12:45 
GeneralRe: WPF Weird behavior or me? Pin
Pete O'Hanlon16-Mar-09 22:57
mvePete O'Hanlon16-Mar-09 22:57 
GeneralRe: WPF Weird behavior or me? Pin
Mike Hankey17-Mar-09 3:34
mveMike Hankey17-Mar-09 3:34 
GeneralRe: WPF Weird behavior or me? Pin
Pete O'Hanlon17-Mar-09 3:50
mvePete O'Hanlon17-Mar-09 3:50 
AnswerRe: WPF Weird behavior or me? Pin
zameb30-Aug-10 23:04
zameb30-Aug-10 23:04 
QuestionVS2008 SP1 Crashes working with XAML - MS Hotfix Released! Pin
Jammer14-Mar-09 23:40
Jammer14-Mar-09 23:40 
AnswerRe: VS2008 SP1 Crashes working with XAML - MS Hotfix Released! Pin
Mark Salsbery15-Mar-09 7:32
Mark Salsbery15-Mar-09 7:32 
GeneralRe: VS2008 SP1 Crashes working with XAML - MS Hotfix Released! Pin
Jammer15-Mar-09 23:05
Jammer15-Mar-09 23:05 
GeneralRe: VS2008 SP1 Crashes working with XAML - MS Hotfix Released! Pin
Mark Salsbery16-Mar-09 5:30
Mark Salsbery16-Mar-09 5:30 
GeneralRe: VS2008 SP1 Crashes working with XAML - MS Hotfix Released! Pin
Jammer16-Mar-09 8:47
Jammer16-Mar-09 8:47 
QuestionBinding a DataSet to a ListBox in a WPF XBAP application Pin
Neeraj Kr14-Mar-09 1:29
Neeraj Kr14-Mar-09 1:29 
AnswerRe: Binding a DataSet to a ListBox in a WPF XBAP application Pin
ABitSmart14-Mar-09 1:46
ABitSmart14-Mar-09 1:46 
GeneralRe: Binding a DataSet to a ListBox in a WPF XBAP application Pin
Neeraj Kr14-Mar-09 2:25
Neeraj Kr14-Mar-09 2:25 
GeneralRe: Binding a DataSet to a ListBox in a WPF XBAP application Pin
ABitSmart14-Mar-09 3:15
ABitSmart14-Mar-09 3:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.