Click here to Skip to main content
15,911,482 members
Home / Discussions / WPF
   

WPF

 
QuestionHelp me I want to get the value of selectedValue in ListBox [modified] Pin
Honeyboy_204-Jul-11 13:30
Honeyboy_204-Jul-11 13:30 
AnswerRe: Help me I want to get the value of selectedValue in ListBox Pin
Mycroft Holmes4-Jul-11 14:32
professionalMycroft Holmes4-Jul-11 14:32 
QuestionError 13 The type or namespace name 'TimePicker' does not exist in the namespace 'System.Windows.Controls' (are you missing an assembly reference?) Pin
jadughar4-Jul-11 2:15
jadughar4-Jul-11 2:15 
AnswerRe: Error 13 The type or namespace name 'TimePicker' does not exist in the namespace 'System.Windows.Controls' (are you missing an assembly reference?) Pin
Abhinav S4-Jul-11 3:21
Abhinav S4-Jul-11 3:21 
GeneralRe: Error 13 The type or namespace name 'TimePicker' does not exist in the namespace 'System.Windows.Controls' (are you missing an assembly reference?) Pin
jadughar4-Jul-11 3:30
jadughar4-Jul-11 3:30 
GeneralRe: Error 13 The type or namespace name 'TimePicker' does not exist in the namespace 'System.Windows.Controls' (are you missing an assembly reference?) Pin
jadughar4-Jul-11 3:34
jadughar4-Jul-11 3:34 
GeneralRe: Error 13 The type or namespace name 'TimePicker' does not exist in the namespace 'System.Windows.Controls' (are you missing an assembly reference?) Pin
Mark Salsbery4-Jul-11 9:22
Mark Salsbery4-Jul-11 9:22 
GeneralRe: Error 13 The type or namespace name 'TimePicker' does not exist in the namespace 'System.Windows.Controls' (are you missing an assembly reference?) Pin
jadughar4-Jul-11 10:46
jadughar4-Jul-11 10:46 
GeneralRe: Error 13 The type or namespace name 'TimePicker' does not exist in the namespace 'System.Windows.Controls' (are you missing an assembly reference?) Pin
Mark Salsbery4-Jul-11 10:53
Mark Salsbery4-Jul-11 10:53 
GeneralRe: Error 13 The type or namespace name 'TimePicker' does not exist in the namespace 'System.Windows.Controls' (are you missing an assembly reference?) Pin
jadughar4-Jul-11 20:48
jadughar4-Jul-11 20:48 
GeneralRe: Error 13 The type or namespace name 'TimePicker' does not exist in the namespace 'System.Windows.Controls' (are you missing an assembly reference?) Pin
Mark Salsbery5-Jul-11 8:21
Mark Salsbery5-Jul-11 8:21 
GeneralRe: Error 13 The type or namespace name 'TimePicker' does not exist in the namespace 'System.Windows.Controls' (are you missing an assembly reference?) Pin
jadughar5-Jul-11 21:53
jadughar5-Jul-11 21:53 
QuestionRe: Error 13 The type or namespace name 'TimePicker' does not exist in the namespace 'System.Windows.Controls' (are you missing an assembly reference?) Pin
Mark Salsbery5-Jul-11 22:04
Mark Salsbery5-Jul-11 22:04 
AnswerRe: Error 13 The type or namespace name 'TimePicker' does not exist in the namespace 'System.Windows.Controls' (are you missing an assembly reference?) Pin
Oludayo Alli19-Aug-11 6:04
Oludayo Alli19-Aug-11 6:04 
QuestionMultiple calls to same wcf service method from Silverlight application Pin
Pankaj Chamria3-Jul-11 23:01
Pankaj Chamria3-Jul-11 23:01 
AnswerRe: Multiple calls to same wcf service method from Silverlight application Pin
Abhinav S4-Jul-11 3:22
Abhinav S4-Jul-11 3:22 
AnswerRe: Multiple calls to same wcf service method from Silverlight application Pin
Mark Salsbery4-Jul-11 8:54
Mark Salsbery4-Jul-11 8:54 
AnswerRe: Multiple calls to same wcf service method from Silverlight application Pin
BobJanova5-Jul-11 0:59
BobJanova5-Jul-11 0:59 
QuestionProblem with DataGrid Rows in WPF Pin
Member 29729921-Jul-11 3:24
Member 29729921-Jul-11 3:24 
I have a datagrid where I have two buttons on each row - one for moving a row up and one for moving a row down.

Each button has a command for allowing the user to move the selected row in either direction. The problem that I am facing is that it not working. I think the problem that I may have is that the other controls (combo boxes) on the rows are bound to data sources through the MVVM model where I am manipulating the rows on the code behind of the XAML thinking this would be the logical place in which to do it.

The code I have for one of the buttons is below:

private void MoveRowDown(object sender, ExecutedRoutedEventArgs e)
{

int currentRowIndex = dg1.ItemContainerGenerator.IndexFromContainer(dg1.ItemContainerGenerator.ContainerFromItem(dg1.SelectedItem));

if (currentRowIndex >= 0)
{
this.GetRow(currentRowIndex + 1).IsSelected = true;
}


}
private DataGridRow GetRow(int index)
{
DataGridRow row = (DataGridRow)dg1.ItemContainerGenerator.ContainerFromIndex(index);
if (row == null)
{
dg1.UpdateLayout();
dg1.ScrollIntoView(selectedAttributes.Items[index]);
row = (DataGridRow)dg1.ItemContainerGenerator.ContainerFromIndex(index);
}
return row;
}
AnswerRe: Problem with DataGrid Rows in WPF Pin
Mycroft Holmes2-Jul-11 12:40
professionalMycroft Holmes2-Jul-11 12:40 
QuestionQ1: Populate TreeView from source (C#) Pin
Mc_Topaz30-Jun-11 23:34
Mc_Topaz30-Jun-11 23:34 
AnswerRe: Q1: Populate TreeView from source (C#) Pin
Pete O'Hanlon1-Jul-11 0:05
mvePete O'Hanlon1-Jul-11 0:05 
QuestionQ2: Implement TreeView with multi level of data Pin
Mc_Topaz1-Jul-11 1:19
Mc_Topaz1-Jul-11 1:19 
AnswerRe: Q2: Implement TreeView with multi level of data Pin
Pete O'Hanlon1-Jul-11 1:30
mvePete O'Hanlon1-Jul-11 1:30 
GeneralRe: Q2: Implement TreeView with multi level of data Pin
Mc_Topaz1-Jul-11 2:14
Mc_Topaz1-Jul-11 2:14 

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.