winrt-xaml

Do x:Static extensions work in WinRT-XAML?

狂风中的少年 提交于 2019-12-11 08:04:48
问题 Edit: This is continue of this topic:Disable blue border for selected Listview item 2 I wanted to do this in app for Windows 8.1: <ListView x:Name="gui_listView" HorizontalAlignment="Left" Height="610" Margin="48,54,0,0" VerticalAlignment="Top" Width="256" SelectionChanged="gui_listView_SelectionChanged" SelectionMode="Extended"> <ListView.Resources> <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Transparent"/> </ListView.Resources> </ListView> But microsoft

Listview fails to display text of list items when item count exceeds 400 items

风流意气都作罢 提交于 2019-12-11 07:56:47
问题 I am observing that the Listview in my app fails to display the text of listview items when the item count exceeds 400 items. My guess is that this is a memory issue with the phone and not a pattern with larger devices. I assume that I will need to only add a fraction of the items that my listview's itemsource is based on. What is the best approach for managing a listview that's responsible for displaying large amounts of data? Here's my XAML: <ListView x:Name="ContactList" ScrollViewer

MediaCapture and Window VisibilityChanged

狂风中的少年 提交于 2019-12-11 07:15:30
问题 [Question] On Windows Phone 8.1, what exactly happens in between the time when the user leaves the app and the OnSuspended event fires? I'm having trouble with the ability to manage objects in that span, in particular MediaCpture object. To better explain the problem, here is the scenario: The user is on a page with a video preview being pumped to a CaptureElement The user taps the Start button The user taps Back button and returns to the page with a broken MediaCapture With WinRT there isn't

Is it possible to attach Attachements to mailto app in windows 8 metro application?

五迷三道 提交于 2019-12-11 06:53:19
问题 I am launching the mailto app in this way :- using Windows.System; //starts the default mail app with a subject, cc, bcc, and body Launcher.LaunchUriAsync(new Uri("mailto:windows8devs@almostbeta.com?subject=Code Request&cc=kevin@almostbeta.com&bcc=admin@almostbeta.com&body=Hi!")); 1) Can't we attach attachments to mailto app in windows 8? 2) If so please let me know what would be the work around ? Thanks in advance. 回答1: No, you can't attach files to mail app in Windows 8. You need to use

Changing background image based on localsettings

我是研究僧i 提交于 2019-12-11 05:29:47
问题 I define every page background in App.xaml, like this: <Application.Resources> <ResourceDictionary> <ResourceDictionary.ThemeDictionaries> <ResourceDictionary x:Key="Default"> <ImageBrush x:Key="BackgroundImage" ImageSource="Assets/Background.png" Stretch="UniformToFill" /> </ResourceDictionary> </ResourceDictionary.ThemeDictionaries> </ResourceDictionary> </Application.Resources> And now I wish to change the background image if the user select another theme, for example: if(localSettings

How to bind a TextBlock in a template, defining the ListBoxItem of a ListBox, to the IsSelected property of the parent ListBoxItem?

陌路散爱 提交于 2019-12-11 04:59:45
问题 I have a List box defined like this: <ListBox x:Name="EmailList" ItemsSource="{Binding MailBoxManager.Inbox.EmailList}" SelectedItem="{Binding SelectedMessage, Mode=TwoWay}" Grid.Row="1"> <ListBox.ItemTemplate> <DataTemplate> <usrctrls:MessageSummary /> </DataTemplate> </ListBox.ItemTemplate> </ListBox> The UserControl is defined like this: <UserControl x:Class="UserControls.MessageSummary" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com

Windows store xaml and c# how to create accordian style list

倾然丶 夕夏残阳落幕 提交于 2019-12-11 04:58:13
问题 I have a ListView IsGroupedSource is set to true in it's CollectionViewSource. I'm trying to toggle a groups visibility when it's group header is clicked. <CollectionViewSource x:Name="FiltersViewSource" Source="{Binding Filters}" IsSourceGrouped="true" ItemsPath="AttributeValues" /> <ListView x:Name="filtersListView" AutomationProperties.AutomationId="ItemListView" AutomationProperties.Name="Grouped Items" Grid.Row="1" Margin="0,-10,0,0" Padding="30" ItemsSource="{Binding Source=

How to show Marquee style border around object in xaml C# Windows 8

大憨熊 提交于 2019-12-11 04:50:04
问题 Is there a way to show marquee style border around objects in WinRT? I see there is stroke style of border, but I want it to move around the object like the lasso tool border in Photoshop or Paint. Also I need to decide what should be the color of the gap between two strokes of the dashes. Thank you. 回答1: This is what you want, since you want the fill color: <Page.Resources> <Storyboard RepeatBehavior="Forever" x:Name="Test"> <DoubleAnimationUsingKeyFrames EnableDependentAnimation="True"

How to set an Alarm or Reminder events in Windows 8?

六眼飞鱼酱① 提交于 2019-12-11 04:48:41
问题 Do we have a functionality in Windows 8 where I can set an Alarm or a Reminder (with recurrence!!) and forget about it (and the OS will do the rest)? Or do I need to create a background task to do the work? It is not hard to schedule one event but I would not want to schedule a whole set of recurrence events. The calendar is already doing it, can I tie into this mechanism? 回答1: You can use Scheduled Notifications but there's a limit of 4096 of those, so the recommendation for a recurring task

How SQLite.Net-PCL insert DateTime into SQLite

空扰寡人 提交于 2019-12-11 04:25:31
问题 This class will be created as a table by SQLite.Net-PCL class Purchase { [SQLite.Net.Attributes.PrimaryKey, SQLite.Net.Attributes.AutoIncrement] public int QId { get; set; } public DateTime PurchaseDate { get; set; } public int Qty { get; set; } } I need to insert this date into this tblPurchase in SQLite DB. strDate ="2016/08/10" strTime ="10:17:26" string[] strAr_Date = strDate.Split('/'); string strYear = strAr_Date[0].ToString(); string strMth = strAr_Date[1].ToString(); string strDay =