What if you just move the Binding from the Style and add it to the dynamically generated column, but you still use TemplateBinding to set the Background of the Border from the Background of the Column
On Sun, Nov 21, 2010 at 6:47 PM, Greg Keogh <[email protected]> wrote: > Hi Miguel, > > > > Sorry for the late reply as usual. Because the ItemsSource is dynamic and > the columns are dynamically created, I can’t code the Binding into the XAML. > The source property with the value I want to convert into a background > colour has different names at different times. > > > > To get around this dynamic creation problem I tried binding to a well-known > property such as *Content* and then tried to navigate around to find the > underlying column value I want, but it hasn’t worked so far. > > > > I think that I will have to dynamically create the whole Template in code > and apply it to the dynamically created columns. Technically I’m sure this > will work, but it’s fiddly and I’ve not seen anyone bother to do it before. > What the hell, I’ll give it a go, it can’t get much worse. > > > > Greg > > _______________________________________________ > ozwpf mailing list > [email protected] > http://prdlxvm0001.codify.net/mailman/listinfo/ozwpf > > -- Miguel A. Madero Reyes www.miguelmadero.com (blog) [email protected]
_______________________________________________ ozwpf mailing list [email protected] http://prdlxvm0001.codify.net/mailman/listinfo/ozwpf
