or
| <Window.Resources> |
| <Style x:Key="MyStyle" TargetType="{x:Type telerik:Bar}"> |
| <Setter Property="Template" > |
| <Setter.Value> |
| <ControlTemplate TargetType="{x:Type telerik:Bar}"> |
| <Rectangle |
| x:Name="PART_DefiningGeometry" |
| Fill="Red" |
| Stroke="Pink" |
| StrokeThickness="3" |
| Height="{TemplateBinding ActualHeight}" |
| Width="{TemplateBinding ActualWidth}"/> |
| </ControlTemplate> |
| </Setter.Value> |
| </Setter> |
| </Style> |
| </Window.Resources> |
<Grid DataContext="{Binding PublicationCollecteurVM}" Width="auto" Height="auto"> <Grid.Resources> <Style TargetType="telerik:Chart"> <Style.Triggers> <!-- Well, You can imagine that I'm trying to change Line color--> <DataTrigger Binding="{Binding Path=GestionNiveau,NotifyOnSourceUpdated=True}" Value="2"> <Setter Property="Chart.LineColor" Value="#FCB143"/> </DataTrigger> <DataTrigger Binding="{Binding Path=GestionNiveau,NotifyOnSourceUpdated=True}" Value="1"> <Setter Property="Chart.LineColor" Value="#FFFF48"/> </DataTrigger> <DataTrigger Binding="{Binding Path=GestionNiveau,NotifyOnSourceUpdated=True}" Value="3"> <Setter Property="Chart.LineColor" Value="#FE761B"/> </DataTrigger> </Style.Triggers> </Style> </Grid.Resources> <telerik:RadChart x:Name="RadChart1" telerik:StyleManager.Theme="Office_Black" Grid.Row="1" Height="193" Width="372" Grid.Column="1" ItemsSource="{Binding NbHitLus}"> <telerik:RadChart.DefaultView> <telerik:ChartDefaultView> <telerik:ChartDefaultView.ChartArea> <telerik:ChartArea LegendName="CustomLegend"> <telerik:ChartArea.AxisX> <telerik:AxisX MajorGridLinesVisibility="Collapsed" Title="Minute" /> </telerik:ChartArea.AxisX> <telerik:ChartArea.AxisY> <telerik:AxisY MajorGridLinesVisibility="Collapsed" MinorTicksVisibility="Visible" Title="NbHitsLus" AutoScale="True" /> </telerik:ChartArea.AxisY> </telerik:ChartArea> </telerik:ChartDefaultView.ChartArea> <telerik:ChartDefaultView.ChartLegend> <telerik:ChartLegend Visibility="Collapsed" x:Name="CustomLegend" UseAutoGeneratedItems="True" Width="0"> <telerik:ChartLegend.Header>Custom legend header</telerik:ChartLegend.Header> </telerik:ChartLegend> </telerik:ChartDefaultView.ChartLegend> <telerik:ChartDefaultView.ChartTitle> <telerik:ChartTitle HorizontalAlignment="Center" > <TextBlock TextAlignment="Center"> <TextBlock Text="{Binding infoProg}"/> <LineBreak/> <TextBlock Margin="-8,0,0,0">Numéro collecteur :</TextBlock> <TextBlock Text="{Binding IdCollect}"></TextBlock> <TextBlock Padding="10,0,0,0">Numéro log :</TextBlock> <TextBlock Text="{Binding IdLog}"></TextBlock> </TextBlock> </telerik:ChartTitle> </telerik:ChartDefaultView.ChartTitle> </telerik:ChartDefaultView> </telerik:RadChart.DefaultView> <telerik:RadChart.DefaultSeriesDefinition> <telerik:LineSeriesDefinition/> </telerik:RadChart.DefaultSeriesDefinition> </telerik:RadChart> </Grid>
GridViewHyperlinkColumn
and the link is not showing up. Can you please help me with this issue?
fontChooser = new FontChooser(); fontChooser.selectedFont = row.ItemArray[3]; //From dataTable fontChooser.selectedStyle = row.ItemArray[5].ToString().Trim(); fontChooser.selectedSize = row.ItemArray[4]; fontChooser.selectedWeight = FontWeight.FromOpenTypeWeight( Int32.Parse(row.ItemArray[7].ToString())); fontChooser.Name = "fc_" + row.ItemArray[0].ToString().Trim(); fontChooser.SelectionChanged += new SelectionChangedEventHandler(fontChooser_SelectionChanged); grid.RegisterName(fontChooser.Name, fontChooser); grid.Children.Add(fontChooser); Grid.SetRow(fontChooser, i); Grid.SetColumn(fontChooser, 3); Grid.SetColumnSpan(fontChooser, 4); //Event Handler void fontChooser_SelectionChanged(object sender, SelectionChangedEventArgs e) { FontChooser fc = (e.OriginalSource as FontChooser); selectedFont = fc.selectedFont; selectedFontStyle = fc.selectedStyle; FontWeight weight = (FontWeight)fc.selectedWeight; selectedFontWeight = weight; Console.Out.WriteLine(fc.Name); //Added to see what is going wrong string name = fc.Name.Substring(3); activeControl = name; string filterExpr = "LABEL_NAME = '" + name + "'"; DataRow[] rowToUpdate = tempTable.Select(filterExpr); int ptr = tempTable.Rows.IndexOf(rowToUpdate[0]); DataRow dr = rowToUpdate[0]; dr[3] = selectedFont; if (fc.selectedSize != null) { selectedFontSize = fc.selectedSize; dr[4] = selectedFontSize; } dr[5] = selectedFontStyle; dr[7] = weight.ToOpenTypeWeight(); dr.AcceptChanges(); tempTable.Rows[ptr].BeginEdit(); tempTable.Rows[ptr].ItemArray = dr.ItemArray; tempTable.Rows[ptr].AcceptChanges(); tempTable.Rows[ptr].EndEdit(); }AutoGenerateHierarchy property.