winrt-xaml

How to get all the textBoxes in the UserControl added into GridView

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-06 07:54:45
On the Page, I add UserControl into GridView dynamically. So, each UserControl can contain different kind of controls ( TextBox, CheckBox, Radio Button) say , the name of UserControl is : UserForm. problem : How to get a collection of control using VisualTreeHelper and check if textBox is empty. I found a code similiar to this problem and modified it but not working. I dont know what this means and if this is required? list.AddRange(AllTextBoxes(child)) Should I use MyList.Select() or MyList.Where() ? void FindTextBoxes() { List <TextBox> MyList = AllTextBoxes(UserForm); var count = MyList

Unable to navigate to page after extended splash in Windows 8 application

六眼飞鱼酱① 提交于 2019-12-06 07:50:12
I've created extended splash screen following guide offered by Microsoft. The screen shows off, data loads, but then the app doesn't navigate to landing page. How is this possible? ExtendedSplash.xaml.cs public sealed partial class ExtendedSplash { public ExtendedSplash(SplashScreen splash) { this.InitializeComponent(); // Position the extended splash screen image in the same location as the splash screen image. this.extendedSplashImage.SetValue(Canvas.LeftProperty, splash.ImageLocation.X); this.extendedSplashImage.SetValue(Canvas.TopProperty, splash.ImageLocation.Y); this.extendedSplashImage

How to start a MetroApp directly in Snapped mode? [duplicate]

99封情书 提交于 2019-12-06 07:21:14
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: Force WinRT app to snapped view Is it possible to start a MetroApp directly in snapped mode? I want to call another App by Protocol, an the App should open in Snapped mode. The call to the App by Protocol is not a problem, it works fine, but the App opens in Fullscreen or Main-Content Mode. I have'nt found any configuration to say "start on Sidebar". Please Help! 回答1: As of now the answer is no. Since the

watermarked PasswordBox in winrt

耗尽温柔 提交于 2019-12-06 07:09:26
is it possible to get a watermarks passwordbox in WinRt? It is no problem to get a textbox with a watermark, but I don't know a toolkit where I can get a password box with a watermark. How can I implement one for myself? Take a look on WinRT XAML Toolkit . They also have WatermarkTextBox WatermarkPasswordBox By yourself you can implement your own controls: in .xaml: <Border x:Name="brdPassword" Margin="5,0,5,10" BorderThickness="2" BorderBrush="White" CornerRadius="5" Grid.Row="0" Background="White" Height="50" VerticalAlignment="Stretch"> <Grid> <TextBox x:Name="PasswordWatermark"

Creating hub page with different controls in Windows 8

南笙酒味 提交于 2019-12-06 05:25:10
问题 The most landing/hub pages you see are just a GroupedGridView ( for example the actual marketplace app ) But I would like to have a Grouped hub page with different controls. For example my first control is a ListView that contains some categories. 2nd and 3th control are GridViews with several items in them. If all 3 controls were GridViews I could easily get this working but it's not. I can't seem to find a working combination of ScrollViewer with a Grid or Stackpanel to get the actual full

How to get access to WriteableBitmap.PixelBuffer pixels with C++?

本秂侑毒 提交于 2019-12-06 04:37:33
问题 There are a lot of samples for C#, but only some code snippets for C++ on MSDN. I have put it together and I think it will work, but I am not sure if I am releasing all the COM references I have to. 回答1: Your code is correct--the reference count on the IBufferByteAccess interface of *buffer is incremented by the call to QueryInterface , and you must call Release once to release that reference. However, if you use ComPtr<T> , this becomes much simpler--with ComPtr<T> , you cannot call any of

ListView's item insert animations in WinRT

感情迁移 提交于 2019-12-06 04:26:46
问题 Recently I started building my own big Windows 8 Store App. Working on UI I started replicating some good UIs. One I met very interesting animation of inserting new elements in list view in standard Mail app. When you click on chain it expands and shows all messages in chain. Here is captured video. I have no idea what technique did they use to achieve this animation and behavior. Can anyone help me, explain or give example how can I achieve such behavior? Thanks. 回答1: The mail app is written

Page.OnNavigatedTo doesn't get called in Windows Store app

萝らか妹 提交于 2019-12-06 04:26:05
I have a Windows Store mess around app. I added a Basic Page and it added the Common classes, such as LayoutAwarePage. But Page.OnNavigatedTo doesn't get called when an app starts. The MSDN doc says: Invoked when the Page is loaded and becomes the current source of a parent Frame Which happens during launch. I discovered this when LoadState wasn't being called. Rick Barraza uses LoadState, which is called by OnNavigatedTo, in his demo: http://channel9.msdn.com/Series/Migrating-apps-from-Windows-Phone-to-Windows-8/Binding-the-Interface-in-Windows-Store-apps#time=2m50s I know something is broken

How to store save Thumbnail image in device in windows 8 metro apps c#

泄露秘密 提交于 2019-12-06 04:21:40
问题 I am creating Thumbnail and showing in frame by using this code Platform -> windows 8 metro apps using c# http://code.msdn.microsoft.com/windowsapps/File-and-folder-thumbnail-1d530e5d in windows 8 metro apps using c#. i need to save or Store ( in device )the thumbnail image which i am creating at run time. in DisplayResult() of constants.cs class file i need to save that image in device how to achieve this . please give me some idea or example i am very new in mobile and never worked on Image

Size GridViewItems to fill GridView?

大憨熊 提交于 2019-12-06 03:36:12
I have the opposite of this problem: How do I dynamically size a GridView Item? I have a GridView with two rows and four columns. The desired behavior is for the GridViewItems to fill the cell, and I can't figure out a way to do this. The GridViewItem is a Grid with some other content, which I have as a DataTemplate. I can provide a Width and Height for an item, but that only works for one resolution, and I need the items to be dynamic and proportional, so if they are displayed on a different device they will continue to be 2 rows of 4 items. On a different page, I have a static Grid with the