Telerik Forums
UI for WPF Forum
1 answer
149 views

Hi Team,

We are using RadStepProgressBar in our project, and we would like to change the selected color from Yellow to Blue. However, we have not been able to find a solution.

Here is the current XAML code:

<telerik:RadStepProgressBar  
    Background="AliceBlue"
    VerticalAlignment="Top" 
    x:Name="stepProgressBar" 
    Grid.Row="0" 
    TrackFill="LightGreen" 
    SelectedIndex="{Binding SelectedIndex, Mode=TwoWay}"
    ItemsSource="{Binding OrderSteps}" 
    DisplayMemberPath="Name" 
    AnimationDuration="0.6"
    Margin="0 0 0 0">
    <telerik:RadStepProgressBar.ItemContainerStyle>
        <Style TargetType="telerik:RadStepProgressBarItem">
            <Setter Property="TextBlock.TextAlignment" Value="Center" />
            <Setter Property="TextBlock.Foreground" Value="White" />
            <Setter Property="ShapeStroke" Value="Black" />
            <Setter Property="Background" Value="DarkSlateGray" />
            <Setter Property="TextBlock.TextAlignment" Value="Center" />
        </Style>
    </telerik:RadStepProgressBar.ItemContainerStyle>
</telerik:RadStepProgressBar>

 

Could you please assist us in changing the selected color to Blue?

Thank you.

Stenly
Telerik team
 answered on 27 Aug 2024
0 answers
83 views

This code behind does not work for importing files that are read only access. No error pops up, just a blank spreadsheet opens up

using (Stream input = new FileStream(this.ExcelDocumentSource, FileMode.Open, FileAccess.Read))
{
    this.Workbook = new XlsxFormatProvider().Import(input);
    //this.Workbook.Protect("telerik");
}

 

Thanks,

Patrick
Top achievements
Rank 1
 asked on 26 Aug 2024
0 answers
92 views

Hello,

I'm wondering if there is a way to set a fixed height to the bars in a barseries. For example, instead of the bars changing height in the following example, I'd like them to stay up with a fixed height.

 

 

 

The desired outcome would look something like this:

The xaml I used fort the example is this:

<telerik:RadCartesianChart>

    <telerik:RadCartesianChart.Series>
        <telerik:BarSeries ShowLabels="False"
                           CategoryBinding="Category"
                           ValueBinding="Value">

            <telerik:BarSeries.DataPoints>
                <telerik:CategoricalDataPoint Category="Apples" Value="20"/>
                <telerik:CategoricalDataPoint Category="Bananas" Value="28"/>
                <telerik:CategoricalDataPoint Category="Oranges" Value="17"/>
                <telerik:CategoricalDataPoint Category="Strawberries" Value="30"/>
            </telerik:BarSeries.DataPoints>
        </telerik:BarSeries>
    </telerik:RadCartesianChart.Series>

    <telerik:RadCartesianChart.HorizontalAxis>
        <telerik:LinearAxis x:Name="horizontalAxis1"/>
    </telerik:RadCartesianChart.HorizontalAxis>
    
    <telerik:RadCartesianChart.VerticalAxis>
        <telerik:CategoricalAxis/>
    </telerik:RadCartesianChart.VerticalAxis>


</telerik:RadCartesianChart>

Is this possible using the BarSeries? Any help is appreciated.

Thank You,

Giuliano

Giuliano
Top achievements
Rank 1
Iron
 asked on 22 Aug 2024
0 answers
114 views

Hi,

 

I would like to have the DataFormComboBoxField  behave the same way as the Edit mode: Editable, Read-Only and Auto Complete ad in your demo application. But when I set it to readonly it is disabled.

My code:

e.DataField = new DataFormComboBoxField()
{
    ItemsSource = _componentsDS.ComponentKeyWords,
    SelectedValuePath = "KeyWordId",
    DisplayMemberPath = "Abbreviation",
    DataMemberBinding = new Binding("KeywordId") { Mode = BindingMode.TwoWay },
    IsComboboxEditable = true,
    IsReadOnly = true,
    Label = "Keyword"
};

 

The example in your application:

 

Kind regards,

 

Johan

Johan Kramer
Top achievements
Rank 1
 asked on 21 Aug 2024
1 answer
79 views

Is the source for this app available?  If so, where?  I don't necessarily need the source, but I'd like to know how the stuff marked in red (I wish I knew the correct names/terminology) is done in a WPF app.

Alternatively, is there a different example that shows it?

Bradley
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 21 Aug 2024
1 answer
111 views

I'm evaluating Telerik's UI for WPF and simply don't have the knowledge nor the time to learn the GridView thoroughly.  I have to make a decision between Telerik and a competitor very soon.

The question is about filtering.  I like the filtering in the Telerik grid, with the funnel icon.  However, my client is familiar with a different experience, and prefers it.  Specifically, the client would like a line between the column headers and the data (basically a textbox in each column) where the user could simply type and the grid would automatically filter using a "contains" (simple concept, but not so easy for me to describe).  Is that something that could be done with Telerik's grid?  Can it be done with configuration, or would it require custom coding?  Ideally I'd love to see an example (GitHub)?

Thanks in advance.

Martin Ivanov
Telerik team
 answered on 20 Aug 2024
1 answer
77 views

Hello,

 

I'm trying to see if there is a way to align a chart label so that it shows up inside the bar but left aligned. Here is what I have right now:

I'd like for the numbers to be left aligned but still in the bar:

 

Here is the xaml I have:


