c# - Combobox not visible to code behind in Silverlight -


I am trying to add items to a compoundbox but can not obtain the code behind the file to identify the combobox XAML's I am pretty sure that I am missing some simple fact, XML shows an empty boxbox here, executing the back code service, waiting for Jason to come back and make it reproduced. Unfortunately I can not find

xaml:

  & lt; Navigation: Page x: Class = "Growing up .view room" xmlns = "http://schemas.microsoft com / winfx / 2006 / xaml / presentation" xmlns: x = "http://schemas.microsoft.com/ Winfx / 2006 / xaml "xmlns: d =" http://schemas.microsoft.com/expression/blend/ 2008 "xmlns: mc =" http://schemas.openxmlformats.org/markup-compatibility/2006 "MC: Ignorable = "d" xmlns: Navigation = "clr-namespace: System.Windows.Controls; assembly = System.Windows Designer." 950 "D: DesignHyat =" 480 "Title =" Home "style =" {Static Resources page} "Detaconteks =" {binding} "xmlns: toolkit =" http: // schemas Microsoft.com/winfx/2006/xaml/presentation/toolkit "xmlns: sdk =" http://schemas.microsoft.com/winfx/2006 / Xaml / present ation / sdk "& gt; & Lt; Grid x: Name =" Leautrut "ShowGridLines =" True "Background =" # FF63lC00 "& Gt; & LT; GridkColumnDefinitions & Gt; & LT; /GridkColumnDefinitions> & Lt; rectangle height = "298" horizontally align = "left" margin = "195,94,0,0" name = "direct" stroke = "Black" Stroktiklikeshn = "2" Vrtiklelinment = "top" width = "582" Fill = "# FFAAAAAAAA" radiosize = "0.25" radiusx = "0.25" /> & Lt; Sdk: label height = "38" horizontal alignment = "left" margin = "387,160,0,0" name = "label 1" vertical alignment = "top" width = "203" content = "select a cell" FontSize = "24" fontwhite = "bold" /> & Lt; Sdk: label height = "18" horizontal alignment = "left" margin = "312,240,0,0" name = "label2" vertical alignment = "top" width = "69" content = "region:" fontisystem = "14" /> & Lt; Combo box x: name = "roomrace" height = "23" horizontal align = "left" margin = "418,235,0,0" vertical alignment = "top" width = "209" /> & Lt; / Grid & gt;   

Back code:

  Using the system; Using System.Collections.Generic; Using System.IO; Using System.Linq; Using System.Net; Using System.Text; Using System.Windows; Using System.Windows.Controls; Using System.Windows.Documents; Using System.Runtime.Serialization.Json; Using System.ServiceModel.Web; Using System.Windows.Input; System.Windows.Media; Using System.Windows.Media.Animation; Using System.Windows.Shapes; Using System.Windows.Navigation; Growing. Datacinaccommissioning; Nameshwara growing up. View (Public Partial Classroom: Page {Public Room} {Initial Timeliness} // To change the status of an existing open lot record call Asynchronous Web Service Asynchronously Call WebClient GRService = New WebClient (); GRS Service. full + = new DownloadStringCompletedEventHandler (GRService_DownloadStringCompleted); GRS service. Download Stringsink (new Uri ( "/ Srsistak / Getares", Urikind. Riletiv));} static void GRService_DownloadStringCompleted (object Sender, DownloadStringCompletedEventArgs e) {List & lt; field & gt; data list = new List & lt; field & gt; (); Memoristrym Memoristrym = new Memoristrym (Ancodingkutif 8kgetbaits (e. Result)); DataContractJsonSerializer ser = new Detataktraktjon Srgrikrta (data list. Gettaip ()); as of DataList = ser.ReadObject (Memoristrym) & lt; Area & gt ;; memoryStream.Close (); RoomAreas.ItemSource = data list;}}}   

I get an error at RoomAreas.ItemSource non-stationary field Su, method, or requires an object reference to the property is the "growing. View. Room.RoomArez '

Sorry if it is difficult to comply.

P> GRService_DownloadStringCompleted method must be non-static Create:

  GRService_DownloadStringCompleted from zero (Object Sender, DownloadStringCompletedEventArgs e) {List & lt; Region & gt; Data List = New List & lt; Region & gt; (); Memorystream memorystream = new memorystream (encoding.utf 8.gatebites (e.zip);) DataContractJsonSerializer ser = New DataTactactjunctiser (Data List. GateType ()); As a list of DataList = ser.ReadObject (memorystream) & lt; Area & gt;; MemoryStream.Close (); RoomAreas.ItemSource = Data List; }    

Comments