Click here to Skip to main content
15,881,600 members
Home / Discussions / WPF
   

WPF

 
QuestionSilverlight 4 Grid in Code. Access Row Background Pin
Paul Shearing13-May-10 6:45
Paul Shearing13-May-10 6:45 
AnswerRe: Silverlight 4 Grid in Code. Access Row Background Pin
Abhinav S13-May-10 18:51
Abhinav S13-May-10 18:51 
QuestionWPF Rotate transform issue Pin
Shane555513-May-10 5:20
Shane555513-May-10 5:20 
AnswerRe: WPF Rotate transform issue Pin
Insincere Dave13-May-10 6:07
Insincere Dave13-May-10 6:07 
GeneralRe: WPF Rotate transform issue Pin
Shane555513-May-10 6:15
Shane555513-May-10 6:15 
QuestionWPF for Pipe networks Pin
Dimitris Nemtsov13-May-10 3:21
Dimitris Nemtsov13-May-10 3:21 
QuestionTexBlock Size [SOLVED!] Pin
#realJSOP13-May-10 2:51
mve#realJSOP13-May-10 2:51 
QuestionWPF cascaded combo Pin
bindum3112-May-10 20:22
bindum3112-May-10 20:22 
Hi,
I am using LINQ to SQL and MVVM pattern in my application where i am retrieving
my data by the following query:

internal ObservableCollection<INVCategory> GetCategoryList()
{
     DataLoadOptions dataLoadOptions = new DataLoadOptions();
     dataLoadOptions.LoadWith<INVCategory>(t => t.INVSubCategories);
     this.Context.LoadOptions = dataLoadOptions;

     var categories = from category in this.Context.INVCategories
                      orderby category.CatgeoryId descending
                      select category;
     return new ObservableCollection<INVCategory>(categories.ToList());
}


And my XAML code for parent(Category) combo is:

<ComboBox Grid.Column="1" Grid.Row="0" HorizontalAlignment="Stretch"                           VerticalAlignment="Stretch" Margin="0,2,10,2" TabIndex="0" x:Name="categoryComboBox"      
ItemsSource="{Binding CategoryList}" IsEditable="True" DisplayMemberPath="CategoryName"  SelectedValuePath="CatgeoryId" SelectedItem="{Binding CategoryList, Mode=TwoWay}" SelectedValue="{Binding Path=CurrentEntity.CategoryId, Mode=TwoWay}" >
</ComboBox>


for child(Subcategory) combo i am using:

<ComboBox Grid.Column="1" Grid.Row="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0,2,10,2" TabIndex="1"
ItemsSource="{Binding SelectedItem, ElementName=categoryComboBox, Mode=OneWay}" 
DisplayMemberPath="SubCategoryName" SelectedValuePath="SubCategoryId"
SelectedItem="{Binding INVSubCategories, Mode=TwoWay}">
</ComboBox>


But my child combo items is not populated during form loading as well as parent combo's
selection changed though my parent combo items are populated.
i can't figure out why my child combo is not functioning based on parent combo's
selected item ,please help me.
AnswerRe: WPF cascaded combo Pin
Venkatesh Mookkan12-May-10 22:41
Venkatesh Mookkan12-May-10 22:41 
GeneralRe: WPF cascaded combo Pin
bindum3112-May-10 23:30
bindum3112-May-10 23:30 
GeneralRe: WPF cascaded combo Pin
Venkatesh Mookkan13-May-10 0:19
Venkatesh Mookkan13-May-10 0:19 
GeneralRe: WPF cascaded combo Pin
bindum3113-May-10 1:57
bindum3113-May-10 1:57 
GeneralRe: WPF cascaded combo Pin
Venkatesh Mookkan13-May-10 19:50
Venkatesh Mookkan13-May-10 19:50 
Questionerror on installation of VS2010 Express Pin
arkiboys12-May-10 19:53
arkiboys12-May-10 19:53 
AnswerRe: error on installation of VS2010 Express Pin
Michel Godfroid12-May-10 20:50
Michel Godfroid12-May-10 20:50 
GeneralRe: error on installation of VS2010 Express Pin
arkiboys12-May-10 21:13
arkiboys12-May-10 21:13 
GeneralRe: error on installation of VS2010 Express Pin
Michel Godfroid12-May-10 21:16
Michel Godfroid12-May-10 21:16 
GeneralRe: error on installation of VS2010 Express Pin
arkiboys12-May-10 21:30
arkiboys12-May-10 21:30 
GeneralRe: error on installation of VS2010 Express Pin
Michel Godfroid12-May-10 21:41
Michel Godfroid12-May-10 21:41 
GeneralRe: error on installation of VS2010 Express Pin
arkiboys13-May-10 0:41
arkiboys13-May-10 0:41 
GeneralRe: error on installation of VS2010 Express Pin
Michel Godfroid13-May-10 0:49
Michel Godfroid13-May-10 0:49 
GeneralRe: error on installation of VS2010 Express Pin
#realJSOP13-May-10 3:21
mve#realJSOP13-May-10 3:21 
QuestionTreeView & Commanding Pin
Kevin Marois12-May-10 12:50
professionalKevin Marois12-May-10 12:50 
AnswerRe: TreeView & Commanding Pin
Pete O'Hanlon12-May-10 21:30
mvePete O'Hanlon12-May-10 21:30 
Questionxaml color code Pin
devvvy11-May-10 22:57
devvvy11-May-10 22:57 

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.