winrt-xaml

Equivalent of editable ComboBox in WinRT?

╄→гoц情女王★ 提交于 2019-12-22 09:03:39
问题 The standard (desktop) windows combobox has three styles; Simple, Dropdown, and Drop List. Dropdown works like an edit control and a combobox, whereas Drop List doesn't allow editing. Am I missing something, or does the XAML ComboBox control in a Windows 8 store app only support the Drop List style? I was halfway through implementing something when I ran into this, and the more I look, the more it seems that it just isn't supported. Do I really need to replace the ComboBoxes in my screens

ScrollViewer in Windows 8: always show vertical scrollbar

匆匆过客 提交于 2019-12-22 08:37:03
问题 How always show vertical scrollbar in the scrollviewer? It disappear in few seconds, but I want to make scroll visible all the time when scrolling is available Thanks for any help 回答1: I think there might be a bug in the control in Windows 8 Consumer Preview, since the following should normally work: <ScrollViewer Style="{StaticResource VerticalScrollViewerStyle}" VerticalScrollBarVisibility="Visible" Template="{StaticResource ScrollViewerControlTemplate1}"> As a workaround you can modify the

Is it possible to set a subject to the mail app in Windows 8 metro application, if I am using share contract and sharing files?

风流意气都作罢 提交于 2019-12-22 06:11:36
问题 First of all, I am sharing the content from my windows 8 metro application to another app (for example Mailto app) so: Now I am sharing files to mailto app using share contract and sharing files from my application, I wanted to know if: - Can I set the subject to the mailto app to which I am sharing files as an attachement to that mailto app, if so please let me know how can I do this? If not, please let me know what is the work around? 回答1: As of now, it's not possible. Windows 8 recently

Is it possible to set a subject to the mail app in Windows 8 metro application, if I am using share contract and sharing files?

半城伤御伤魂 提交于 2019-12-22 06:11:16
问题 First of all, I am sharing the content from my windows 8 metro application to another app (for example Mailto app) so: Now I am sharing files to mailto app using share contract and sharing files from my application, I wanted to know if: - Can I set the subject to the mailto app to which I am sharing files as an attachement to that mailto app, if so please let me know how can I do this? If not, please let me know what is the work around? 回答1: As of now, it's not possible. Windows 8 recently

Universal app - Loading combobox' ItemsSource async gives weird behaviour

流过昼夜 提交于 2019-12-22 05:14:21
问题 While working on an Universal App (currently only on the WP8.1-side), I've stumbled upon the following weird thing. I've got a ComboBox, the UserControl (located in the WindowsPhone-project) it's in is binded to a VM in the Shared project. Both the ItemsSource and SelectedItem are binded to their respective properties in the VM. When running the application, when you select any item except the first one, it is working perfectly. But, when I select the first item, the string displayed in the

How can i bind a button in listviewitem to a Command in ViewModel in Winrt

北慕城南 提交于 2019-12-22 04:17:12
问题 I have a NavigateToAccountsCommand RelayCommand property in the ViewModel. When I bind the same to a button on the page anywhere outside the ListView the command binding is working. However as soon as I move this to a ListView's DataTemplate its not working. I have tried changing the binding from NavigateToAccountsCommand to DataContext.NavigateToAccountsCommand still not working. Appreciate your help... <Page x:Class="FinancePRO.App.Views.AccountsView" DataContext="{Binding AccountsViewModel

Alternative to ElementName in x:Bind with DataTemplates

此生再无相见时 提交于 2019-12-22 03:59:11
问题 When using traditional {Binding} syntax you could specify element name to point to a specific control on the page, and be able to access its properties. For example if the page is named page you could do: {Binding ElementName=Page, Path=Name} With the {x:Bind} syntax it says With x:Bind, you do not need to use ElementName=xxx as part of the binding expression. With x:Bind, you can use the name of the element as the first part of the path for the binding because named elements become fields

How to build a SQLite Query to handle string containing an apostrophe

余生颓废 提交于 2019-12-22 01:08:49
问题 If the string company contains an apostrophe, this will cause an error. Example: Company name like "William's store" . How to build an SQLite Query that will handle this kind of problem using SQLite-Net api. I am using SQLite-Net api and I tried both and they did not work. In SQLite-Net api, I think there is no Parameters. What other alternative that I can use? private async void GetCustomerVATGroup(string Company) { 1) string strChkName = Company.Replace("'", "''"); // or Company.Replace("'"

winRT drag and drop, swap two items instead of inserting

十年热恋 提交于 2019-12-21 23:22:42
问题 I'm a long time WPF user but new to WinRT. I'm wondering if there's a built in way or easy way to integrate swapping functionality in containers so that a swap exchanges two items in the container. The behavior desired is drag an item and drop it on another item and have both the dragged item and the item it's dragged onto get their positions in the container swapped). Example I have a list with 1 2 3 4 5 6 7 8, if I drag 7 "on" 4 I want the two items swapped so that the resulting list

How to handle the back button on WP 8.1 using MVVM light?

与世无争的帅哥 提交于 2019-12-21 20:29:40
问题 I'm searching for the appropiate way to handle the back button pressed event on Windows Phone 8.1 WinRT using the NavigationService available on MVVM light 5. So far I think the best place to do it is inside the ViewModelLocator by registering the GoBack method of the NavigationService while creating it following the approach outlined in NavigationService in MVVM Light V5 This is an effective approach. However, I can't handle validation before navigating back so I was wondering if there is a