winrt-xaml

Create a theme in Windows 8.1

荒凉一梦 提交于 2019-12-06 11:35:35
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 FrameworkElement.RequestedTheme ) and an enumeration by definition cannot be extended (in C#). Also, if I want

Windows 8 soft keyboard not hidden

青春壹個敷衍的年華 提交于 2019-12-06 11:28:39
We have a Windows Store app that requires the entry of a username and password for accessing a service. When authentication fails connecting to the service we display a popup asking to re-enter their username and password. On a tablet when the user puts the focus on the username or password fields the soft keyboard is displayed correctly. Our login screen is adjusted on detection of the soft keyboard so that all fields and buttons are visible. This all works no problem and when they enter their details and tap on the login button the popup is closed and the app continues. However for some

How to get GridView.Selected Item's Scroll Position in Windows 8 Metro App

和自甴很熟 提交于 2019-12-06 11:24:44
问题 I am selecting gridview item using code, so I also need my gridview to Scrolls at selected item's position , I tried GridView.ScrollintoPosition() but it is not working . IS there any way to get the Scroll position of SelectedItem so that I can scroll it using scrollViewer1.ScrollToHorizontalOffsetWithAnimation() 回答1: There are a few aspects here. I think just gridView.ScrollIntoView(gridView.SelectedItem) should work. It's a bit asynchronous, so the code wouldn't immediately see it scrolled,

Bind Image Source in WPF to a Url

断了今生、忘了曾经 提交于 2019-12-06 10:25:10
问题 I having been browsing around different posts trying to figure out what is wrong with my issue. Basically I have a Image tag on my user control, and the Source I would like to bind to a url. However this does not work. I have tried using a ValueConverter that returns BitmapImage(new Uri((string)value)); but this does not work. The only thing I have been able to get is that you cannot bind to a url and that you have to download the image you want to bind. I do not want to download all images I

Windows Store Apps: Change the icon of an AppBar Button?

亡梦爱人 提交于 2019-12-06 10:11:02
问题 I want to change the icon of an AppBar Button in my Windows Store app. I found that the AppBar buttons have XAML markup that looks like this: <Style x:Key="PicturesAppBarButtonStyle" TargetType="ButtonBase" BasedOn="{StaticResource AppBarButtonStyle}"> <Setter Property="AutomationProperties.AutomationId" Value="PicturesAppBarButton"/> <Setter Property="AutomationProperties.Name" Value="Pictures"/> <Setter Property="Content" Value=""/> </Style> What does the content value  mean? Is there any

Windows Phone 8.1 - Pivot Header

别来无恙 提交于 2019-12-06 09:47:42
问题 i am using pivot control, and i want to change the forground color of headers! but somehow i am not able to do it with pretty easy guess ! <Pivot x:Name="pivot1"> <PivotItem x:Name="pivot1item1" Header="Profile" Style="{StaticResource PuzzlePivotItemHeader}"> <Controls:Profile /> </PivotItem> <PivotItem x:Name="pivot1item2" Header="Filters" Style="{StaticResource PuzzlePivotItemHeader}"> <Controls:Filters /> </PivotItem> </Pivot> and style is : <Style x:Key="PuzzlePivotItemHeader" TargetType=

SimpleIoC - Type not found in cache: Windows.UI.Xaml.Controls.Frame

扶醉桌前 提交于 2019-12-06 09:39:20
I am running into the below error the first time my ViewModel is being instantiated by the SimpleIoC. I believe I have setup the container as it should be, but for some reason, I am still getting the below error. Any ideas or assistance would be very much appreciated. Microsoft.Practices.ServiceLocation.ActivationException was unhandled by user code HResult=-2146233088 Message=Type not found in cache: Windows.UI.Xaml.Controls.Frame. Source=GalaSoft.MvvmLight.Extras StackTrace: at GalaSoft.MvvmLight.Ioc.SimpleIoc.DoGetService(Type serviceType, String key) in c:\Users\Public\Downloads\CodePlex

Text control used in Windows Phone 8.1 messaging app [closed]

风流意气都作罢 提交于 2019-12-06 09:36:51
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I need a text control similar to the one used by WP 8.1 messaging app that shows the up & down arrows that point to 'top-left' and 'bottom right'. I am not able to find one. I do see other apps like 'whapsapp', 'line' etc using similar controls. Is there a preexisting / opensource control available with that

Metro style : Scrolling with mouse wheel

試著忘記壹切 提交于 2019-12-06 09:19:48
I have gridview in the gridview and want to implement the mouse wheel scrolling functionality. So I added this block into the internal gridview <GridView.Template> <ControlTemplate > <ItemsPresenter /> </ControlTemplate> </GridView.Template> But in this case swiping doesn't work How manage I to solve this problem? part 2. I'll try to describe this situation more deeply. I have main screen that should realize functionality like on the main screen in Windows 8. It should be zoomed in/out. That's why i use SenaticZoom. In to ZoomIn I put GridView, that contains controls. The control contain own

RightTapped not fired on Metro ListViewItem if ListView in other than “None” selection mode

柔情痞子 提交于 2019-12-06 08:48:00
问题 The issue is practically the same as described here: http://social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/542b827a-7c8e-4984-9158-9d8479b2d5b1 but I am not satisfied with the answer accepted there and feel that there must be a better solution... I am trying to implement a 'clasic' context menu on my list view (not via the AppBar but via PopupMenu) and that works fine, however only if I set the list view into the "None" SelectionMode. The link above correctly explains that