wpftoolkit

wpf toolkit rating size

偶尔善良 提交于 2019-12-09 03:51:26
问题 I'm using a rating control (from wpf toolkit) in my application. Is there any way I can scale this control? The rating stars are too big for my application.. I tried setting the height or width but that just cuts the stars but doens't resize them: Rating ratingControl = new Rating(); ratingControl .ItemsSource = ratingItems; ratingControl.Width = 50; ratingControl.Height = 10; // --> this doesn't change the size of the stars Greets Daan 回答1: i dont know the rating control, but if you wanna

Change margin around plot area and title in WPF Toolkit chart

你。 提交于 2019-12-08 16:01:16
问题 I am using the Chart control of WPF Toolkit February 2010 release. The chart takes up lots of space relative to the plot area. How do I control the margin around the plot area and title of the chart. This way, I can arrange the 10 charts I need in a grid without having to use so much space on the screen. Thanks, sprite. 回答1: I found an answer to a similar question in the WPF Toolkit discussion boards and thought I'd share the knowledge. The only solution currently available is to style the

Fill datagrid or listview from XML file

倾然丶 夕夏残阳落幕 提交于 2019-12-08 08:10:50
问题 I have a well formed XML file I would like to fill a datagrid with. I would prefer using the AutoGenerate feature of WFPToolKit datagrid, but could hard code the columns in. The trouble I am having is getting the xml file contents into a datagrid. I had it partially working in a listview, but think a datagrid would be more suited for my needs. Can anyone provide a quick example of how to accomplish this? 回答1: I bound the XML to the ListView like this: // Bind the data to the ListView var

WPF Grid and DataGrid sizing

对着背影说爱祢 提交于 2019-12-08 06:01:58
问题 The UserControl I'm trying to work with is essentially laid out like so: <Grid> <Grid.RowDefinitions> <Row Height="*"/> <Row Height="*"/> </Grid.RowDefinitions> <wpftoolkit:DataGrid x:Name="PrimaryGrid"/> <!-- ~10 rows --> <Border> <Grid> <Grid.RowDefinitions> <Row Height="*"/> <Row Height="*"/> </Grid.RowDefinitions> <wpftoolkit:DataGrid x:Name="SecondaryGrid"/> <!-- ~2 rows --> <wpftoolkit:DataGrid x:Name="OtherGrid"/> <!-- ~50 rows --> </Grid> </Border> </Grid> This UserControl is then

WPFToolkit Charting - How to remove markers or change marker size?

老子叫甜甜 提交于 2019-12-08 02:29:16
问题 I can't quite see how to remove the markers in a WPFToolkit graph. I can see they are the ellipses in the XAML below, but I can't seem to successfully change any of the parameters to get the size of them to change, OR to remove them. Any ideas? Here is the XAML (which stills need the WPFToolkit) I've been using as a test. <Window x:Class="MyInternetUsage.EnginePerformance" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

Assigning color to the rectangle near legend items in wpf toolkit charting lineseries

安稳与你 提交于 2019-12-08 00:23:51
问题 I am adding lineseries to a chart dynamically as follows. foreach (KeyValuePair<string, List<KeyValuePair<DateTime, double>>> tempSeries in yieldSeries) { LineSeries lineSeries = new LineSeries(); lineSeries.DependentValuePath = "Value"; lineSeries.IndependentValuePath = "Key"; lineSeries.ItemsSource = tempSeries.Value; lineSeries.Title = tempSeries.Key; lineSeries.SetResourceReference(FrameworkElement.StyleProperty,"CommonLineSeries"); lineSeries.Tag = Brushes.Red; lineSeries.Background =

How to style a DatePicker?

戏子无情 提交于 2019-12-07 12:49:50
问题 I downloaded a WPFToolkit source, because I wanted to override the default generic template of a DatePicker. For example, I wanted to override this TextBox: <primitives:DatePickerTextBox x:Name="PART_TextBox" Grid.Row="0" Grid.Column="0" Foreground="{TemplateBinding Foreground}" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" /> That means that writing this in my project : <Style TargetType="{x:Type toolkit:DatePickerTextBox}"> <Setter Property="Text" Value="Bitte

WPF Grid and DataGrid sizing

这一生的挚爱 提交于 2019-12-07 12:04:27
The UserControl I'm trying to work with is essentially laid out like so: <Grid> <Grid.RowDefinitions> <Row Height="*"/> <Row Height="*"/> </Grid.RowDefinitions> <wpftoolkit:DataGrid x:Name="PrimaryGrid"/> <!-- ~10 rows --> <Border> <Grid> <Grid.RowDefinitions> <Row Height="*"/> <Row Height="*"/> </Grid.RowDefinitions> <wpftoolkit:DataGrid x:Name="SecondaryGrid"/> <!-- ~2 rows --> <wpftoolkit:DataGrid x:Name="OtherGrid"/> <!-- ~50 rows --> </Grid> </Border> </Grid> This UserControl is then placed in my Window as the last member of a Grid , the only one with Height="*" . I'm having problems with

Overriding DataPointStyle in a WPF Toolkit Chart

可紊 提交于 2019-12-07 11:33:43
问题 I'd like to override the DataPointStyle of the LineSeries in my WPF Toolkit Chart : <chart:LineSeries> <chart:DataPointSeries.DataPointStyle> <Style BasedOn="{StaticResource {x:Type chart:LineDataPoint}}" TargetType="{x:Type chart:LineDataPoint}"> <Setter Property="Width" Value="20" /> <Setter Property="Height" Value="20" /> </Style> </chart:DataPointSeries.DataPointStyle> </chart:LineSeries> However when I do this I lose the automatic palette coloring where each series has a different color.

Labels on Chart Toolkit WPF

耗尽温柔 提交于 2019-12-07 10:36:33
问题 Is there any way to label the axis on charts? <charting:Chart Name="EventAlertsChart" BorderThickness="0" Margin="0,10,0,0"> <charting:Chart.Axes> <charting:LinearAxis Orientation="Y" Minimum="0" Title="Number of Alerts" Margin="0,0,10,0" /> </charting:Chart.Axes> <charting:Chart.LegendStyle> <Style TargetType="Control"> <Setter Property="Width" Value="0" /> <Setter Property="Height" Value="0" /> </Style> </charting:Chart.LegendStyle> <charting:Chart.Series> <charting:ColumnSeries Name=