Telerik Forums
UI for WPF Forum
1 answer
200 views

I would like to change the light blue header color of the RadWindow.Confirm. (See attached)

I have asked this question before and got a satisfactory answer, however that answer no longer works. I get a build error that RadWindow is does not exist in the namespace http://schemas.telerik.com/2008/xaml/presentation

Maybe something changed since I asked this question in 2015.

My current project is using the NoXaml binaries.

 

 

 

 

 

 

Paul
Top achievements
Rank 1
 answered on 17 Jan 2018
3 answers
430 views
Hi Telerik,
I need your quick suggestion on the below requirement for our reputed Client (Transportation domain).
We are using the RaddesktopAlert and have an immediate requirement to have some buttons  on RaddesktopAlert to perform some functionalities. I came across that RaddesktopAlert for Winforms supports this but don't have any idea how to achieve the same on RaddesktopAlert for WPF.
Any help on this one will be grateful :)
Martin Ivanov
Telerik team
 answered on 17 Jan 2018
1 answer
615 views

I'm using the combobox in this example inside a grid as a celledittemplate:
<telerik:GridViewDataColumn Header="َArticle Description" Width="100"><telerik:GridViewDataColumn.CellTemplate><DataTemplate><TextBlock Text="{Binding DataContext.AccDocumentItem.Description1, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadGridView}}}"/></DataTemplate></telerik:GridViewDataColumn.CellTemplate><telerik:GridViewDataColumn.CellEditTemplate><DataTemplate><telerik:RadComboBox IsEditable="True" DisplayMemberPath="SLStandardDescriptionTitle"ItemsSource="{Binding DataContext.AccDocumentItem.SelectedSL.SLStandardDescriptions, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadGridView}}}"Text="{Binding DataContext.AccDocumentItem.Description1,Mode=TwoWay,RelativeSource={RelativeSource AncestorType={x:Type telerik:RadGridView}}}"><i:Interaction.Triggers><i:EventTrigger EventName="DropDownOpened"><i:InvokeCommandAction Command="{Binding DataContext.SLStandardDescriptionsDropDownOpenedCommand, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadGridView}}}" CommandParameter="DLType2"/></i:EventTrigger></i:Interaction.Triggers></telerik:RadComboBox></DataTemplate></telerik:GridViewDataColumn.CellEditTemplate> </telerik:GridViewDataColumn>

I need to present a grid where one column is a combobox. The user can select one value from the list or enter a new value, the problem is that selected row is repeated in all rows. Can you please tell me what I'm doing wrong?
Your time much appreciated!

Dinko | Tech Support Engineer
Telerik team
 answered on 17 Jan 2018
3 answers
215 views

Hi every body...

In my application I have to make an InlineUIContainer (inserted within a table) as ReadOnly. To achieve this requirement I tried ReadOnlyRangeStart and ReadOnlyRangeEnd (as shown in the attached code). I also tried to InsertReadOnlyRange around the table using DocumentPosition (not shown in the attached code).  In both cases the following error is thrown:

"An unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll"

Is not possible to make InlineUIContainer as ReadOnly? If so; is there any workaround?

Any Help Will Be Greatly Appreciated...

Note: the cause why I used TextBlocks instead of just adding new span to the paragraph; is that I have to make Text and image tightly grouped together; so that if they come across end of the page (and there is no enough space to them), then they move together to a new page. If there is a better solution to this requirement, it will be welcomed.

