Click here to Skip to main content
15,885,896 members

Comments by Kapil Waghe (Top 25 by date)

Kapil Waghe 22-Jul-16 11:15am View    
Hello..

Thanks Arun for asking this question and specially Shrey for the answer.

I'm working on same concept to share the ViewModel between more than one Views. Here Views are User Controls.

I have done this but having a small issue. Now, I want to switch between views under the DataTemplate.

1) HomeViewModel - Will have default view to show at first run.
2) AmericanFootballViewModel - This can have n number of views. ( THIS IS THE MAIN ISSUE FOR ME. ACTUALLY THIS IS MY FIRST PROJECT IN MVVM AND WPF :) )

Your help would be highly appreciable. I'm running into tight deadline.

Below example is just for reference as this will not work. It says we can add only one in AmericanFootballViewModel.

window.resources>
datatemplate datatype="{x:Type local:HomeViewModel}">
local:homeview>
/local:homeview>

datatemplate datatype="{x:Type vm:AmericanFootballViewModel}">
v_af:af_scoreboard_no_video x:name="Sai1">
/v_af:af_scoreboard_no_video>



dockpanel>
contentcontrol name="CurrentPage" content="{Binding CurrentPageViewModel}">
/contentcontrol>
Kapil Waghe 25-Mar-15 13:28pm View    
How to convert above java code into c#. I shared what I have tried till now.
Kapil Waghe 24-Mar-15 5:15am View    
Thanks for your suggestions. I updated the question as suggested.
Kapil Waghe 5-Jan-15 6:18am View    
Deleted
I'm not expecting AMD to provide technical support on Intel products. And also I'm not asking you to correct any mistakes as there is not any. Please re-read the question it just a string compression/shortner question. The links I provided, is for references only.
Kapil Waghe 5-Jan-15 6:11am View    
Hi, file contents is bytes of a file may be a small image. It is not a sequence of integers. I tried many algorithms like LRE, LZ4Codec, LZO.NET etc to compress the bytes but did not get expected results so, now I'm trying with Hex. Thanks