winrt-xaml-toolkit

How to set axis margin in WinRT XAML Toolkit line chart?

与世无争的帅哥 提交于 2020-01-11 14:26:08
问题 Answer Finally I solved my answer with this. ((LineSeries)MyChart.Series[0]).IndependentAxis = new LinearAxis { Minimum = 1, Maximum = 5, Orientation = AxisOrientation.X, Interval = 1, Margin = new Thickness(10, 0, 10, 0) }; ((LineSeries)MyChart.Series[0]).Clip = null; ((LineSeries)MyChart.Series[0]).Margin = new Thickness(10, 0, 10, 0); I am drawing line chart with help of WinRT XAML Toolkit. I am setting X axis manually, but when I set I am getting wierd start & end point. I tried to set

x:Bind Converter and FallbackValue not collaborating (UWP 10)

萝らか妹 提交于 2019-12-23 12:18:52
问题 I have a problem that involves a bunch of code, but I've isolated it down. If you want a TL;DR; jump to it further down. If you want a bit of context, here's my situation: I have created three data converters for my bindings. One of them is a "string prefixer": it prefixes whatever you put in with a fixed string. In the current example, that fixed string is "ms-appx:///cache/" . The second one turns a string type into an ImageSource , and the third one chains multiple converters together. I

WinRT XAML Toolkit Visualization error

梦想与她 提交于 2019-12-21 14:07:14
问题 I have a page where I want to put a chart using WinRT Xaml Toolkit Data Visualization Controls. I have the following code: <Charting:Chart x:Name="PieChart" Width="400" Height="400"> <Charting:Chart.Series> <Charting:PieSeries IndependentValuePath="X" DependentValuePath="Y"/> </Charting:Chart.Series> </Charting:Chart> VS tells me, PieSeries is wrong: "A value of type 'PieSeries' cannot be added to a collection or dictionary of type 'Collection`1'". Why is this an error? 回答1: It's not fully

Stop YouTube Video on Back Button of Windows Metro App 8.1

纵饮孤独 提交于 2019-12-13 07:09:34
问题 I have a page on which i am showing multiple youtube videos as webviews. When i play any video, then correspoding video starts playing. But When I click on the back button of the App i should be stop then but its running in background(can hear voice of video). here is the code of back button: protected void GoBack(object sender, RoutedEventArgs e) { ((Frame)Window.Current.Content).GoBack(); } Tell me how i can dispose of this webview or can stop video. Thanks 回答1: First make sure that the

WinRT Xaml Toolkit Column Series Error?

一曲冷凌霜 提交于 2019-12-12 11:34:20
问题 I have a Chart from Win RT Xaml Toolkit that I want to display a ColumnSeries like this: <charting:Chart Name="columnChart" Grid.Row="1" Grid.Column="1" Width="400" Height="400"> <charting:Chart.Series> <charting:ColumnSeries ItemsSource="{Binding items}" IndependentValueBinding="{Binding Name}" DependentValueBinding="{Binding Value}" IsSelectionEnabled="True"> </charting:ColumnSeries> </charting:Chart.Series> </charting:Chart> but I always receive this error: WinRT information: Cannot add

Change the Foreground color of a TextBlock inside a ListView's DataTemplate when the item is selected

情到浓时终转凉″ 提交于 2019-12-12 10:26:34
问题 I'm building a Windows Store app with C#/XAML. I have a simple ListView bound to an ItemsSource. There's a DataTemplate which defines the structure of each item and that has a ContentControl and a TextBlock in it. I wish to change the Foreground colour of the TextBlock when the item is selected. Does anyone know how I can do this? <ListView Grid.Column="1" ItemsSource="{Binding Categories}" ItemContainerStyle="{StaticResource CategoryListViewItemStyle}" Background="{StaticResource

WinRT XAML Toolkit TreeView Save state

北城余情 提交于 2019-12-12 02:28:02
问题 there is a way to save the state of a treeview (expanded and selected properties) in order to keep state during navigation and tombstone of application? I don't want to add such of information on itemsource since semantically are two different metter. ItemSource is a domain object not having any relationship with expanded state. Thank you. 回答1: You can save those informations inside the ViewModel associated with each node of the tree like this : public class PersonViewModel { readonly List

Highlight days on WinRTXamlToolkit.Controls.Calendar

老子叫甜甜 提交于 2019-12-11 19:06:24
问题 I wrote a Windows Phone 8.1 (WINRT) App. I need to show Calendar in the page with Highlighted days like holiays. So, I added WinRT XAML Toolkit - Calendar Control from nuget. PM> Install-Package WinRTXamlToolkit.Controls.Calendar <Page x:Class="DrFit.Pages.ActivityTimeTablePage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:DrFit.Pages" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"

How to bind my ObservableCollection two way to a ListView Extension WinRT Xaml Toolkit

跟風遠走 提交于 2019-12-11 08:43:52
问题 I have a Windows 8.1 application with a ListView and I am using ListViewExtensions from WinRt Xaml Toolkit(Obtained latest from Nuget) to bind BindableSelection Here is my XAML <ListView ItemsSource="{Binding AllItems}" SelectionMode="Multiple" ext:ListViewExtensions.BindableSelection="{Binding SelectedItems, Mode=TwoWay}"> <ListView.ItemTemplate> <DataTemplate> <TextBlock Text="{Binding}" /> </DataTemplate> </ListView.ItemTemplate> </ListView> In my ViewModel I have the following

How to clear break point error on windows phone using WinRTXamlToolkit.Controls.Calendar

家住魔仙堡 提交于 2019-12-08 13:52:31
问题 HI all I am developing a calendar application for windows phone and I am decided to use WinRTXamlToolkit.Controls.Calendar,and I just opened a new project and add WinRTXamlToolkit.Controls.Calendar reference then create calendar in xaml,That is it ,It s build successfully, But when I loaded it throws a exception in XamlTypeInfo.g.cs as "An exception of type 'System.IO.FileNotFoundException' occurred in WinRTXamlToolkit.Controls.Calendar.DLL but was not handled in user code Additional