winrt-xaml

Programming wpf xaml vs windows rt with c# and xaml

眉间皱痕 提交于 2020-01-05 15:15:07
问题 Ok. I know wpf and am learning programming windows runtime via c# and xaml. Both use xaml that have the same namespace. Win rt is new and has the same namespace declared at the root element. What are the similarities and differences. 回答1: Here are some of the differences between WPF and WinRT: Different XML namespace declaration in XAML code (Instead of using a clr-namespace:/assembly= qualifier set for code-to-XAML namespace references, you use the using: qualifier. XAML namespaces no longer

how to create gridview from dictionary

徘徊边缘 提交于 2020-01-05 07:09:16
问题 I have a dictionary where key is a String and element is a List I want to create a group from every key with elements from element. But I don`t know how to make it <Page.Resources> <!-- Collection of grouped items displayed by this page, bound to a subset of the complete item list because items in groups cannot be virtualized --> <CollectionViewSource x:Name="groupedItemsViewSource" IsSourceGrouped="true" /> </Page.Resources> <GridView ItemsSource="{Binding Source={StaticResource

opening the appbar in metro style apps using binding property

≯℡__Kan透↙ 提交于 2020-01-05 04:36:23
问题 My main page has the appbar and it is shared across different pages. I wrote the following code to open the appbar on the click of a gridview item. XAML <AppBar Opened="AppBar_Opened" IsOpen="{Binding IsAppBarOpen}"> Back end private void Clock_SelectionChanged(object sender, SelectionChangedEventArgs e) { App.ViewModel.SelectedClock = (Clock)ThemeGridView.SelectedItem; App.WorldViewModel.IsAppBarOpen = true; } private void ThemeGridView_ItemClick(object sender, ItemClickEventArgs e) { App

UWP Template10 Hide hamburger button when menu is open

▼魔方 西西 提交于 2020-01-04 06:51:10
问题 I want to hide hamburger menu button automatically in order to display menu from the top to the bottom of the page. For this purpose I tried to bind HamburgerButtonVisibility to IsPaneOpen property: <controls:HamburgerMenu x:Name="Menu" VisualStateNarrowMinWidth="0" HamburgerBackground="White" HamburgerForeground="Black" NavAreaBackground="{StaticResource MenuBackground}" HamburgerButtonVisibility="{x:Bind Menu.IsOpen, Mode=OneWay, Converter={StaticResource ReverseBooleanToVisibilityConverter

Display a TextBlock over a MediaElement when in full screen

荒凉一梦 提交于 2020-01-03 05:50:30
问题 I have a MediaElement and a TextBlock next to it. But when I set MediaElement to fullscreen, this TextBlock disappears. Can anyone share a solution? <MediaElement Name="player" Margin="10,5" AreTransportControlsEnabled="True" /> <TextBlock Margin="10"/> 回答1: As I have said in this thread, when we are in the Full Window mode, it will go to the FullWindowMediaRoot layer with the MediaTransportControls. In this way the TextBlock will disapper, because there is no place to show the TextBlock. In

Launching the Windows Store listing from Win RT / Windows 8 app

倾然丶 夕夏残阳落幕 提交于 2020-01-03 03:59:33
问题 On Windows Phone there's a marketplace review task. Is there any way to implement the equivalent functionality in WinRT apps? I realize that there's the "rate and review" button in the Charms bar, however, this is not what I need, as I want to integrate a button inside the app to launch the review UI. It may seem trivial, however, this is one of the most important requirements! This is not a duplicate of is there an equivalent of wp7's marketplacereviewtask for windows 8 / winrt / metro style

Change GridView GroupStyle in VisualState

老子叫甜甜 提交于 2020-01-03 02:19:44
问题 In my Windows 8.1 WinRT/XAML app I have a grouped GridView with a corresponding GroupStyle : <GridView ItemsSource="{Binding Source={StaticResource groupedViewSource}}"> ... <GridView.GroupStyle> <GroupStyle> <GroupStyle.HeaderTemplate> <DataTemplate> ... </DataTemplate> </GroupStyle.HeaderTemplate> <GroupStyle.Panel> <ItemsPanelTemplate> <VariableSizedWrapGrid Style="{StaticResource NormalWrapGridStyle}" /> </ItemsPanelTemplate> </GroupStyle.Panel> </GroupStyle> </GridView.GroupStyle> <

Linking only vertical offset of two scrollviewers

独自空忆成欢 提交于 2020-01-03 01:20:06
问题 I have a scrollview with a big grid containing two smaller grids. the grids are supposed to scroll together vertically, but only the right grid should scroll horizontally. This is because the information in the left grid is needed as a reference while the right grid can contain 100+ columns. I have already tried putting the grids in separate scrollviews and linking them with an eventhandler. But I didn't find any code to do this in a Windows 8.1 application. Is there any way to do this for

Create a theme in Windows 8.1

你离开我真会死。 提交于 2020-01-02 19:55:31
问题 In Windows 8, you were able to create your own themes for your application (here's a tutorial). In Windows 8.1 Applications, themes are handled differently: you can change them at run-time and set a theme for a specific control in your XAML (if you don't want to apply the theme to the whole Application). For instance: <Grid x:Name="MainGrid" RequestedTheme="Dark"> However, I could not find a way to create my own themes. The property RequestedTheme takes an enumeration (its type is

Create a theme in Windows 8.1

浪尽此生 提交于 2020-01-02 19:55:03
问题 In Windows 8, you were able to create your own themes for your application (here's a tutorial). In Windows 8.1 Applications, themes are handled differently: you can change them at run-time and set a theme for a specific control in your XAML (if you don't want to apply the theme to the whole Application). For instance: <Grid x:Name="MainGrid" RequestedTheme="Dark"> However, I could not find a way to create my own themes. The property RequestedTheme takes an enumeration (its type is