15,892,737 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 10321925 (Top 18 by date)
Member 10321925
30-Oct-13 7:47am
View
I have done this and its working when i run the application usercontrol2 is not visible...but don't know how get usercontrol2 when listbox item is selected i tried but i could'nt get it
Member 10321925
30-Oct-13 7:44am
View
private bool _selectedItem;
public bool SelectedItem
{
get { return _selectedItem; }
set
{
_selectedItem = value;
PropertyChanged(this, new PropertyChangedEventArgs("SelectedItem"));
}
}
Member 10321925
30-Oct-13 5:59am
View
ok thank u
Member 10321925
30-Oct-13 5:21am
View
Deleted
I have to do this using binding and converters do u have any idea with that ?
Member 10321925
30-Oct-13 3:12am
View
Deleted
@Marvin I need to this in mvvm model,code should not be in my xaml.cs at all...will it work if we use selection changed ?
Member 10321925
30-Oct-13 3:06am
View
Deleted
@_Maxx_ I need to this in mvvm model,code should not be in my xaml.cs at all...will this work ?
Member 10321925
29-Oct-13 10:19am
View
Deleted
u can check my xaml which u solved earlier for me
Member 10321925
29-Oct-13 10:17am
View
Deleted
I don't have button here,in my usercontrol1 i have a listbox with some names when i click on the name the usercontrol2 should appear on my mainwindow
Member 10321925
29-Oct-13 6:39am
View
Deleted
hey thank u r code is working ...getting a warning can u check this out
Warning The event 'Wpf_MVVM.User.Command.CanExecuteChanged' is never used
Member 10321925
29-Oct-13 6:15am
View
nope, i need to this using commands and i never used commands that's the problem for me
Member 10321925
29-Oct-13 5:44am
View
@Marvin Actually i needed is when enter my text in the textbox and click on the button then the text should enter into the listbox i have but u didn't write anything for button command can u pls check again
Member 10321925
29-Oct-13 5:31am
View
Deleted
@Fredrik getting a small error Error The type or namespace name 'Command' could not be found (are you missing a using directive or an assembly reference?)
Member 10321925
29-Oct-13 5:04am
View
Deleted
@Marvin can u please give me code for collection as u mentioned for the listbox
Member 10321925
18-Oct-13 3:15am
View
Deleted
can u give code for delete click event if possible ?
Member 10321925
15-Oct-13 2:30am
View
private void Get_Click(object sender, RoutedEventArgs e)
{
int x = listbox1.SelectedIndex;
listbox2.SelectedIndex = x;
listbox3.SelectedIndex = x;
ListBoxItem lb1 = (listbox1.SelectedItem as ListBoxItem);
tb1.Text = lb1.Content.ToString();
ListBoxItem lb2 = (listbox2.SelectedItem as ListBoxItem);
tb2.Text = lb2.Content.ToString();
ListBoxItem lb3 = (listbox3.SelectedItem as ListBoxItem);
tb3.Text = lb3.Content.ToString();
}
private void Add_Click(object sender, RoutedEventArgs e)
{
int x = listbox1.SelectedIndex;
listbox2.SelectedIndex = x;
listbox3.SelectedIndex = x;
listbox1.Items.Add(tb1.Text);
listbox2.Items.Add(tb2.Text);
listbox3.Items.Add(tb3.Text);
}
private void Delete_Click(object sender, RoutedEventArgs e)
{
int x = listbox1.SelectedIndex;
listbox2.SelectedIndex = x;
listbox3.SelectedIndex = x;
listbox1.Items.RemoveAt(listbox1.Items.IndexOf(listbox1.SelectedItem));
listbox2.Items.RemoveAt(listbox2.Items.IndexOf(listbox2.SelectedItem));
listbox3.Items.RemoveAt(listbox3.Items.IndexOf(listbox3.SelectedItem));
}
}
}
Member 10321925
14-Oct-13 5:25am
View
System.Windows.Controls.ListBoxItem: item name i'm getting like this in my textbox but i need only itemname to appear on my text box
Member 10321925
14-Oct-13 5:08am
View
tb1.Text = listbox1.SelectedItem.ToString();
Member 10321925
8-Oct-13 7:55am
View
i'm looking for mainwindow page to second page not from mainwindow to next window
Show More