winrt-xaml

How can I get the actual datetime values from a SQLite table?

旧巷老猫 提交于 2019-12-11 19:29:48
问题 I am querying a SQLite table which has a DateTime member: public class PhotraxBaseData { [SQLite.PrimaryKey] [SQLite.AutoIncrement] public int Id { get; set; } . . . public DateTime dateTimeTaken { get; set; } . . . The records in the table contain dateTimeTaken values ranging from 2008 to 2014. None of the records contain a null or empty dateTimeTaken value. When queried via LINQPad, I get "2008-04-25 10:38:56" for this query: SELECT MIN(dateTimeTaken) FROM PhotraxBaseData ....and "2014-04

How to set text including new line character in storyboard

喜你入骨 提交于 2019-12-11 18:47:59
问题 Want to replace "\n" with new line character <VisualState x:Name="Snapped"> <Storyboard> <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Text" Storyboard.TargetName="textBlock"> <DiscreteObjectKeyFrame KeyTime="0" Value="Here is my text.\nThis is new line"/> </Storyboard> </VisualState> The output text is: Here is my text.\nThis is new line without new line character. P.S.: If this value can be filled with the string in resource file that would be a great..!! Either way will help me

HRESULT E_FAIL when trying to create a folder that's name contains a colon in WinRT

只谈情不闲聊 提交于 2019-12-11 18:35:16
问题 Having a StorageFolder object and trying to create a folder with a name that contains a colon somewhere inside (not at the beginning or the end) results in a COM error with HRESULT 80004005 (HRESULT E_FAIL). Example: await ApplicationData.Current.TemporaryFolder.CreateFolderAsync("abc:xyz", CreationCollisionOption.OpenIfExists); If the colon is at the beginning ot at the end I get a HRESULT 8007007b with the message "The filename, directory name, or volume label syntax is incorrect". That's

Role based View XAML

走远了吗. 提交于 2019-12-11 18:34:25
问题 I am developing a WinRT app which has many user roles. The View of many pages in my app change based on the Userrole For eg. I have a Student role and a Professor role. When the Student logs in he will see personal-info, performance chart, todos and badges received and when a professor logs in she will see her personal-info, todos and feedback received How do I only show the components which are necessary? Is binding Grid.Visibility a good way of doing this or is there any better way? Update:

Is it possible to hide the SIP (soft keyboard) in Win 8?

女生的网名这么多〃 提交于 2019-12-11 17:51:24
问题 When the user edits a record, a XAML Popup shows a small form. The software keyboard appears when the user gives focus to a TextBox. This is good. OnKeyDown (if Enter ) I commit the user's changes. After the changes are committed, I hide the XAML Popup. The SIP remains visible even though the form is invisible. What is the correct way to handle this scenario? PS: this ( Show/Hide Keyboard programmatically on windows8 ) is not a solution to this problem. That's because the question is wanting

Visual Studio 2012 RC designer does not recognize xaml for a Windows Metro app

自古美人都是妖i 提交于 2019-12-11 17:44:10
问题 I recently installed the release candidate for Visual Studio 2012 and the release preview for Windows 8. I lost xaml intellisense and VS treats xaml as an XML document. Does anybody else have any ideas where to start to fix this problem? 回答1: I simply re-installed Visual Studio 2012 RC. I'm not willing to attempt to reproduce the problem, but I believe this is what I did: Upgrade windows 7 professional with Visual Studio 2010 installed to Windows 8 professional, Installed Visual Studio 2012

WinRT with VS2010 on Win8?

蓝咒 提交于 2019-12-11 16:34:37
问题 To what extent is it possible and legal to developer WinRT applications with VS2010 Pro? On the one side, I think it should be perfectly possible and legal to create an HTML5/CSS/JavaScript WinRT App with VS2010 Pro since you can probably do so using Win 8 Notepad. On the other side, I think it might be difficult and possibly illegal to create an C# WinRT App via VS2010 Pro since doing so might require the user to circumvent intentional limitations of the VS2010 Pro software. In the old days,

SQLite.Net, C# equivalent for SQLite bit datatype

时间秒杀一切 提交于 2019-12-11 13:08:43
问题 I declare following class in c# [Table("Employee")] public class Employee { [PrimaryKey,AutoIncrement] public int EmployeeId { get; set; } public DateTime DateOfJoining { get; set; } public string Address{ get; set; } } and i invoke this method to create equivalent table in my SQLite database public async Task CreateTable() { SQLiteAsyncConnection conn = new SQLiteAsyncConnection(path); await conn.CreateTableAsync<Employee>(); } So it creates a table in SQLite as follows [EmployeeId] int,

In WinRT XAML - tapping and clicking on a button is not the same?

时光怂恿深爱的人放手 提交于 2019-12-11 12:58:00
问题 When hooking the Tapped event on a page (so I can get all events that are not caught by children), I am also getting the event fired when a user taps a button on the page. I would have expected the button to "swallow" the tap, but that does not seem to be the case. The workaround is simple, if annoying - hook the Tap event on each button present and set Handled to true. I get how to do the workaround. My question is whether or not I am understanding this correctly. If hooking the Tap event on

Get x:Uid propertry of TextBlock in Metro

谁说我不能喝 提交于 2019-12-11 12:52:19
问题 Is there any way to get x:uid property of control in metro apps. <Button x:Name="ViewPanelButton" Grid.Column="3" Grid.Row="0" x:Uid="s_View" VerticalAlignment="Bottom" Margin="5,0,0,5" HorizontalAlignment="Center" Style="{StaticResource MainPageButtonStyle}" Click="ViewPanelButton_Click" Height="22" Width="Auto" /> I want to get this x:Uid property from code behind. It is property in WPF but not in metro. Is there any way to get this property in metro apps ? 回答1: With regret, I have