Click here to Skip to main content
15,888,984 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Class Diagram option needed Pin
Jaiprakash M Bankolli10-Apr-07 3:31
Jaiprakash M Bankolli10-Apr-07 3:31 
AnswerRe: Class Diagram option needed Pin
ltadeu10-Apr-07 6:41
ltadeu10-Apr-07 6:41 
Question.NET 3.0 dockable Toolbar needed Pin
Mohinil10-Apr-07 1:24
Mohinil10-Apr-07 1:24 
GeneralRe: .NET 3.0 dockable Toolbar needed Pin
sthotakura12-Apr-07 4:02
sthotakura12-Apr-07 4:02 
Question.net roadmap Pin
bigeyed9-Apr-07 19:01
bigeyed9-Apr-07 19:01 
AnswerRe: .net roadmap Pin
Jaiprakash M Bankolli10-Apr-07 3:32
Jaiprakash M Bankolli10-Apr-07 3:32 
QuestionRetaining invalid data in bound controls Pin
sthomaso9-Apr-07 7:46
sthomaso9-Apr-07 7:46 
QuestionXml, Listboxs, and changing backgrounds Pin
Czanchez9-Apr-07 7:42
Czanchez9-Apr-07 7:42 
I'm using VS 'Orcas' and .net 3.0 for this.

I'm using xml to make a small item list and I want to make the background of the program change depending on what item is selected.

I'm using a listbox that looks like this

< ListBox Width="Auto" Background="Transparent" BorderThickness="0" ItemsSource="{Binding Source={StaticResource listoitems}}" DisplayMemberPath="@name" IsSynchronizedWithCurrentItem="True" />

I came up with two possible ways to do this. One is to have the background of the ListBox transparent and just change the main windows background.

Background="{Binding Source={StaticResource listoitems}, XPath=bgimage}"

But this does not work. When I compile to test the program, it tells me that the program is not responding. I assumed that I could use the background like I can assune XPath values to textboxs. Do I need to make the main window refer back to the xml fine even though I made the <window.resources><xmldataprovider ....=""> tags.

I also tried using the above background code for the ListBox and it compiled, but I didn't get any image changes, just white.

Oh another thing that might be important, the image files are .png files. I shouldn't be the problem though, bceause I've seen demo programs that use PNG files. Or maybe the background doesn't like having a PNG.

If anyone knows any alternative ways of doing this, I'm all ears, but I'd like to understand why this doesn't work, though the answer is probably just a "because it doesn't." Thanks for any help.
QuestionVB.Net [modified] Pin
Bishwajeet Roy9-Apr-07 2:02
Bishwajeet Roy9-Apr-07 2:02 
QuestionStandard Encryption method which takes 3 parameters in .net [modified] Pin
Kusumasrinivas8-Apr-07 23:29
Kusumasrinivas8-Apr-07 23:29 
AnswerRe: Standard Encryption method which takes 3 parameters in .net Pin
Colin Angus Mackay9-Apr-07 1:57
Colin Angus Mackay9-Apr-07 1:57 
QuestionImmediate Window Pin
Akhilesh Yadav8-Apr-07 23:27
Akhilesh Yadav8-Apr-07 23:27 
AnswerRe: Immediate Window Pin
Akhilesh Yadav9-Apr-07 0:10
Akhilesh Yadav9-Apr-07 0:10 
QuestionSmooth corner control! Pin
caiter7-Apr-07 16:20
caiter7-Apr-07 16:20 
AnswerRe: Smooth corner control! Pin
Jaiprakash M Bankolli10-Apr-07 3:34
Jaiprakash M Bankolli10-Apr-07 3:34 
GeneralRe: Smooth corner control! Pin
caiter10-Apr-07 3:39
caiter10-Apr-07 3:39 
GeneralRe: Smooth corner control! Pin
Jaiprakash M Bankolli10-Apr-07 3:47
Jaiprakash M Bankolli10-Apr-07 3:47 
QuestionCOM Invoke and the .NET Framework Pin
Ray Kinsella7-Apr-07 4:42
Ray Kinsella7-Apr-07 4:42 
Questionfix application scriptmap and fix path? Pin
Ghalib Ghuneim6-Apr-07 13:40
Ghalib Ghuneim6-Apr-07 13:40 
QuestionRun a win32 app remotely? Pin
Ryno Burger5-Apr-07 20:50
Ryno Burger5-Apr-07 20:50 
AnswerRe: Run a win32 app remotely? Pin
Dave Kreskowiak6-Apr-07 4:45
mveDave Kreskowiak6-Apr-07 4:45 
AnswerRe: Run a win32 app remotely? Pin
Not Active6-Apr-07 5:11
mentorNot Active6-Apr-07 5:11 
QuestionAbout Windows Presentation Foundation. Pin
caiter5-Apr-07 4:12
caiter5-Apr-07 4:12 
AnswerRe: About Windows Presentation Foundation. Pin
caiter5-Apr-07 9:37
caiter5-Apr-07 9:37 
AnswerRe: About Windows Presentation Foundation. Pin
caiter5-Apr-07 9:45
caiter5-Apr-07 9:45 

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.