For those new to message boards please try to follow a few simple rules when posting your question.
Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
Keep the subject line brief, but descriptive. eg "File Serialization problem"
Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode "<" (and other HTML) characters when pasting" checkbox before pasting anything inside the PRE block, and make sure "Use HTML in this post" check box is checked.
Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
Please do not post links to your question into an unrelated forum such as the lounge. It will be deleted. Likewise, do not post the same question in more than one forum.
Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
No advertising or soliciting.
We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
First of all, I'm not searching for tab virtualization.
1) The application is according to the mvvm architecture that I wish to maintain.
2) The application have 2 tabs "Tab 1" and "Tab 2" (tabcontrol) that we used tab caching followed by the solution of ikriv: WPF TabControl: Turning Off Tab Virtualization
3) Within "tab 1" stays general info.
4) Within "tab 2" stays left side the navigation and right side the content like the picture here : Sample picture
Clicking on"Inbox" and "Outbox" shows usercontrols on the right side.
On both Usercontrols stays an label with an textbox where I applied databinding for the saved state
The situation now: When I switch from "Tab2" Inbox item where i filled in the textbox "100" as example to tab 1. It works like a charm, when switching back to the inbox my value "100" is saved with thanks to the solution of ikriv.
The problem: When I switch from "Tab2" Inbox to another item within Tab2 like "Outbox" and switching back the data is lost. The value of "100" is gone. It will be resetted to "0"
The Inbox / Outbox/ .. items like in picture are not tabs but the NavBarControl from DevExpress.
The problem is when switching by the items of the control of devexpress.
If you look at the screenshot, the output is almost correct. The 1st two columns are properties of my **LiveCameraResult** object that are added to my observable collect. The next four columns (**FaceId**, **Age**, **Gender**, **Emotion**) also come from a property of the **LiveCameraResult** object but the property is an array (**Faces**) and I want ouput of ALL the Faces in this object to display. So far the only way I have been able to get output to display at all for those four columns is to only show the 1st entity in the array by indexing to ****. How can I fix my output to show multiple faces data. Here's what my **LiveCameraResult** Class looks like:
To summarize, This log updates every three seconds and give real time data. The TimeStamp, and Camera output is right but the rest of the columns come from properties that are arrays inside an object that hold data for multiple faces. How can I display data so that if at say 10:30 from camera 1 it picks up 4 faces I can see their face IDs, gender, age and identities.
Take a look at Josh Smiths treeview articles, I use the treeview and treelistview extensively and use Josh's structure. Gerry is right that you should be putting the data into an object (livecameraresult) but I would then use the TreeNode to bind with the treeview.
Never underestimate the power of human stupidity
Is there some magic that will allow me to control the visibility of a GroupBox . I have a visibility converter that works perfectly on a button but a GroupBox ignores it completely.
Combobox with 2 options, selected item drives and OPC property in the VM that changes a boolean OPC property that is bound to the GroupBox visibility. The event path works works, values change as expected, button visibility changes but the GroupBox stubbornly stays visible.
I have a wizard. When page 1 is reached I get a UserControl from a list of MEF plugins and add it to the page.
The UserControl has a DP called IsValid on it. I want to bind this property to a property on the VM called IsDatabaseValid
Here's what I have
CurrentPage = CurrentPage + 1;
DatabaseSelectorControl = null;
IDatabase control = null;
// Get the User Control from the plugins. Convert it from IDatabase to a user control
control = ((App)Application.Current).DatabaseService.DBPlugins
.Where(x => x is UserControl && x.DatabaseType == SelectedDatabaseType.DatabaseType).FirstOrDefault();
DatabaseSelectorControl = (DatabaseSelectorBase)control;
if (DatabaseSelectorControl != null)
Binding binding = new Binding();
binding.Source = this;
binding.Path = new PropertyPath("IsDatabaseValid");
binding.Mode = BindingMode.TwoWay;
binding.UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged;
BindingOperations.SetBinding(???, DatabaseSelectorControl.IsValid, binding); // This is the part I'm not sure of
How do I create this binding?
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.
Last Visit: 31-Dec-99 19:00 Last Update: 20-Nov-17 13:42