Click here to Skip to main content
15,897,704 members
Home / Discussions / WPF
   

WPF

 
QuestionDynamic enumlist Pin
ProgrammerWPF31-Aug-09 8:43
ProgrammerWPF31-Aug-09 8:43 
AnswerRe: Dynamic enumlist Pin
Not Active31-Aug-09 9:54
mentorNot Active31-Aug-09 9:54 
GeneralRe: Dynamic enumlist Pin
ProgrammerWPF31-Aug-09 9:57
ProgrammerWPF31-Aug-09 9:57 
GeneralRe: Dynamic enumlist Pin
Not Active31-Aug-09 10:10
mentorNot Active31-Aug-09 10:10 
GeneralRe: Dynamic enumlist Pin
ProgrammerWPF31-Aug-09 10:19
ProgrammerWPF31-Aug-09 10:19 
GeneralRe: Dynamic enumlist Pin
Not Active31-Aug-09 10:44
mentorNot Active31-Aug-09 10:44 
GeneralRe: Dynamic enumlist Pin
Pete O'Hanlon31-Aug-09 10:49
mvePete O'Hanlon31-Aug-09 10:49 
QuestionBinding DataSet to TreeView problem [Question specifically for Josh Smith/Anyone else who can help] Pin
Etienne_12331-Aug-09 7:09
Etienne_12331-Aug-09 7:09 
Hi guys

I use the following code (binding-a-treeview-to-a-dataset/[^]) to bind my treeview to a dataset:

<objectdataprovider x:key="dataSetProvider" methodname="GetRangeProductsDataSet" objecttype="{x:Type local:DataSetCreator}">
<DataTemplate x:Key="RangeDetailTemplate">
<TextBlock Text="{Binding Product}"/>
</DataTemplate>
<HierarchicalDataTemplate x:Key="RangesTemplate" ItemsSource="{Binding RangeProducts}" ItemTemplate="{StaticResource RangeDetailTemplate}">
<TextBlock Text="{Binding ProductRangeDesc}"/>
</HierarchicalDataTemplate>

<TreeView DataContext="{StaticResource dataSetProvider}" ItemsSource="{Binding ProductRange}" ItemTemplate="{StaticResource RangesTemplate}"
Margin="143.75,2.723,8,36" Name="treeViewRangeStartup"
Background="Transparent"></TreeView>"

Then it gives me some error saying that the path to my database does not exist, and it won't load the designer. When I run the app though, it works fine, showing me all the nodes as well as all extending tree nodes. There can'be something wrong with my connectionstring because I didn't change it. And before I used a dataset to bind to a treeview, I used an XML file to bind to bind to the treeview. This gave me no errors even though I was using exactly the same database with exactly the same connection string etc.
Any hints to what might cause this?

modified on Monday, August 31, 2009 1:38 PM

AnswerRe: Binding DataSet to TreeView problem Pin
Etienne_12331-Aug-09 7:34
Etienne_12331-Aug-09 7:34 
QuestionHow to upload and save images in database Pin
Nekkantidivya29-Aug-09 3:18
Nekkantidivya29-Aug-09 3:18 
AnswerRe: How to upload and save images in database Pin
Eduard Keilholz21-Sep-09 4:43
Eduard Keilholz21-Sep-09 4:43 
Questionlistbox, wpf and getchild Pin
pkboo29-Aug-09 0:31
pkboo29-Aug-09 0:31 
AnswerRe: listbox, wpf and getchild Pin
Pete O'Hanlon30-Aug-09 11:14
mvePete O'Hanlon30-Aug-09 11:14 
GeneralRe: listbox, wpf and getchild Pin
pkboo30-Aug-09 22:13
pkboo30-Aug-09 22:13 
GeneralRe: listbox, wpf and getchild Pin
Pete O'Hanlon31-Aug-09 8:44
mvePete O'Hanlon31-Aug-09 8:44 
QuestionImage Pixel Manipulation Pin
Califer28-Aug-09 14:30
Califer28-Aug-09 14:30 
QuestionWPF sleeping-monitor-un-painted-windows problem Pin
FocusedWolf28-Aug-09 9:05
FocusedWolf28-Aug-09 9:05 
AnswerRe: WPF sleeping-monitor-un-painted-windows problem [modified] Pin
FocusedWolf30-Aug-09 8:52
FocusedWolf30-Aug-09 8:52 
QuestionWith ListBox embedded, DataGrid doesn’t popup ComboBox. Why? Pin
Frank W. Wu28-Aug-09 5:02
Frank W. Wu28-Aug-09 5:02 
AnswerRe: With ListBox embedded, DataGrid doesn’t popup ComboBox. Why? Pin
Abhinav S31-Aug-09 18:43
Abhinav S31-Aug-09 18:43 
QuestionNeed to convert win application to web application Pin
Hema Bairavan27-Aug-09 20:45
Hema Bairavan27-Aug-09 20:45 
AnswerRe: Need to convert win application to web application Pin
#realJSOP30-Aug-09 2:42
professional#realJSOP30-Aug-09 2:42 
Answer"specified element is already the logical child of another element. disconnect it first": (solved) PinPopular
kionaagility27-Aug-09 17:44
kionaagility27-Aug-09 17:44 
GeneralRe: "specified element is already the logical child of another element. disconnect it first": (solved) Pin
Edbert P31-Aug-09 16:26
Edbert P31-Aug-09 16:26 
Questionmedialine element does not play video from internet. Pin
vrajaraman27-Aug-09 16:04
vrajaraman27-Aug-09 16:04 

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.