Private Function GetCenterManagerTable(ByVal mainDocument As RadDocument, ByVal FMMSContext As FMMS.BusinessObjects.Models.FMMSEntities) As Table
            Dim _table As New Table With {.Borders = New TableBorders(New Model.Border(1, BorderStyle.Single, Colors.Black)),
                                          .FlowDirection = GetFlowDirection(),
                                          .PreferredWidth = New TableWidthUnit(TableWidthUnitType.Fixed, mainDocument.SectionDefaultPageSize.Width - 115),
                                          .HorizontalAlignment = RadHorizontalAlignment.Center,
                                          .Tag = RequestTypes.WritingDraft}
            Dim _row As New TableRow
            Dim _cellReviewer As New TableCell With {.TextAlignment = RadTextAlignment.Center,
                                                     .Tag = RequestTypes.WritingDraft}
            Dim _cellManager As New TableCell With {.TextAlignment = RadTextAlignment.Center,
                                                    .Tag = Departments.CenterManager,
                                                    .PreferredWidth = New TableWidthUnit(TableWidthUnitType.Fixed, 350)}
            Dim _paragReviewer As New Paragraph With {.SpacingAfter = 0, .LineSpacingType = LineSpacingType.AtLeast, .LineSpacing = 0}
            Dim _paragManager As New Paragraph With {.SpacingAfter = 0, .LineSpacingType = LineSpacingType.AtLeast, .LineSpacing = 0}
 
            _table.Rows.Add(_row)
            _row.Cells.Add(_cellReviewer)
            _row.Cells.Add(_cellManager)
            _cellReviewer.Blocks.Add(_paragReviewer)
            _cellManager.Blocks.Add(_paragManager)
 
            'Manager
            Dim ManagerSignatureUIContainer As New InlineUIContainer With {.Width = 349, .Height = 200}
            Dim stckMain As New StackPanel With {.Height = 150}
            stckMain.Measure(New Size(350, 200))
            Dim txbName As New TextBlock With {.Text = ManagerData.Name, .FontFamily = PtHeadingFamily, .FontSize = 16, .TextWrapping = TextWrapping.Wrap, .HorizontalAlignment = HorizontalAlignment.Center}
            Dim imgManagerSignature As New Image With {.Name = "imgManagerSignature", .Width = 120, .Stretch = Stretch.Uniform}
            imgManagerSignature.Measure(New Size(120, 30))
            Dim txbSignatureDate As New TextBlock With {.Name = "txbSignatureDate", .FontFamily = New FontFamily("Times New Roman"), .FontSize = 8, .HorizontalAlignment = HorizontalAlignment.Center}
            Dim txbJob As New TextBlock With {.Text = ManagerData.Job, .FontFamily = PtHeadingFamily, .FontSize = 16, .TextWrapping = TextWrapping.Wrap, .HorizontalAlignment = HorizontalAlignment.Center}
            stckMain.Children.Add(txbName)
            stckMain.Children.Add(imgManagerSignature)
            stckMain.Children.Add(txbSignatureDate)
            stckMain.Children.Add(txbJob)
            ManagerSignatureUIContainer.UiElement = stckMain
 
            Dim rangeStart As New ReadOnlyRangeStart()
            Dim rangeEnd As New ReadOnlyRangeEnd()
            rangeEnd.PairWithStart(rangeStart)
 
            _paragManager.Inlines.Add(rangeStart)
            _paragManager.Inlines.Add(ManagerSignatureUIContainer)
            _paragManager.Inlines.Add(rangeEnd)
 
            Return _table
        End Function

①Dr Mostafa
Top achievements
Rank 1
 answered on 16 Jan 2018
3 answers
277 views

When using QueryableCollectionView, it takes an IEnumerable as source. Are there any further requirements on the type of the individual items?

My input data is an object-array, and in the code I'm currently investigating a DataTable is created and its DefaultView is used as input to the QueryableCollectionView. I was wondering if I could just skip the DataTable and just use a List<object[]> instead. Apparenty not, but I'm curious as to why?

Ivan Ivanov
Telerik team
 answered on 16 Jan 2018
1 answer
168 views
When you have both change tracking and spell check enabled, if you delete a word and type another word directly next to it, spell check incorrectly sees this as a misspelled word. I attached a screenshot of the issue. Is there a way to work around this?
Tanya
Telerik team
 answered on 16 Jan 2018
1 answer
138 views

Hi

I need to create Windows service,which creates the cartesianChart with data and placed it to the radDocument with additional controls (logo, titles, table)

If I add series and other fields (logo, texts,..) first to the visual element like stackpanel, and then creating a RadDcoument from there, it works ok

 

But can I do this without placing chart first to the visual element? If I try to do this, it's throw "The parameter value must be greater than zero.
Parameter name: pixelWidth" error

 

If this can be done, can you provide an example?

 

Regards,

Auvo

Martin Ivanov
Telerik team
 answered on 16 Jan 2018
0 answers
396 views

Symptoms:

Most controls from the UI for WPF are affected after you install January 9, 2018, .NET Security and Quality Rollup (KB4055002). Applications that request a fallback font or a character that is not included in the currently selected font return the following error messages:
System.TypeInitializationException
“FileFormatException: No FontFamily element found in FontFamilyCollection that matches current OS or greater: Win7SP1”.
Inner exception originates from: CompositeFontParser




Solution 1:


Microsoft has released an update which fixes the issue. More information about it you can find here: Description of the Security and Quality Rollup for .NET Framework 4.6, 4.6.1, 4.6.2, 4.7, and 4.7.1 for Windows 7 SP1 and Server 2008 R2 SP1 (KB 4074880).

Solution 2:

