I want to display an image editor withuot tools. (I need only the ability to control the brightness and contrast, what I can do programmatically).
I want the image will be displayed fully in the image editor, without scrolling.
How can I do that?
Hi,
https://github.com/telerik/xaml-sdk/tree/master/ChartView/WPF/SeriesProvider
# SeriesProdvider project
1. Add new item : window1.xaml (include one button)
2. app.xaml StartupUri set window1.xaml
3. window1.xaml button client event
private void Button_Click(object sender, RoutedEventArgs e)
{
MainWindow w = new MainWindow();
w.ShowDialog();
}
4. Run button click - PopupWindow Open & Close (Loop.. Loop.. Loop)
5. Memeory Leak check
I found a solution
public MainWindow()
{
InitializeComponent();
this.Unloaded += MainWindow_Unloaded;
}
private void MainWindow_Unloaded(object sender, RoutedEventArgs e)
{
chart.SeriesProvider.Source = null;
}
I want to more best solution, for plan MVVM project
While implementing the LayoutControlExpanderGroup in my project I thought the doughnut charts shown in the WPF example were quite nice visually so decided to use those for weights on transactions. After many days of struggling to reproduce the code I finally got something somewhat working but I'm still having problems. I don't know where to set the max value of a chart, I'm guessing the example has it set at around 15,000 since even 11234 steps on Feb, 09 is still a ways away from the max. My weights go from 25,000 up to 170,000 so even the lowest weight show 100% filled. I can't find documentation on where to set this max value.
I'm also having a hard time wrapping the text in the middle. I have a date time that has year/month/day followed by a space then hour/minute. For some reason it's all on the same line and goes outside the doughnut.
My XAML is quite similar to the example in the StepsPerDay.xaml in the Layout Control demo (first look). I just have different properties bound to it.
<telerik:RadPieChart Palette="Flower"
Style="{StaticResource ChartStyle}">
<telerik:RadPieChart.Series>
<telerik:DoughnutSeries ItemsSource="{Binding Transaction.Weights}"
InnerRadiusFactor="0.75"
RadiusFactor="1"
ValueBinding="Weight">
<telerik:DoughnutSeries.AngleRange>
<telerik:AngleRange StartAngle="270" />
</telerik:DoughnutSeries.AngleRange>
<telerik:DoughnutSeries.SliceStyles>
<Style TargetType="Path">
<Setter Property="Fill" Value="{Binding DataItem.WeightFill}" />
</Style>
</telerik:DoughnutSeries.SliceStyles>
<telerik:DoughnutSeries.LabelDefinitions>
<telerik:ChartSeriesLabelDefinition Margin="20">
<telerik:ChartSeriesLabelDefinition.Template>
<DataTemplate>
<StackPanel>
<TextBlock Text="{Binding DataItem.WeightDisplay}"
Style="{StaticResource BoldLabelStyle}" />
<TextBlock Text="{Binding DataItem.WeighInTimeDisplay}"
Foreground="Black"
TextWrapping="Wrap"
TextAlignment="Center" />
</StackPanel>
</DataTemplate>
</telerik:ChartSeriesLabelDefinition.Template>
</telerik:ChartSeriesLabelDefinition>
</telerik:DoughnutSeries.LabelDefinitions>
</telerik:DoughnutSeries>
</telerik:RadPieChart.Series>
</telerik:RadPieChart>
I'm using the RadCollectionNavigator in a WPF UserControl.
The CurrentItem Is Bound, TwoWay to a DataContext property.
Everytime I navigate using the RCN's navigation buttons the CurrentItem setter is called 3 times.
I using ReferenceEquals() to ignore additional calls to the setter with the same value but this causes other problems.
Will I need to override the built in navigation buttons to eliminate this behavior?
<telerik:RadCollectionNavigator Source="{Binding EvidenceItems}" CurrentItem="{Binding CurrentNavItem, Mode=TwoWay}"/>
private EvidenceGridData _CurrentNavItem;
public object CurrentNavItem
{
get { return _CurrentNavItem; }
set
{
if (ReferenceEquals(_CurrentNavItem, value))
return;
_CurrentNavItem = value as EvidenceGridData;
RaisePropertyChanged(nameof(CurrentNavItem));
}
}
Hi all,
I know I
can overwrite all the style of the docking controls, but I was wondering if
there is an easier way to do what I want.
I want that
when I have the mouse focused inside my control that is inside a RadPaneGroup the
border would be highlighted just like the picture have attached.
Thanks for
your help
Simon
I am attempting to mimic the Windows 10 behavior where dragging a tile to an "empty" area automatically creates a new group. Since "Group" is implemented as a "property path" in the RadTileList I am not seeing an obvious way to implement this functionality.
Should I create a new ContentControl that has special "Drop" functionality that creates a new group? Or is there a better option using the TileList itself?
On the same project I am attempting to "save" the position of Tiles across sessions, is there a "TilePosition" property that I am just not finding such that I can save the position of specific tiles or is the position of the tiles dictated by the order of the items in bound ObservableCollection?
Cheers!
Jason
Hi,
I have a RadImageEditor that I am using as an image viewer, and I have added my own toolbar with buttons bound to the commands for rotating and flipping the image, which all works fine.
However, the buttons remain disabled until I click on the image, but I would really like the user to be able to just click on one of the buttons without having to first click on the image. Equally, if they click on the zoom control, this gets the focus and the buttons once again get disabled.
How can I permanently enable these buttons?
Thanks,
Brian
I'm using a RadLayoutControl on my page to group data into different groups. I like the panel look and wanted to use that. The problem I'm having is I want a certain LayoutControlExpanderGroup to fill in remaining space so that when a window resizes all the groups fill out one row of space. Just wondering if there's similar functionality to the dock panel where I can set the container to LastChildFill="true" and the last container in the dock panel uses up all the remaining space.
Hi, if I double click RadRibbonTab, it'll collapse the RadRibbonGroup inside of it. Is there a way to prevent RadRibbonTab from ever collapsing the RadRibbbonGroup. Behaviour can be mimiced on the telerik wpf RichTextBox Example.
Example Solution uploaded as .jpg from .zip
The provided example has various controls in different tabs (including a scrollviewer). As you should be able to see in the fluent theme when using the scroll wheel to scroll the tab header an item in the tab header has to be focused. If I click a button, or select a textbox in one of the tabs I can no longer mouse over the tab header to scroll the tabs (I have to click on a tab to give it focus for the scroll wheel to work again).
This is not the case the other way around (Tab 5 or tab 6). If the tab header is focused the scrollViewer in the tab will still scroll on mouse over without focus being granted to it.