The first time for MVVM and I got a problem. I need help.
App.cs
#if DEBUG
if (System.Diagnostics.Debugger.IsAttached)
this.DebugSettings.EnableFrameRateCounter = true;
#endif
Frame rootFrame = Window.Current.Content as Frame;
// Do not repeat app initialization when the Window already has content,
// just ensure that the window is active
if (rootFrame == null)
// Create a Frame to act as the navigation context and navigate to the first page
rootFrame = new Frame();
var viewModel = new MainWindowModel();
MainPage main = new MainPage();
main.DataContext = viewModel;
// TODO: change this value to a cache size that is appropriate for your application
rootFrame.CacheSize = 1;
if (e.PreviousExecutionState == ApplicationExecutionState.Terminated)
// TODO: Load state from previously suspended application
// Place the frame in the current Window
Window.Current.Content = rootFrame;
DataAccess.cs
readonly List<Menu> _menu;
public MenuRespository()
if(_menu==null)
_menu = new List<Menu>();
_menu.Add(Menu.CreateMenu("/Photos/Gas-50.png", "t"));
_menu.Add(Menu.CreateMenu("/Photos/Gas-50.png", "t"));
_menu.Add(Menu.CreateMenu("/Photos/Gas-50.png", "t"));
_menu.Add(Menu.CreateMenu("/Photos/Gas-50.png", "t"));
_menu.Add(Menu.CreateMenu("/Photos/Gas-50.png", "t"));
_menu.Add(Menu.CreateMenu("/Photos/Gas-50.png", "t"));
_menu.Add(Menu.CreateMenu("/Photos/Gas-50.png", "t"));
public List<Menu> GetMenu()
return new List<Menu>(_menu);
Menu.cs
public class Menu
public static Menu CreateMenu(string iconthumb, string text)
return new Menu { IconThumb = iconthumb, Text = text };
public string IconThumb { get; set; }
public string Text { get; set; }
MainWindowsModel
public class MainWindowModel :ViewModelBase
readonly MenuRespository _menuRepository;
ObservableCollection<ViewModelBase> _viewModels;
public MainWindowModel()
_menuRepository = new MenuRespository();
//create an instance of our viewmodel add it to our collection
MenuListViewModel viewModel = new MenuListViewModel(_menuRepository);
this.ViewModels.Add(viewModel);
public ObservableCollection<ViewModelBase> ViewModels
get
if(_viewModels==null)
_viewModels = new ObservableCollection<ViewModelBase>();
return _viewModels;
ViewBase
public abstract class ViewModelBase :INotifyPropertyChanged, IDisposable
protected ViewModelBase()
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void OnPropertyChanged(string propertyName)
PropertyChangedEventHandler hander = this.PropertyChanged;
if(hander!=null)
var e = new PropertyChangedEventArgs(propertyName);
hander(this, e);
public void Dispose()
this.Dispose();
protected virtual void OnDispose()
class MenuListViewModel :ViewModelBase
readonly MenuRespository _menuRepository;
public ObservableCollection<Model.Menu> AllMenu
get;
private set;
public MenuListViewModel(MenuRespository menuRepository)
if(menuRepository==null)
throw new ArgumentException("menuRepository");
_menuRepository = menuRepository;
this.AllMenu = new ObservableCollection<Model.Menu>(_menuRepository.GetMenu());
protected override void OnDispose()
//base.OnDispose();
this.AllMenu.Clear();
MenuListBox.xaml into View(show off "
<UserControl
x:Class="MixNokia.View.MenuListBox"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:MixNokia.View"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<StackPanel>
<ListBox ItemsSource="{Binding AllMenu}">
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<Image Source="{Binding IconThumb}" Width="40" Height="40" VerticalAlignment="Center" HorizontalAlignment="Left"></Image>
<TextBlock Text="{Binding Text}" FontSize="15" Foreground="#CCCCCC" VerticalAlignment="Center" HorizontalAlignment="Center"></TextBlock>
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</StackPanel>
</UserControl>
The final
<Page
x:Class="MixNokia.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:MixNokia"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:vm="using:MixNokia.ViewModel"
xmlns:v="using:MixNokia.View"
mc:Ignorable="d">
<Page.DataContext>
<vm:MainWindowModel />
</Page.DataContext>
Mainpages.
<ListBox x:Name="lstMainMenu" SelectionChanged="lstMainMenu_SelectionChanged" Background="Transparent" ItemsSource="{Binding ViewModels}">
I'm developing on universal..
It was showing "mixnokia.viewmodel.menulistviewmodel "
Greg - please tell us exactly what is wrong when you make a post.
Matt Small - Microsoft Escalation Engineer - Forum Moderator
If my reply answers your question, please mark this post as answered.
NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
objects and unknown namespaces.
Similar Messages
-
My Iphone 4 just updated to the iOS6. I've connected it to my computer for the first time since then, and wanted to back up my photos in iPhoto. However, although Iphoto recognized my phone, it shows no photos to upload or backup. It lists my phone in the "devices" category on the left bar, but no longer shows any of my photos.
Does anyone have any suggestions?I've reread your question several times and am not sure I understand it.
Are you trying to basically start over, as if you just took your iPhone out of the box? If so, do:
Settings > General > Reset > Erase all content and settings -
How to set up Airport Extreme with Charter ARRIS Modem TM902A for the first time for WIRELESS.
When Charter Tech goes to your site, have them connect the modem up, but do not connect the modem to your iMAC or MacBook Pro. What you want to do is connect the Airport Extreme to the iMac or MacBook Pro first with the Ethernet Cable. You have to do this to configure via Airport Utility to set up the Base Station Name & Base Station Password.
You will then create/configure a Wireless Network, create your Wireless Password that will be entered on each of your Devices, example, Apple Tv, your iPhone, etc., you want to allow access to your Wireless Network you are creating.
Wireless Security will be -> WPA/WPA2 personal or just WPA2
Enter the Wireless Password you want
Verify the Wireless Password (enter it again)
After it is created you will see it on the Airport Utility window with the name you created for it and to the left, will be a Dot (circle that will be yellow).
Next you then want to unplug the power to the Airport Extreme, and then take the end of the Ethernet cable you unplugged from the iMac or Lap top MacBook Pro and connect it to the back of the Modem.
Next unplug the power cord from the modem and wait about 5 minutes, then plug the power back into the Arris Modem and wait until all lights come back on the modem wait
about 5 minutes, then plug the power cord back to the Airport Extreme and you will see it the light blinking yellow. Wait about 5 to 10 minutes, during this time Restart you IMAC or MacBook Pro, and once it is back up click on the Airport Utility and you should see on the Airport Utility screen.
For INTERNET to the left the light should be green and you should see the Airport Extreme also appear and the light to the left on the screen should also be green. If they are, you then should be able to click on the Wireless Symbol on top of bar of the screen and click to select the Wireless Network Name you created.
If you Do Not See the light (Icon) next to INTERNET turn Green, or if you see the Internet Light Green, but the Light (Icon) next to the Airport Extreme is yellow, unplug the power again to the modem and unplug the power again to the Airport extreme and wait about 15 minutes or up to 30 minutes. Then plug the power cord back to the modem wait till all the lights light up then, plug the power cord back into the Airport Extreme and Restart your iMAC or MacBook Pro.
The Airport Extreme light should change from yellow to green. Open up the Airport Utility to see what the indicators are showing they should both be green. Again select Wireless network you created under the Wireless Icon on the top right of the screen. Open Safari and see if you are able to Route to a web page or the apple site should appear.
WHAT TO DO IF YOUR AIRPORT EXTREME WAS PREVIOUSLY SET UP FOR USE WITH ANOTHER CARRIERS ROUTER OR MODEM.
NOTE: If you already had your Airport Extreme connected for example, I previously had ATT Uverse and the Airport Extreme was connected to the Wireless Router Model 3801HGV, I disabled the Uverse Wireless and used the Airport Extreme for the Wireless signal in bridge mode, as the Airport extreme Signal is much stronger than the Uverse router, and I was able to obtain a Wireless signal with the Airport Extreme way much better with no signal loss which was very very frustrating with the Uverse router.
Anyhow if you had it hooked up like this, now that you will be using it with the Charter ARRIS Modem TM902A, you will need to reset the Airport Extreme to clear out the old data it has in memory, with the previous set up otherwise it will not work. Trust me I spent 6 hours trying to make it work reading all Apple Support Community questions and answers relating to this type issue/problem others have been having trying to get their set up working. I tried all the tips, and I finally decided just to see if by chance I would be able to connect with someone with Charter Tech support who might be familiar with Apple to be able to assist me and by luck I did. He told me why it was not working and was all due the previous configuration with the ATT Uverse router was still in memory with the Airport Extreme. Finally it was 10:30 PM when I decided to call Charter Tech Support and I had been working on this since 3:00 pm pacific. I did not call them earlier as all the post I read said they never received any good help from Charter. After calling them I finished up by 11:00 PM and was able to finally connect Apple Tv, iMac, iPhones and Macbook Pro. We love our Apple Product and Happy all is connected with the new
Internet Provider Charter. I must say the speed is way way much better than it ever was with AT&T Uverse.
THIS IS WHAT YOU WILL NEED TO DO:
First you will need to unplug the Airport Extreme, then by taking the tip of a pen or paper clip end you need to push the reset button on the back of the Airport Extreme and hold it
down and at the same time plug the power cord back into the Airport Extreme count to 5 or 10 then release the reset button. Then once he light in front of the Airport Extreme stops blinking you need to plug the Ethernet cable from the Airport Extreme to your iMAC or Macbook Pro, and restart which ever one you have, then open the Airport Utility once it is back up. If you see airport extreme pop up with the old network name or it shows and yellow triangle click on the Airport Extreme ICON it will not let you configure it but will ask if you want to get rid of it or remove and just do it. Then Again restart your iMAC or MacBook Pro, open up Airport Utility again, and on the top left you should see under “Other Airport Base Stations” the MAC ID for the Airport Extreme.
You will then create/configure a Wireless Network, create your Wireless Password that will be entered on each of your Devices, example, Apple TV, your iPhone, etc., you want to allow access to your Wireless Network you are creating.
Wireless Security will be -> WPA/WPA2 personal or just WPA2
Enter the Wireless Password you want
Verify the Wireless Password (enter it again)
After it is created you will see it on the Airport Utility window with the name you created for it and to the left, will be a Dot (circle that will be yellow).
Next you then want to unplug the power to the Airport Extreme, and then take the end of the Ethernet cable you unplugged from the iMac or Lap top MacBook Pro and connect it to the back of the Modem.
Next unplug the power cord from the modem and wait about 5 minutes, then plug the power back into the Arris Modem and wait until all lights come back on the modem wait
about 5 minutes, then plug the power cord back to the Airport Extreme and you will see it the light blinking yellow. Wait about 5 to 10 minutes, during this time Restart you IMAC or MacBook Pro, and once it is back up click on the Airport Utility and you should see on the Airport Utility screen.
For INTERNET to the left the light should be green and you should see the Airport Extreme also appear and the light to the left on the screen should also be green. If they are, you then should be able to click on the Wireless Symbol on top of bar of the screen and click to select the Wireless Network Name you created.
If you Do Not See the light (Icon) next to INTERNET turn Green, or if you see the Internet Light Green, but the Light (Icon) next to the Airport Extreme is yellow, unplug the power again to the modem and unplug the power again to the Airport extreme and wait about 15 minutes or up to 30 minutes. Then plug the power cord back to the modem wait till all the lights light up then, plug the power cord back into the Airport Extreme and Restart your iMAC or MacBook Pro.
The Airport Extreme light should change from yellow to green. Open up the Airport Utility to see what the indicators are showing they should both be green. Again select Wireless network you created under the Wireless Icon on the top right of the screen. Open Safari and see if you are able to Route to a web page or the apple site should appear.I just got a Charter Modem. Model TM822. While I was moving, my Airport Extreme was still at my old place.
I have a Linksys WRT320N I used for the initial Charter setup.
I can get my Airport to work here, but the Internet light on the Modem flashes Yellow.
Hasn't caused any issues so far but one thing I did notice.
On the Linksys there were 3 DNS servers listed.
The Airport Extreme only lists 2 and i don't see where I could add another, only change whats already there.
I tried everything above, but light on modem still flashes yellow.
I have the technicians cell phone. Told me "that shouldn't be" and gave the same advice listed above.
I'll break down and call Charter one day, see if it's on their end. NSA tracking may need a reset LMAO. -
my itune still cannot initiate on my window7 64bit since the first time I downloaded and re downloaded again and again
It had no message at all. It just like nothing happened atall when I clicked itune icon.
Can you check something for me please?
Restart your PC. after the PC restarts, bring up your Task manager, and go to the "Processes" tab. Click "Image name" to sort the processes alphabetically.
Now try to launch iTunes.
Does an itunes.exe process appear? If so, does it vanish after a second or so, or does it persist in the Processes tab (even though iTunes itself never shows up)? -
I can not activate my iphone to be used for the first time, it is blocked. how do i unlock. can someone help me
dis the activation server is not available try again later or contact tech support.
has no sim card installed more already tried with the sim card still not of.
bought in china. -
I connected my iphone for the first time to my itunes. It didnt have any backup or anything saved on icloud. As soon as i plugged it in, on itunes it asked if I wanted to restore, or backup, my ipod to my iphone or something (I dont remember) and I clicked yes. I thought that it was syncing music, and apps that i had on my ipod but instead it made my iPhone 4s into a copy of my ipod touch from the last time i synced my ipod (august 2012) now i have lost all of my contacts, pictures, messages, calls, emails and everything else I had on my iphone... is there any way that I can recover anything and get it how it used to be before all of this happened? i did not save anything on the computer or on itunes backup...
Sorry saker, but if you have not backed up your data anywhere, and you told the computer, in essence to clear the data and restore it with your iPod data, then you are pretty much out of luck....
Cheers,
GB -
Essbase 9.3.1 fails login the first time for both LDAP and Native users
Hi,
Whenever I try to login into Essbase server using AAS or Maxl, it fails for the first time but when I try the second time it works.
Essbase Logs at the time of the error shows:
Local ESSBASE0 Info (1051001) Received client request: Get Log File (from user hadmin )
Local ESSBASE0 Info (1051001) Received client request: Get Server Locale Description (from user hadmin )
Local ESSBASE0 Info (1051164) Received login request from xxx.xxx.xxx.x
Local ESSBASE0 Error (1051293) Login fails due to invalid login credentials
Local ESSBASE0 Warning (1051003) Error 1051293 ~processing request Login - disconnecting
SharedServices9\SystemErr.log
SystemErr R com.hyperion.interop.AuthenticationException: Could not authenticate user 'CSSToken'. Please ensure the username and password is correct.
SystemErr R at com.hyperion.interop.webservices.Security.slideAuthenticate(Unknown Source)
SystemErr R Caused by: java.lang.Exception: Interop Security: Unauthorized
SystemErr R at com.hyperion.interop.webservices.Security.authenticate(Unknown Source)
SystemErr R 1282785593 [WebContainer : 0] WARN security.SecurityFacade - Error Executing cssAuthenticate()
Error Code: -1
com.hyperion.css.CSSTokenNotAcceptedException: Token is invalid. Error Code: 11
And we are using SSL? Help please... Thanks.I know this wont help but we had the same issue in 9.3.1 and decide to reinstall without SSL as we could not get to the bottom of it.
I suspect there s something wrong with the SSL config but not sure what it is...
Seb -
When tried to login WebConsole for the first time 404 not found error got
Hi All,
We have recently installed MI 7.0(NW2004s) and configured also as per the configuration document. But when we tried to login WebConsole we are getting the error of 404 not found. I donot know what and where I have test to login to WebConsole.
Is there any way how to test to login to WebConsole for the first time.
Appreciate your help.
Regards,
Ameer Baba.Hi Ameer,
Can you please try with the link "http://servername:portnumber/nwa", this is to open NettWeaver Mobile Administrator, as on the above reply Namitha said there is no Webconsole on MI 7.0(NW2004s) .
Regards,
Satyendra -
I have read that Apple will replace a cracked screen on an iPad the first time it is damaged for free. Does anyone know if this is true?
apple's official policy is: cracked screens = accidental damage
With iPad 1 and 2, accidental damage is not covered by any apple care and a replacement iPad starts at $249 and goes up depending on the model.
iPad3's were eligible for Apple Care + which offers two instances of accidental damage repair for $49 each time
The 'apple store replaced my cracked ipad for free' is largely an urban legend. It's possibly happened, but those that have been on the receiving end were people that happened to get a store manager that defied Apple's official policy. Not to say it hasn't potentially happened, but it's an exception not the rule. And if you happen to be lucky enough to experience it, that's just what it is, luck. Not something to be counted on or expected. -
Using SPAM/SAINT for the first time (Many doubts and questions)
Hi all,
I'm newbie using SPAM/SAINT and SOLMAN.
I've mande a maintenance optimizer task for the SOLMAN system here in the company.
My actual installed components are:
SAP_ABA 700 0012 SAPKA70012 Cross-Application Component
SAP_BASIS 700 0012 SAPKB70012 SAP Basis Component
PI_BASIS 2005_1_700 0012 SAPKIPYJ7C PI_BASIS 2005_1_700
ST-PI 2005_1_700 0006 SAPKITLQI6 SAP Solution Tools Plug-In
SAP_BW 700 0013 SAPKW70013 SAP NetWeaver BI 7.0
SAP_AP 700 0010 SAPKNA7010 SAP Application Platform
BBPCRM 500 0009 SAPKU50009 BBPCRM
BI_CONT 703 0005 SAPKIBIIP5 Business Intelligence Content
CPRXRPM 400 0009 SAPK-40009INCPRXRPM SAP xRPM/cProjects/cFolders 4.00 (ABAP)
ST 400 0012 SAPKITL422 SAP Solution Manager Tool
ST-A/PI 01J_CRM500 0000 - Application Servicetools for CRM 500 / 5
ST-ICO 150_700 0009 SAPK-15079INSTPL SAP Solution Manager Implementation Cont
ST-SER 700_2007_1 0001 SAPKITLOM1 SAP Solution Manager Service Tools
I've made the search and found a lot of info.
Some kernel updates (I386 on my case), and my first question is: "How do I update this? Is it safe to be the first thing to be done?" Is it only copy to the Run directory (usr\sap\<SID>\SYS\exe\run)?
Also a component BC-FES-IGS has some updates, but I don't know what is this and how to update. (it says: Installation for SAP IGS integrated in SAP Kernel igsexe_16-10003071.sar)
All the rest (SAPK* files), seems to be normal patches that is possible to use spam to update them. Correct?
How to use SPAM/SAINT? What is used in one time, and on others? Do they do the same?
Regards,
Pedro
Edited by: Pedro Taveira on Aug 17, 2010 5:20 PMHi Pedro,
Some kernel updates (I386 on my case), and my first question is: "How do I update this? Is it safe to be the first thing to be done?" Is it only copy to the Run directory (usr\sap\<SID>\SYS\exe\run)?
As SolMan is a dual stack machine, you can use JSPM to update the kernel. Another way is to extract the Kernel SAR files into the exe\run directory. It is a best practice to update the kernel before the support packages. Take a backup of the existing exe directories before you update the kernel and also pay good attention while downloading the kernel. you need to take care while choosing the correct version of the kernel (either 32 bit or 64 bit and ITANIUM or XEON). If you choose the wrong kernel, then ur SAP system will not come up.
Also a component BC-FES-IGS has some updates, but I don't know what is this and how to update. (it says: Installation for SAP IGS integrated in SAP Kernel igsexe_16-10003071.sar)
Extract the IGS SAR also along with teh kernel files.
All the rest (SAPK* files), seems to be normal patches that is possible to use spam to update them. Correct?
Yes!!! You may have to update the latest SPAM/SAINT (SAPKD700*) before updating the SP's.
How to use SPAM/SAINT? What is used in one time, and on others? Do they do the same?
Support Packs can be updated using SPAM and the add-on upgrades has to be done using SAINT.
Regards,
Varadharajan M -
i had a third update showing on my iphone 4, i had already updated to the 07 and downloaded the second update to help fix bugs etc. the second update only took a few minutes unlike the first original update that took 4 1/2 hrs! when i saw the third updade i plugged in the phone, connected to wifi and hit update. it showed the apple sign and the bar underneath showing the progress. i left the phone to do its thing and when i went to get it about 1/2 later the phone had a itunes logo and and a picture of a charger showing. it would not do anything. it was frozen. i looked up online how to fix it. it told me to connect to itunes and then to restore. it would make sure that i could keep my contacts and pictures. the restore took 3 hrs, as it started at 78 min which actually took way longer, then when there was only 30 min left it stopped and went back to the "do you want to restore" question and i had to start all over. when it was finally done, i still have the itunes logo and its still frozen..please help!
See Here for
Unable to Update or Restore
http://support.apple.com/kb/HT1808 -
I just recently installed Illustrator on an Windows 8 machine and when I try to launch it 32 or 64bit it crashes right after the splash screen.
Your info is too vague. you have to provide detailed system info and otehr details liek the crash logs. On a hunch you may need to look at this:
http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
Mylenium -
After installation it told me to update or research several plugins. I updated Silverlight and JAVA. I was instructed to shut down and restart my computer to test the JAVA installation. I did this and the installation is fine. At this point I no longer had the screen with the list of plugins that need updating or researching.
THis is probably the page you saw.
http://www.mozilla.com/plugincheck/
You can also access it from the Firefox menu by clicking "Tools -> Add-ons -> Plugins" and then clicking the Find Updates button at the bottom. -
i need to know if palm pixie plus runs with 500 kilobytes or more please some one HELP MEEEE
Post relates to: Pre Plus p101vzw (Verizon)Sorry, your question isn't very clear... What are you asking?
- what storage capacity does the phone have?. (8gb, 7 available to user)
- will the phone run if it has only 500kb free?. (doubtful)
- is it possible to stream netflix through your Pixi to your PS3? (doubtful again). You would have to be getting a strong 3g signal and then figure out how to get netflix to work.
If I were you, I'd search for this answer over at PreCentral.net. I got zero hits for "Netflix" in the Pixi board. Many users were using "FreeTether" instead of the VZW app.
WyreNut
I am a Volunteer here, not employed by HP.
You too can become an HP Expert! Details HERE!
If my post has helped you, click the Kudos Thumbs up!
If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked! -
I have recently upgraded to the latest version of itunes. I have just tried to access itunes for the first time since upgrading and now I get a message saying I do not have the appropriate permissions to access it. It will not launch at all. I have also recently changed my ISP, help anyone?
This is the iPod touch forum. I requested the moderators to move your post to the iPod classic forum.
Maybe you are looking for
-
Hello, I've encountered issue during installation of SP1 to SQL Server 2012. After upgrade I'm getting this error in Event Log: Script level upgrade for database 'master' failed because upgrade step 'msdb110_upgrade.sql' encountered error 537, state
-
I have tried everything to get into iTunes without putting on a credit card. Has anyone found a way in? Even icloud doesn't work for me.
-
How to find out in which albums a library photo is represented
Basically my problem is stated in the question, I'm trying to find out in which albums certain library/event photo's are represented. Since I'm moving from albums to events this would be a great help in naming the events. Thanks, Peter
-
Is it possible that no one else has had this problem? I received no answers to my previous post: Is there any way to change the pixel depth when rendering a TGA sequence? The source material - an HD MOV file - has no alpha but when I render in Compre
-
Export specific query/report definition
Hi, I there a method of exporting just one query definition or report ? I tried the Export Data functionality , from Import and Export Tools under System Administrator, but seems like it exports all the reports. A filter on this page could be nice, j