Languages

Menu
Sites
Language
Unable to set BindingContext in XAML

I was trying to use MVVM pattern in Tizen.Net for one of my sample applications that I am deploying on Tizen TV.

If I set BindingContext in XAML like below -

<ContentPage.BindingContext>
      <local:MainLayoutViewModel />
 </ContentPage.BindingContext>

 

This works perfectly fine on Tizen Emulator, however if I deploy tpk on Tizen TV, then application would not launch.

Thereafter if VM is set via .cs file then it works both on Tizen Emulator & TV.

public MainLayout()

{

InitializeComponent();

BindingContext = new MainLayoutViewModel ();

}

Any insight related to this would be of great help.

Responses

4 Replies
Peter Wegner

I am not sure if lost in Translation...

 

You have any TPK created with Tizen.net which work on your TV?

With TV you mean real device... not Emulator/Simulator...

 

Because I thought this is still main problem to install dot.net enabled TPKs:

https://developer.tizen.org/forums/tizen-.net/device-does-not-have-.net-installed

 

I thought device/target require Tizen 3 Firmware + dot.net enabled ""Extensions""...

 

Thanx in advance for clarification.

 

Best Regards

Ensave F

Im using Tizen 3

Ensave F

Sorry for Typo.. its 2.4

Victor Sindeev

Does Tizen supported WPF?