To keep .NET 4.7.1 installed and maintain protection against vulnerabilities that are addressed by the January security updates, uninstall the January .NET Framework Security and Quality Rollup (KB 4055002), and then install the January .NET Framework Security-Only Update (KB 4054183). To do this, follow these steps:

  1. In Control Panel, open the Windows Update item, and then select View update history.
  2. In the Review your update history list, locate and select Security Update for Microsoft .NET Framework 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1 (KB4055002). Then, select Uninstall.
  3. When you are prompted for confirmation to uninstall, select Yes.
  4. Restart your computer if you are prompted to do this.
  5. Download and install the Security Only update for .NET Framework 4.6, 4.6.1, 4.6.2, 4.7, and 4.7.1 for Windows 7 SP1 and Windows Server 2008 R2 SP1 and .NET Framework 4.6 for Windows Server 2008 SP2 (KB 4054183) for your operating system configuration from the following links:
    Security Only update for .NET Framework 4.6, 4.6.1, 4.6.2, 4.7, and 4.7.1 for Windows 7 SP1 and Windows Server 2008 R2 SP1 for x86 systems (KB4054183)
    Security Only update for .NET Framework 4.6, 4.6.1, 4.6.2, 4.7, and 4.7.1 on Windows 7 SP1 and Windows Server 2008 R2 SP1 for x64 systems (KB4055269)
  6. Follow the installation prompts, and then restart your computer if you are prompted to do this.

Solution 3:

Roll back to the previous version of .NET Framework. To do this, follow these steps:

  1. In Control Panel, open the Programs and Features item.
  2. In the Uninstall or change a program list, locate and then select Microsoft .NET Framework 4.7.1, and then select Uninstall/Change.
  3. Select Remove .NET Framework 4.7.1 from this computer, and then select Next. 
  4. Select Continue to confirm the uninstallation.
  5. Select Finish after the uninstallation is finished. 
  6. Restart your computer if you are prompted to do this.
Martin Ivanov
Top achievements
Rank 1
 asked on 15 Jan 2018
1 answer
313 views

Hi,

I have a requirement for which I need a button(radbutton) control with a label and a small circle. The circle should show a different color based on some other result returned from other data source. As per the documentation I understood like a button either can have a text label or an image on it, but not both. Can someone get me a sample project on how to achieve that. Please find the attached sample.

Sia
Telerik team
 answered on 15 Jan 2018
1 answer
420 views

I have a RelayCommand in my ViewModel that I would like to bind to a left mouse click on any part of the ENTIRE chart area.  

I have tried using an interaction and an EventToCommandBehavior, but I can't get any of them to fire.

The chart renders fine but the command (which is used in another ViewModel and works there) never fires (I set a breakpoint in the command body)

Here is the code for the chart and the relevant code of the ViewModel...Any help is appreciated.

protected DataPointMeasurementsViewModel()
{
    GoToDetailsCommand = new RelayCommand(() => GoToDetails());
}
 
public RelayCommand GoToDetailsCommand { get; set; }
 
private void GoToDetails()
{
    var viewModel = new DataPointDetailsChartPageViewModel(DataPointID);
    IoC.Application.GoToPage(ApplicationPage.DataPointDetailsChartPage, viewModel);
}
<telerik:RadCartesianChart x:Name="radChart" Margin="0,0,0,0" Height="340">
                <telerik:RadCartesianChart x:Name="radChart" Margin="0,0,0,0" Height="340">
    <telerik:EventToCommandBehavior.EventBindings>
        <telerik:EventBinding Command="{Binding GoToDetailsCommand}"
                 EventName="MouseLeftButtonDown" RaiseOnHandledEvents="True"  />
    </telerik:EventToCommandBehavior.EventBindings>
    <telerik:RadCartesianChart.HorizontalAxis>
        <telerik:DateTimeContinuousAxis
            LabelInterval="{Binding ChartSettingsViewModel.LabelInterval}"
            LabelFormat="{Binding ChartSettingsViewModel.LabelFormat}"
                                    PlotMode="OnTicksPadded" >
        </telerik:DateTimeContinuousAxis>
    </telerik:RadCartesianChart.HorizontalAxis>
    <telerik:RadCartesianChart.VerticalAxis>
        <telerik:LinearAxis Title="{Binding SeriesTitle}">
        </telerik:LinearAxis>
    </telerik:RadCartesianChart.VerticalAxis>
    <telerik:RadCartesianChart.Grid>
        <telerik:CartesianChartGrid MajorLinesVisibility="Y" MajorYLineDashArray="3,4" />
    </telerik:RadCartesianChart.Grid>
    <telerik:RadCartesianChart.Series>
        <chartView:LineSeries ItemsSource="{Binding Measurements}" Stroke="{Binding LineColor}">
            <chartView:LineSeries.ValueBinding>
                <telerik:PropertyNameDataPointBinding PropertyName="Value"/>
            </chartView:LineSeries.ValueBinding>
            <chartView:LineSeries.CategoryBinding>
                <telerik:PropertyNameDataPointBinding PropertyName="LocalDateTime"/>
            </chartView:LineSeries.CategoryBinding>
        </chartView:LineSeries>
    </telerik:RadCartesianChart.Series>
</telerik:RadCartesianChart>

 

 

Dilyan Traykov
Telerik team
 answered on 15 Jan 2018
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?