62032

Error: This PlotModel is already in use by some other PlotView control

Question:

I have two tabs that is bind to one viewmodel which contain a PlotModel of oxyplot and view model selected through a DataTemplate. When click on the first tab the viewmodel was bind properly but when switch to second tab above exception defined in title throw. All of control is same in two tab. Is it possible bind one object to two controls?

Answer1:

I know what problem you are facing, as I had faced it myself. Oxyplot does not let you bind one model to two plots.

The reason: Once you assign a PlotModel to a Plotview, it becomes encapsulated in that PlotView object.

The only way you can solve the problem is to create separate PlotModel for each PlotView.

Recommend

  • Wiring up CollectionChanged and PropertyChanged (Or : Why do some WPF Bindings not refresh?)
  • Set Image Opacity with an DoubleAnimation
  • Updation of object inside observable array is done but changes are not coming on browser
  • My c# ComboBox does not call the getter after selecting an item. Why?
  • How to create a WPF-like data trigger in Silverlight?
  • How to create a fast loading wrapping ListBox?
  • _Layout.cshtml cannot be requested directly because it calls the “RenderBody” method
  • Cannot convert value of type 'X' to expected argument type 'X'
  • Complex Silverlight TreeView, is nested hierarchy possible?
  • How do I recognize a line break with a switch case that evaluates a char in Java?
  • How to add System.Windows dll to Visual Studio 2010 express?
  • Multibinding Multiselection ListView
  • if some function is not optimized does it mean that all functions where it is declared are not optim
  • Lua: Line breaks in strings
  • Outlines on links in IE9 remains when focus is changed
  • Creating a DropDownList
  • Is there a way to save the selected text and highlight it again once the page is refreshed?
  • Hide HTML elements without javascript, only CSS
  • Copy to all folders batch file?
  • Why Encoding.ASCII != ASCIIEncoding.Default in C#?
  • one Local Olampyad Questions on Informatic in 2011
  • Moving mysql files across servers
  • D3 nodes and links from JSON with nested arrays of children
  • MongoDB in PHP using aggregate to group by _id is null not working
  • Pass value from viewmodel to script in zk
  • Display issues when we change from one jquery mobile page to another in firefox
  • Why ng-show works with ng-repeat but ng-if doesn't? [duplicate]
  • javascript inside java/jsp code
  • To display the title for the current loaction in map in iphone
  • jquery mobile loadPage not working
  • How to format a variable of double type
  • Data Validation Drop Down Box Arrow Disappearing
  • Android Studio and gradle
  • KeystoneJS: Relationships in Admin UI not updating
  • trying to dynamically update Highchart column chart but series undefined
  • How do you join a server to an Active Directory (domain)?
  • IndexOutOfRangeException on multidimensional array despite using GetLength check
  • How can i traverse a binary tree from right to left in java?
  • Net Present Value in Excel for Grouped Recurring CF
  • How to push additional view controllers onto NavigationController but keep the TabBar?