Tag: 选择器

选择器的完成按钮的Event_Handler

我有一个带有项目列表的xamarin选择器,我想在iPhone上按下“完成”按钮并在android上按下“Oke”按钮时删除选择器。 我有删除选择器的代码。 但我不知道可能由哪个event_Handler。 码: Picker picker = new Picker { Title = “What’s in the slot?”, VerticalOptions = LayoutOptions.CenterAndExpand //HorizontalOptions = LayoutOptions.Center }; private void Displaypickerview(int row, int column) { if (status == “filling board”) { foreach (string text in pickerText) { picker.Items.Add(text); } foreach (string ore in oreLevels) { picker.Items.Add(ore); } picker.SelectedIndexChanged += (sender, […]

XPath小写()函数

我正在使用XPATH从XML文档中选择某些节点。 用户可以插入该位置的值。 它工作正常,但如果使用不同的情况则不起作用。 我已经决定在比较之前将XML值和用户输入更改为小写可能是最好的方法。 我现在有这个作为我的选择器: NodeIter = nav.Select(“/Houses/House/location[contains(../location, ‘” + location_input + “‘)]”); 我已经尝试将lower-case()函数放在不同的位置,但它并不满意。 如何使../location的值作为小写进行比较? 注意:在我的c#代码中使用ToLower()将location_input设置为较低。