<Window x:Class="TestRadCartesianChart.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        xmlns:local="clr-namespace:TestRadCartesianChart"
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="800">
    <Grid>

        <telerik:RadCartesianChart>

            <telerik:RadCartesianChart.Series>
                <telerik:BarSeries ShowLabels="True"
                                   CategoryBinding="Category"
                                   ValueBinding="Value">

                    <telerik:BarSeries.LabelDefinitions>

                        <telerik:ChartSeriesLabelDefinition HorizontalAlignment="Center" VerticalAlignment="Center">
                            <telerik:ChartSeriesLabelDefinition.Template>
                                <DataTemplate>
                                    <TextBlock Text="{Binding Value}"/>
                                </DataTemplate>
                            </telerik:ChartSeriesLabelDefinition.Template>
                        </telerik:ChartSeriesLabelDefinition>

                    </telerik:BarSeries.LabelDefinitions>

                    <telerik:BarSeries.DataPoints>
                        <telerik:CategoricalDataPoint Category="Apples" Value="20"/>
                        <telerik:CategoricalDataPoint Category="Bananas" Value="28"/>
                        <telerik:CategoricalDataPoint Category="Oranges" Value="17"/>
                        <telerik:CategoricalDataPoint Category="Strawberries" Value="30"/>
                    </telerik:BarSeries.DataPoints>
                </telerik:BarSeries>
            </telerik:RadCartesianChart.Series>

            <telerik:RadCartesianChart.HorizontalAxis>
                <telerik:LinearAxis x:Name="horizontalAxis1"/>
            </telerik:RadCartesianChart.HorizontalAxis>
            
            <telerik:RadCartesianChart.VerticalAxis>
                <telerik:CategoricalAxis/>
            </telerik:RadCartesianChart.VerticalAxis>


        </telerik:RadCartesianChart>

    </Grid>
</Window>

Any help is appreciated.

 

Thank You,

Giuliano Millan

Stenly
Telerik team
 answered on 19 Aug 2024
1 answer
92 views

This is about the RadSplitButton in UI for WPF. I use the Windows 8 theme.

RadSplitButton closed:

RadSplitButton opened:

I want to change that blue color (#25A0DA) to something that's not associated with the theme. I already change the colors of the Windows8Palette and the blue default color seems to be the AccentColor - I don't want to change the AccentColor, though (I set that to something different, which looks great everywhere except the RadSplitButton).

I already added the control template for RadSplitButton and it does work - when I change values I see those in the UI. But which value do I have to change to change the color when RadSplitButton was opened? I couldn't find it.

The XAML sample from the screenshots:

        <telerik:RadSplitButton Content="This is a RadSplitButton" HorizontalAlignment="Left" Margin="80,70,0,0" VerticalAlignment="Top">
            <telerik:RadSplitButton.DropDownContent>
                <StackPanel>
                    <telerik:RadButton Content="This is a RadButton" HorizontalContentAlignment="Left"/>
                    <telerik:RadButton Content="This is a RadButton (2)" HorizontalContentAlignment="Left"/>
                </StackPanel>
            </telerik:RadSplitButton.DropDownContent>
        </telerik:RadSplitButton>

Stenly
Telerik team
 answered on 13 Aug 2024
0 answers
104 views

I have a class wrapper for working with the Telerik zip library. Since I updated my project to work with a new version (Q2) there started a problem with zip files. I can create a zip file protected with some password, but I cannot read or update it, may some problem is with decryption operation, which also occurs in default Windows Explorer and 7Zip application.

There's a code that I use for the wrapper:

public void Create(string archivePath, string? password = null)
{
    using var baseStream = fileSystem.FileStream.New(archivePath, FileMode.Create, FileAccess.ReadWrite);
    using var archive = ZipArchive.Create(baseStream, null, compressionSettings, GetEncryptionSettings(password));
}

public void SerializeEntry<T>(string archivePath, string entryName, T entry, string? password = null)
{
    using var baseStream = fileSystem.FileStream.New(archivePath, FileMode.Open, FileAccess.ReadWrite);
    using var archive = ZipArchive.Update(baseStream, null, compressionSettings, GetDecryptionSettings(password));
    archive.GetEntry(entryName)?.Delete();
    XmlInOut<T>.SaveToStream(archive.CreateEntry(entryName).Open(), entry);
}

public T DeserializeEntry<T>(string archivePath, string entryName, string? password = null)
{
    using var baseStream = fileSystem.FileStream.New(archivePath, FileMode.Open, FileAccess.ReadWrite);
    using var archive = ZipArchive.Read(baseStream, null, compressionSettings, GetDecryptionSettings(password));
    return XmlInOut<T>.LoadFromStream(archive.GetEntry(entryName).Open());
}

private EncryptionSettings GetEncryptionSettings(string? password)
{
    var result = EncryptionSettings.CreateAesPasswordEncryptionSettings();
    result.Password = password;
    return result;
}
private DecryptionSettings GetDecryptionSettings(string? password)
{
    var result = DecryptionSettings.CreateDecryptionSettings();
    result.PasswordRequired += (s, a) => a.Password = password;
    return result;
}
Kostiantyn
Top achievements
Rank 1
Iron
 asked on 12 Aug 2024
1 answer
81 views

I have a GridView with a few rows that have longer headers than I need. To address this, I implemented two-row headers, as shown in one of the screenshots. However, I am using a ControlPanel for a few settings, one of which is hiding and revealing columns in my GridView. This feature doesn't work properly with my two-row headers, as seen in the screenshots.

Initially, when I open the ControlPanel, all two-row headers disappear, leaving empty headers. When I hide a column with a two-row header, the name of the column (header) disappears from the ControlPanel, but the checkbox remains, as shown in the screenshots. When I reveal the column again, the header reappears.

My question is: How should I manage headers when I want them to be two-row?

Stenly
Telerik team
 answered on 12 Aug 2024
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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?