Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

Lesson 5 - Complex Navigation in MVPVM Application

$
0
0
Lesson 1 - Create a Simple MVPVM Application (Step-by-step description)(Example)
Lesson 2 - Commands. Presenter. (Step-by-step description) (Example)
Lesson 3 - Interaction Between Views. Services. (Step-by-step description) (Example)
Lesson 4 - Navigation in MVPVM Applications (Step-by-step description) (Example)
>> Lesson 5 - Advanced MVPVM Application (Step-by-step description)
Question Comments

Added By: Pavlov Pavel at: 8/4/2014 11:15:04 PM    

Hi!
If I run attached example I get runtime error:

System.ArgumentNullException was unhandled
 HResult=-2147467261
 Message=Value cannot be null.
Parameter name: key
 Source=mscorlib
 ParamName=key
 StackTrace:
      at System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
      at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
      at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
      at DevExpress.XtraBars.Navigation.OfficeNavigationBar.EndInit()
      at MvpvmNavigation.Form1.InitializeComponent() in c:\Projects\dxSample3\MvpvmNavigation\Form1.Designer.cs:line 149
      at MvpvmNavigation.Form1..ctor() in c:\Projects\dxSample3\MvpvmNavigation\Form1.cs:line 25
      at MvpvmNavigation.Program.Main() in c:\Projects\dxSample3\MvpvmNavigation\Program.cs:line 16
 InnerException:

I have MSVS2012, Windows 7, DevExpress 14.1.4.

Added By: Pavlov Pavel at: 8/4/2014 11:18:57 PM    

I was debug with sources and find that exception thrown in TileNavigation.cs:
public void EndInit() {
if(IsNavigationClientAttached) {
UpdateItems(NavigationClient.ItemsSource);
var selectedNavigationBarItem = itemsSourceItems[NavigationClient.SelectedItem]; // -- NavigationClient.SelectedItem IS NULL!!!
if(SelectedItem != selectedNavigationBarItem)
SelectedItem = selectedNavigationBarItem;
}
EnsureAutoSize();
initLock = 0;
}

Added By: Svetlana (DevExpress Support) at: 8/4/2014 11:44:23 PM    

Hello,

To process your recent post more efficiently, I created a separate ticket on your behalf: T136931: An exception is thrown in the OfficeNavigationBar.EndInit method. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.

ticket. Please refer to it. 

Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>