<
telerik1:RadChart
x:Name
=
"PassFailChart"
BorderThickness
=
"0"
Padding
=
"0,10,0,0"
Background
=
"{x:Null}"
IsTabStop
=
"False"
Grid.Row
=
"1"
>
<
telerik1:RadChart.DefaultView
>
<
telerik1:ChartDefaultView
>
<
telerik1:ChartDefaultView.ChartLegend
>
<
telerik1:ChartLegend
x:Name
=
"chartLegend"
LegendItemMarkerShape
=
"Circle"
Background
=
"{x:Null}"
BorderBrush
=
"{x:Null}"
UseAutoGeneratedItems
=
"True"
/>
</
telerik1:ChartDefaultView.ChartLegend
>
<
telerik1:ChartDefaultView.ChartArea
>
<
telerik1:ChartArea
LegendName
=
"chartLegend"
>
<
telerik1:ChartArea.AxisY
>
<
telerik1:AxisY
StripLinesVisibility
=
"Hidden"
MinorTicksVisibility
=
"Hidden"
ExtendDirection
=
"Up"
/>
</
telerik1:ChartArea.AxisY
>
</
telerik1:ChartArea
>
</
telerik1:ChartDefaultView.ChartArea
>
</
telerik1:ChartDefaultView
>
</
telerik1:RadChart.DefaultView
>
<
telerik1:RadChart.AnimationSettings
>
<
telerik1:AnimationSettings
ItemDelay
=
"00:00:00"
DefaultSeriesDelay
=
"00:00:01"
/>
</
telerik1:RadChart.AnimationSettings
>
<
telerik1:RadChart.SeriesMappings
>
<
telerik1:SeriesMapping
LegendLabel
=
"{Binding ElementName=cbPass, Path=Content}"
ItemsSource
=
"{Binding Path=GraphRuntime[Pass], Mode=TwoWay}"
SeriesDefinition
=
"{Binding Path=PassDefinition, Mode=TwoWay}"
>
<
telerik1:SeriesMapping.ItemMappings
>
<
telerik1:ItemMapping
DataPointMember
=
"YValue"
FieldName
=
"Value"
/>
<
telerik1:ItemMapping
DataPointMember
=
"XCategory"
FieldName
=
"Label"
/>
</
telerik1:SeriesMapping.ItemMappings
>
</
telerik1:SeriesMapping
>
<
telerik1:SeriesMapping
LegendLabel
=
"{Binding ElementName=cbFail, Path=Content}"
ItemsSource
=
"{Binding Path=GraphRuntime[Fail], Mode=TwoWay}"
SeriesDefinition
=
"{Binding Path=FailDefinition, Mode=TwoWay}"
>
<
telerik1:SeriesMapping.ItemMappings
>
<
telerik1:ItemMapping
DataPointMember
=
"YValue"
FieldName
=
"Value"
/>
<
telerik1:ItemMapping
DataPointMember
=
"XCategory"
FieldName
=
"Label"
/>
</
telerik1:SeriesMapping.ItemMappings
>
</
telerik1:SeriesMapping
>
<
telerik1:SeriesMapping
LegendLabel
=
"{Binding ElementName=cbReconstitution, Path=Content}"
ItemsSource
=
"{Binding Path=GraphRuntime[Reconstitution], Mode=TwoWay}"
SeriesDefinition
=
"{Binding Path=ReconstitutionDefinition, Mode=TwoWay}"
>
<
telerik1:SeriesMapping.ItemMappings
>
<
telerik1:ItemMapping
DataPointMember
=
"YValue"
FieldName
=
"Value"
/>
<
telerik1:ItemMapping
DataPointMember
=
"XCategory"
FieldName
=
"Label"
/>
</
telerik1:SeriesMapping.ItemMappings
>
</
telerik1:SeriesMapping
>
</
telerik1:RadChart.SeriesMappings
>
</
telerik1:RadChart
>
<telerik:RadScheduleView.ViewDefinitions>
<telerik:DayViewDefinition MinorTickLength="30min" MajorTickLength="1h"/>
</telerik:RadScheduleView.ViewDefinitions>
<telerik:RadScheduleView.RenderTransform>
<TranslateTransform></TranslateTransform>
</telerik:RadScheduleView.RenderTransform>
<telerik:RadScheduleView.DragDropBehavior>
<local:ScheduleViewDragDropBehavior/>
</telerik:RadScheduleView.DragDropBehavior>
</telerik:RadScheduleView>
</Canvas>
canvas.Children.Add(
this.x);
<
Window
x:Class
=
"RadRichTextBoxTestApp.MainWindow"
Title
=
"MainWindow"
Height
=
"350"
Width
=
"525"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
SizeToContent
=
"WidthAndHeight"
>
<
Window.Resources
>
<
Style
TargetType
=
"{x:Type telerik:RadRichTextBox}"
>
<
Style.Setters
>
<
Setter
Property
=
"Height"
Value
=
"100"
/>
<
Setter
Property
=
"Width"
Value
=
"300"
/>
</
Style.Setters
>
</
Style
>
</
Window.Resources
>
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
</
Grid.RowDefinitions
>
<
telerik:HtmlDataProvider
RichTextBox
=
"{Binding ElementName=box0}"
Html
=
"{Binding DocumentWithCapitalizedStyleTags}"
/>
<
telerik:RadRichTextBox
Grid.Row
=
"0"
x:Name
=
"box0"
Margin
=
"10"
/>
<
telerik:HtmlDataProvider
RichTextBox
=
"{Binding ElementName=box1}"
Html
=
"{Binding DocumentWithLowerCaseStyleTags}"
/>
<
telerik:RadRichTextBox
Grid.Row
=
"1"
x:Name
=
"box1"
Margin
=
"10"
/>
<
telerik:HtmlDataProvider
RichTextBox
=
"{Binding ElementName=box2}"
Html
=
"{Binding DocumentWithMsoHyperlinkStyles}"
/>
<
telerik:RadRichTextBox
Grid.Row
=
"2"
x:Name
=
"box2"
Margin
=
"10"
/>
<
telerik:HtmlDataProvider
RichTextBox
=
"{Binding ElementName=box3}"
Html
=
"{Binding DocumentWithInlineHyperlinkStyles}"
/>
<
telerik:RadRichTextBox
Grid.Row
=
"3"
x:Name
=
"box3"
Margin
=
"10"
/>
</
Grid
>
</
Window
>
using System.Windows;
namespace RadRichTextBoxTestApp
{
/// <
summary
>
/// Interaction logic for MainWindow.xaml
/// </
summary
>
public partial class MainWindow : Window
{
public MainWindow()
{
DataContext = new MainWindowViewModel();
InitializeComponent();
}
}
public class MainWindowViewModel
{
public string DocumentWithCapitalizedStyleTags
{
get { return "<
html
><
head
><
STYLE
></
STYLE
></
head
><
body
>HELLO WORLD!</
body
></
html
>"; }
}
public string DocumentWithLowerCaseStyleTags
{
get { return DocumentWithCapitalizedStyleTags.Replace("<
STYLE
", "<style").Replace("</STYLE","</style"); }
}
public string DocumentWithMsoHyperlinkStyles
{
get
{
return
@"
<html><
head
><
style
>
a:link, span.MsoHyperlink
{mso-style-priority:99; color:blue; text-decoration:underline;}
</
style
></
head
><
body
>HELLO WORLD! <
a
href
=
""
http://telerik.com"">Telerik</
a
></
body
></
html
>
";
}
}
public string DocumentWithInlineHyperlinkStyles
{
get { return DocumentWithMsoHyperlinkStyles.Replace(", span.MsoHyperlink", ""); }
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage=
"_FK_classification"
, DbType=
"BigInt"
, UpdateCheck=UpdateCheck.Never)]
public
System.Nullable<
long
> FK_classification
{
get
{
return
this
._FK_classification;
}
set
{
if
((
this
._FK_classification != value))
{
if
(
this
._ST_classification.HasLoadedOrAssignedValue)
{
throw
new
System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this
.OnFK_classificationChanging(value);
this
.SendPropertyChanging();
// <--- Exception is thrown!
this
._FK_classification = value;
this
.SendPropertyChanged(
"FK_classification"
);
this
.OnFK_classificationChanged();
}
}
}
<
telerik:RadDataForm
x:Name
=
"RDF_ST_Addresse"
ItemsSource
=
"{Binding Items, ElementName=RG_ST_Partner}"
AutoGenerateFields
=
"False"
EditEnding
=
"RDF_ST_Addresse_EditEnding"
EditEnded
=
"RDF_ST_Addresse_EditEnded"
DeletingItem
=
"RDF_ST_Addresse_DeletingItem"
ValidatingItem
=
"RDF_ST_Addresse_ValidatingItem"
AddingNewItem
=
"RDF_ST_Addresse_AddingNewItem"
AddedNewItem
=
"RDF_ST_Addresse_AddedNewItem"
>
.
.
.
<
telerik:DataFormComboBoxField
DataMemberBinding
=
"{Binding FK_classification, Mode=TwoWay}"
Name
=
"DFCMB_classification"
Label
=
"Klassifikation"
IsReadOnly
=
"False"
SelectedValuePath
=
"PK_classification"
DisplayMemberPath
=
"classification"
Initialized
=
"DFCMB_classification_Initialized"
/>
private
void
DFCMB_classification_Initialized(
object
sender, EventArgs e)
{
((DataFormComboBoxField)sender).ItemsSource = from p
in
goDCAddach.ST_classifications orderby p.classification select p ;
}
I have many windows. I want to change in the Mainwindow from a window (window3). Make a label visible in
MainWindow on a button click in window3.
I don't want to create an instance of MainWindow, because that doesn't keep changes in the parent Mainwindow.
How can I do it, kindly?
Thanks in advanced.