var stream = Application.GetResourceStream(
new
Uri(
"SampleData/doc.pdf"
, UriKind.Relative)).Stream;
pdfViewer.DocumentSource =
new
PdfDocumentSource(stream);
Stream stream = File.OpenRead(@
"\\192.168.1.100\pdf$\doc.pdf"
);
pdfViewer.DocumentSource =
new
PdfDocumentSource(stream);
Stream stream = File.OpenRead(@
"C:\pdf\doc.pdf"
);
pdfViewer.DocumentSource =
new
PdfDocumentSource(stream);
I have tried to implement a line chart along with Notes,. but the problem arises when 2 notes are very close to each other they overlap and are not readable. I tried adding margin but could not achieve a good result even with rotation it looks very absurd.
I am trying to figure out a way where I can display the notes in one series alternatively top or down. But I can't find anything. I only got an option to display notes top or down per series. Need help with this?
Or if any other way I can achieve it with a readable format
GroupLvl | Xcat | Planned | Actual |
CENTRAL | NOV | 30 | 45 |
CENTRAL | OCT | 0 | 1 |
CENTRAL | SEP | 0 | 0 |
CENTRAL | YTD | 0 | 1 |
SOUTHEAST | APR | 0 | 1 |
SOUTHEAST | AUG | 1 | 0 |
SOUTHEAST | DEC | 1173 | 6840 |
TENNESSEE/KENTUCKY | NOV | 3560 | 3231 |
TENNESSEE/KENTUCKY | OCT | 2126 | 3869 |
TENNESSEE/KENTUCKY | SEP | 2756 | 2174 |
TENNESSEE/KENTUCKY | YTD | 1537 | 2634 |
<
telerik:RadChart
x:Name
=
"CxPerformance"
ItemsSource
=
"{Binding CurrentCXCompletedProjectPerformances, Mode=TwoWay}"
VerticalAlignment
=
"Top"
Margin
=
"2"
Grid.Column
=
"0"
telerik:StyleManager.Theme
=
"Windows7"
>
<
telerik:RadChart.DefaultView
>
<
telerik:ChartDefaultView
>
<
telerik:ChartDefaultView.ChartTitle
>
<
telerik:ChartTitle
Content
=
"Project Performance"
/>
</
telerik:ChartDefaultView.ChartTitle
>
</
telerik:ChartDefaultView
>
</
telerik:RadChart.DefaultView
>
<
telerik:RadChart.SeriesMappings
>
<
telerik:SeriesMapping
>
<
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:BarSeriesDefinition
ShowItemLabels
=
"True"
StackGroupName
=
"{Binding GroupLvl}"
/>
</
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:SeriesMapping.ItemMappings
>
<
telerik:ItemMapping
FieldName
=
"Planned"
DataPointMember
=
"YValue"
/>
<
telerik:ItemMapping
FieldName
=
"GroupLvl"
DataPointMember
=
"LegendLabel"
/>
<
telerik:ItemMapping
FieldName
=
"Xcat"
DataPointMember
=
"XCategory"
/>
</
telerik:SeriesMapping.ItemMappings
>
</
telerik:SeriesMapping
>
<
telerik:SeriesMapping
>
<
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:BarSeriesDefinition
ShowItemLabels
=
"True"
StackGroupName
=
"Actual"
/>
</
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:SeriesMapping.ItemMappings
>
<
telerik:ItemMapping
FieldName
=
"Actual"
DataPointMember
=
"YValue"
/>
<
telerik:ItemMapping
FieldName
=
"GroupLvl"
DataPointMember
=
"LegendLabel"
/>
<
telerik:ItemMapping
FieldName
=
"Xcat"
DataPointMember
=
"XCategory"
/>
</
telerik:SeriesMapping.ItemMappings
>
</
telerik:SeriesMapping
>
</
telerik:RadChart.SeriesMappings
>
</
telerik:RadChart
>
Hi,
Is it possible to retrieve the position of the mouse on the ruler? I would like to display it in decimal in my control.
Best Regards,
Michael
Hello.
I need update value of RadGridView GridViewCell then she in Edit Mode.
I use MainGrid.BeginningEdit event:
private void MainGridOnBeginningEdit(object sender, GridViewBeginningEditRoutedEventArgs args)
{
if(args == null || args.Cell.Value != null) return;
if (BeginningCellEditEvent != null)
BeginningCellEditEvent.Invoke(args);
}
In BeginningCellEditEvent handler i try set new cell value:
private void ActivityDateFactTable_OnBeginningCellEditEvent(GridViewBeginningEditRoutedEventArgs args)
{
if((args?.Cell == null || args.Cell.Value != null)) return;
if(!(args.Row.DataContext is ViewModel viewModel)) return;
var bindingPath = args.Cell.DataColumn.DataMemberBinding.Path
.Path
.Replace("[", "")
.Replace("]", "")
.Split('_');
if(bindingPath.Length < 3) return;
var calcValue = viewModel.GetCalculatedValue(bindingPath[0]);
if (calcValue != null)
{
args.Cell.Value = calcValue;
args.Cell.UpdateLayout();
}
}
or
private void ActivityDateFactTable_OnBeginningCellEditEvent(GridViewBeginningEditRoutedEventArgs args)
{
if((args?.Cell == null || args.Cell.Value != null)) return;
if(!(args.Row.DataContext is ViewModel viewModel)) return;
var bindingPath = args.Cell.DataColumn.DataMemberBinding.Path
.Path
.Replace("[", "")
.Replace("]", "")
.Split('_');
if(bindingPath.Length < 3) return;
var calcValue = viewModel.GetCalculatedValue(bindingPath[0]);
if (calcValue != null)
{
this.Dispatcher.BeginInvoke
((Action) delegate
{
args.Cell.Value = calcValue;
args.Cell.UpdateLayout();
}
);
}
}
Cell.Value is changed, but in UI not updated (as seen on screenshot).
How i can update value in UI after changing him in code and i need that cell stays in edit mode?