ComboBox中的UWP TemplatePart

时间:2017-02-17 02:43:59

标签: combobox uwp

为什么ComboBox中没有TemplatePartAttribute?

UWP:

public ActionResult subcategory(string brand, ..., Dictionary<string, string> filters)
{
    foreach(KeyValuePair<string, int> item in filters)
    {
        int category = Convert.ToInt32(item.Key.Split('-')[0]);
        int filter = item.Value;
    }
}

WPF:

[Composable(typeof(IComboBoxFactory), CompositionType.Public, 65536, "Windows.Foundation.UniversalApiContract")]
[ContractVersion(typeof(UniversalApiContract), 65536)]
[MarshalingBehavior(MarshalingType.Agile)]
[Static(typeof(IComboBoxStatics2), 65536, "Windows.Foundation.UniversalApiContract")]
[Static(typeof(IComboBoxStatics), 65536, "Windows.Foundation.UniversalApiContract")]
[Threading(ThreadingModel.Both)]
[WebHostHidden]
public class ComboBox : Selector, IComboBox, IComboBoxOverrides, IComboBox2

0 个答案:

没有答案