winrt-xaml

Accessing a button created in a sub xaml page from it's parent Shell xaml

若如初见. 提交于 2019-12-12 03:46:05
问题 I'm working with a SplitView application, and I've created a Shell that hosts the subpages. What I'd like to do is have a button on a subpage that when clicked, can manipulate the visibility of objects originally initiated or created on the Shell xaml. But, I'm not sure how to call the class or frame necessary to change attributes on the SplitView. My hierarchy is as follows: Shell > Pages Folder > Sub Pages Here's the snippet from my Shell.xaml Mind you this is only a portion contained

Create sub folders in My Pictures from Windows Store application

有些话、适合烂在心里 提交于 2019-12-12 03:46:01
问题 I'm trying to create a folder structure within My Pictures folder from a Windows store app. But I can't seem to get pass the first level. I create my first level folder using the following code: IAsyncOperation<StorageFolder> appFolder = Windows.Storage.KnownFolders.PicturesLibrary.GetFolderAsync("AppPhotos"); if (appFolder==null) { //Create folder appFolder = Windows.Storage.KnownFolders.PicturesLibrary.CreateFolderAsync("AppPhotos"); } Now I want to create another folder below this call

Cannot convert string to DateTime in uwp

谁都会走 提交于 2019-12-12 03:45:23
问题 private string GetSystem() { StringBuilder results = new StringBuilder(); DateTimeFormatter[] basicFormatters = new[] { // Default date formatters new DateTimeFormatter("shortdate"), // Default time formatters new DateTimeFormatter("longtime"), }; DateTime dateandTime = DateTime.Now; foreach (DateTimeFormatter formatter in basicFormatters) { // Format and display date/time. results.Append(formatter.Format(dateandTime)); results.Append(" "); } return results.ToString(); } dateString =

How to obtain Multi-level hierarchy with CollectionViewSource to bind to Semantic Zoom in Windows 8.1

非 Y 不嫁゛ 提交于 2019-12-12 03:25:32
问题 I have a Windows 8.1 Application in which I am trying to achieve 3 levels of Hierarchy with CollectionViewSource and then Bind it to my Semantic Zoom My model class looks as follows class Transaction { string id {get; set;} string name {get; set;} DateTimeOffset date {get; set; } Sample value of this model could be as follows [1, Food, 31/08/2014] [2, Movie, 15/08/2014] [3, Medicine, 20/07/2014] [4, GameConsole, 02/07/2014] [5, MobileBill, 18/06/2014] [4, Tv, 06/06/2014] I want to display

Trouble binding XAML uwp

两盒软妹~` 提交于 2019-12-12 02:36:30
问题 Hi I am following this tutorial,http://blogs.u2u.be/diederik/post/2011/11/14/null.aspx, to bind the visibility of an element to a Boolean property. The program is not working. Here is the code: <Page.Resources> <local:BooleanToVisibilityConverter x:Key="TrueToVisibleConverter"/> </Page.Resources> <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <StackPanel> <TextBlock Text=" Hello World" Visibility="{Binding Path=Show_element, Converter={StaticResource

XAML nested Gridview disable outer grid visual styles

大城市里の小女人 提交于 2019-12-12 02:32:10
问题 I am using nested Gridview (gridview inside another grid view) in Windows 8 metro application. I want to disable visual styles on all the events on outer grid, events like click, tapping, and dragging etc. Please help. Thanks 回答1: You should not nest GridViews. It is like nesting list boxes - even if it worked - it would be confusing to the user. 来源: https://stackoverflow.com/questions/11190147/xaml-nested-gridview-disable-outer-grid-visual-styles

Common Login for multiple WinRT apps

萝らか妹 提交于 2019-12-12 02:31:58
问题 I have two WinRT apps which request same Login service for a session. There is a global HttpClient(along with a cookiecontainer) in each of the apps which saves the cookie for further requests. Currently if a user logs into app A and opens App B, the user has to login again(Even if the session has not timed out). I do not want the user to login again if he has logged into one app. How can I achieve this? How can I share this HttpClient object across apps? Edit: Sessions are being maintained

Segoe UI Symbol emoji character not displaying in colour on Windows Phone 8.1

霸气de小男生 提交于 2019-12-12 02:00:00
问题 On Windows Phone 8, the following xaml displays an emoji character in colour: <TextBlock FontFamily="Segoe UI Symbol" TextOptions.DisplayColorEmoji="True" Text="smilie's unicode that I don't have off-hand"/> However, when this code is run on Windows Phone 8.1, the emoji's background colour is unfilled. That is, it's not got a yellow background; the emoji's outlines are only coloured. So, for example, it looks like this in Windows Phone 8.0: But it looks like this in Windows Phone 8.1: I've

Windows Phone 8.1: How to change the color of the Title text of ListPickerFlyout

时间秒杀一切 提交于 2019-12-12 01:55:42
问题 I have a Windows Phone 8.1 Application. I have a button with a ListPickerFlyout in it. The color of my title regardless of the theme is always white. How do I change the color of the title so that it can adapt to the different themes? <Button x:Name="myButton"> <Button.Flyout> <ListPickerFlyout x:Name="myListPicker" PickerFlyoutBase.Title="HELLo"> </ListPickerFlyout> </Button.Flyout> </Button> I might have overridden a themebrush to be always white which might be causing this issue. The

How to hold up drawing of a UI element until rest of the page has loaded?

孤街浪徒 提交于 2019-12-12 01:42:17
问题 ListView is making the startup time of my app very long. First I see nothing and then the whole page with all of it's contents is drawn at once. How can I make the page draw up without the ListView (or an indeterminate progress ring at it's place) and only after that start drawing the ListView? Also the app need to be able to respond to a backey press during loading. Changing ListView.Visibility to collapsed at XAML and the to Visible on Page_Loaded does not have the desired effect; Only if I