Saturday 15 June 2013

wpf - Set ItemsSource of a ComboBox to an Array of Integers? -


Set the items in an array of array for a combo box?

  & lt; Window xmlns = "http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns: x = "http: // Schemas.microsoft.com/winfx/2006/xaml" xmlns: sys = "clr- Namespace: system; assembly = mscorlib "& gt; & Lt; Window.Resources & gt; & Lt; X: array x: key = "integers" type = "{x: type: sys: int32}" & gt; & Lt; Sys: Int32 & gt; 0 & lt; / Sys: Int32 & gt; & Lt; Sys: Int32 & gt; 1 & lt; / Sys: Int32 & gt; & Lt; Sys: Int32 & gt; 2 & lt; / Sys: Int32 & gt; & Lt; / X: array & gt; & Lt; /Window.Resources> & Lt; Combo box itemSource = "{binding source = {staticRSource inters}}" /> & Lt; / Window & gt;  

No comments:

Post a Comment