winrt-xaml

How to print Formatted Page which contain ListBox or GridView

别等时光非礼了梦想. 提交于 2020-01-13 03:44:25
问题 Printing Document using WinRT : 1) To Keep tracking if there are more data Or text data to print in a formatted page. This can be done using RichTextBlock and RichTextBlockOverflow like below: <RichTextBlock Foreground="Black" x:Name="textContent" FontSize="18" Grid.Row="1" Grid.ColumnSpan="2" OverflowContentTarget="{Binding ElementName=firstLinkedContainer}" IsTextSelectionEnabled="True" TextAlignment="Left" FontFamily="Segoe UI" VerticalAlignment="Top" HorizontalAlignment="Left"> <

ObservationCollection that implements ISupportIncrementalLoading within ViewModel inside PCL using MVVM architecture for WinRT & WP8/WinPRT support

邮差的信 提交于 2020-01-12 03:39:08
问题 I have my ViewModels inside a PCL, because I'm developing a Windows 8.1 and Windows Phone app in parallel. I have a list of things inside my ViewModel as an ObservableCollection. I have a GridView inside a Page inside a Windows 8.1 project. I wish to incrementally load items from my list of things in my ViewModel. Normally I would implement ISupportIncrementalLoading inside a custom subclass of ObservableCollection, however, given that my ViewModel is inside a PCL, ISupportIncrementalLoading

How to adjust Brightness and Contrast of an image using a slider?

为君一笑 提交于 2020-01-09 11:19:23
问题 I have an image and i want to adjust its brightness and contrast through a slider in xaml. I don't know where to start.Any help would be appreciated. I am trying to implement this public WriteableBitmap ChangeBrightness(WriteableBitmap inputBitmap, double brightnessValue ) { double Value = brightnessValue; var inputPixels = inputBitmap.Pixels; for (int i = 0; i < inputPixels.Length; i++) { // Extract color components var c = inputBitmap.Pixels[i]; var a = (byte)(c >> 24); var r = (byte)(c >>

Hide Status bar in Windows Phone 8.1 Universal Apps

自古美人都是妖i 提交于 2020-01-09 06:23:27
问题 How to hide the Status bar in Windows Phone 8.1 (C#, XAML)? In Windows Phone 8 it was done by setting shell:SystemTray.IsVisible="False" at any page. But its not available in Windows Phone 8.1 回答1: With the release of Windows Phone 8.1 SDK comes a new StatusBar. The StatusBar replaces the SystemTray from Windows Phone Silverlight Apps. Unlike the SystemTray, the StausBar can only be accessed via code and some functionality has changed. StatusBar statusBar = Windows.UI.ViewManagement.StatusBar

How to move the control/UI elements along with the keyboard in UWP

佐手、 提交于 2020-01-06 19:58:27
问题 I'm wondering if there any solution that could make the app automatically adjust the controls position when the keyboard is activated. For example, in the image below, I want to make those four button on the screen move dependently with keyboard. When the keyboard is activated, buttons move to the center and move back when the keyboard is gone. There might be some similar questions here but I couldnt see them in the search result, maybe they are using some different words on title so if this

How to move the control/UI elements along with the keyboard in UWP

冷暖自知 提交于 2020-01-06 19:57:04
问题 I'm wondering if there any solution that could make the app automatically adjust the controls position when the keyboard is activated. For example, in the image below, I want to make those four button on the screen move dependently with keyboard. When the keyboard is activated, buttons move to the center and move back when the keyboard is gone. There might be some similar questions here but I couldnt see them in the search result, maybe they are using some different words on title so if this

Renewed developer license,. Now i cant debug my winrt app. Error : DEP0700

ⅰ亾dé卋堺 提交于 2020-01-06 19:42:10
问题 I am developing winrt app. Today i renewed visual studio developer's license. from then I'm getting the error. The app is running fine on simulator, but I'm trying to run it on Remote machine where its throwing this error. Error 1 Error : DEP0700 : Registration of the app failed. An internal error occurred with error 0x80070005. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues. (0x80073cf6) I checked this,this,this and this. None helpful in my case

slider control and textblock control interaction-Metro apps

谁说我不能喝 提交于 2020-01-06 15:51:16
问题 i am trying to set the slider control to value from text block's text property through {Binding} on XAML. <Slider ValueChanged="slider_ValueChanged_1" Value= "{Binding ElementName=ComponentTextBlockValue,Path=Text}" StepFrequency="25"/> Do i need an converter to set the slider's value . The binding seems to work sometimes but sometimes it doesn't work. Sometimes,the slider just doesn't set its value to text block value. 回答1: Since you bind the Slider's value directly without a value converter

Windows Store TextBox - How to update binding on Enter key-up?

笑着哭i 提交于 2020-01-06 10:51:40
问题 In a Windows Store app I have a TextBox and I've created an attached property KeyUpEvent.MapsToCommand that looks like this in use: <TextBox Text="{Binding UserGivenName, Mode=TwoWay}" attachedProps:RequiresText.ToEnableControl="{Binding ElementName=SubmitNameButton}" attachedProps:KeyUpEvent.MapsToCommand="{Binding EnterNameCommand}" /> The problem is that the control doesn't lose focus so the binding is never updated. There's no UpdateSourceTrigger and I can't work out a way to get at the

Handle an event in a Data Template loaded by XamlReader.Load(xaml) in code-behind

佐手、 提交于 2020-01-06 07:43:48
问题 How can I bind an event to the DataTemplate (which is generated via xamlreader) in codebehind? This is What I've tried string xaml = @"<DataTemplate " + namespaceString + " >" + rowsXaml + "</DataTemplate>"; Debug.WriteLine("Datatemplate is " + xaml); try { var template = (DataTemplate)XamlReader.Load(xaml); return template; } In XAML: <ListView ItemsSource="{Binding Source={StaticResource GroupedRecords}}" formatter:SwipeListHandler.RecordTemplate="{Binding RecordsTemplate}" BorderBrush=