Telerik Forums
UI for WPF Forum
1 answer
165 views

Hello,

is it possible to use the CardLayout-Property Rows but prevent wrapping?

I want to have just a single row with a horizontal scroll bar.

regards,

Tobias

 

Stenly
Telerik team
 answered on 16 Feb 2022
1 answer
1.7K+ views

Hi,

Xaml designer can't displayed content in the runtime design mode

but,  complie and excute all OK

The VS2019 project was made with WPF R3 2020, updated to WPF R1 2022  with VS2022 and compiled.

when installing wpf r1 2022, the installation folder was designated separately, and framework 4.6.2 was used.

Also, i tried to create a new one using the telerik template tool in vs2022 and tried it with

telerik ui for wpf->confiure project or upgrade wizard in 2019 existing project, but it didn't work.

 

Nikolay Mishev
Telerik team
 answered on 16 Feb 2022
1 answer
156 views
Hi, I'm trying to recreate a comparison view like the one attached. Is there a recommended way of going about this? I was hoping to be able to just use RadGridView but I can't get the data to show in columns properly. Maybe a RadListBox?
Martin Ivanov
Telerik team
 answered on 15 Feb 2022
1 answer
718 views

Dear Team,

how i can show/load Dashboard.xaml page in RadNavigationView.Content on click of Dashboard View Item

 

<telerik:RadNavigationView x:Name="navigationView"
                                   PaneHeader="RadNavigationView"
                                   SelectedIndex="0"
                                   DisplayMode="Expanded"
                                   AutoChangeDisplayMode="False">
            <telerik:RadNavigationView.Items>
                <telerik:RadNavigationViewItem Content="Dashbard" Icon="&#xe303;" IconTemplate="{StaticResource IconTemplate}"  Click="RadNavigationViewItem_Click" />
                <telerik:RadNavigationViewItem Content="a" Icon="&#xe301;" IconTemplate="{StaticResource IconTemplate}"  />
                <telerik:RadNavigationViewItem Content="B" Icon="&#xe132;" IconTemplate="{StaticResource IconTemplate}"  />
                <telerik:RadNavigationViewItem Content="c" Icon="&#xe906;" IconTemplate="{StaticResource IconTemplate}"  />
            </telerik:RadNavigationView.Items>
            <telerik:RadNavigationView.PaneFooter>
                <telerik:RadNavigationViewItem Content="About" Icon="&#xe401;" 
                                               IconTemplate="{StaticResource IconTemplate}" 
                                               CommandParameter="{Binding ElementName=navigationView}"  />
            </telerik:RadNavigationView.PaneFooter>
            <telerik:RadNavigationView.Content>
                <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
                   
                </StackPanel>
            </telerik:RadNavigationView.Content>
        </telerik:RadNavigationView>


Stenly
Telerik team
 answered on 14 Feb 2022
1 answer
130 views

Hello,

I have a cartesian chart with line series based on data like this for every chart point

public class ChartEntry
{
    public int Number;
    public DateTime TimeStamp;
    public double Value1;
    public double Value2;
}

My series use Value1/2 for ValueBinding and Number for CategoryBinding. Horizontal axis is of type CategoricalAxis.

I want to add a (toggle)button to switch the horizontal axis from Number to TimeStamp (and back) during runtime.

Means, that I have to change CategoryBinding of series to TimeStamp and horizontal axis to type DateTimeContinuousAxis.

 

At the moment I have no clue how to do that. Any ideas? 

 

Thanks and regards

Stenly
Telerik team
 answered on 14 Feb 2022
1 answer
140 views

I am trying to update themes in a WPF application at run time.   The application is using the no XAML dlls.  The theme is being updated by replacing the resource dictionaries according to Theme change instructions.

When the resource dictionaries are replaced the theme updates for the entire application but all the tabs in the dock disappear.  New tab can be added to the Items Observable collection and they will appear in the dock.

 

        <telerik:RadDocking x:Name="Dock" 
                            AllowDragReorder="True"
                            PanesSource="{Binding Items, UpdateSourceTrigger=PropertyChanged}"
                            CloseButtonPosition="InPane">
            <telerik:RadDocking.DockingPanesFactory >
                <telerik:DockingPanesFactory />
            </telerik:RadDocking.DockingPanesFactory>
        </telerik:RadDocking>


Stenly
Telerik team
 answered on 11 Feb 2022
2 answers
109 views

Hello,

I need a way to Drag & Drop an Item from the Context Menu and then GridView Columns to reordered based on the Context Menu Items ordering. This is for a WPF application.

As I understood this is not supported, I am writing here in any case I just didn't find the solution.

 

Thank you !!

Marios
Top achievements
Rank 1
Iron
 answered on 10 Feb 2022
1 answer
178 views

Hi,

I have a list of RadExpander, inside every Radexpander there is a Radgridview. When  I expand, expander height grow over the size of window and a scroll bar appears in expander control itself.
I would like that expander doesn't grow over the window and the scroll bar appears in the gridview. I could achieve this behaviour setting maxheight in gridview, but I don't want to limit the height of grid.In first attachment the situation when maxheight is not set, in the second with maxheight set, I would achieve the second situation but without setting maxheight.

Thank you

Luigi

 

Below it is the xaml as appears in LiveVisualTree: I think that the real one it is too much complex to understand the situation quickly.


<Grid x:Uid="Grid_1">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<t:RadDocking x:Name="radDocking1"
                            RetainPaneSizeMode="DockingAndFloating"
                            CanAutoHideAreaExceedScreen="True"
                            Grid.Row="1" Margin="0 0 0 10"                            
                            BorderThickness="0"
CloseButtonPosition="InPane"
                            Padding="0"
  Close="radDocking1_Close"
  PaneStateChange="radDocking1_PaneStateChange">
<t:RadSplitContainer 
MinWidth="310"
MaxWidth="600" t:DockingPanel.InitialSize="260,150"
                    Name="RightContainer" InitialPosition="DockedRight">
<t:RadPaneGroup >
<t:RadPane>
<t:RadPanelBar 
HorizontalContentAlignment="Stretch"
ExpandMode="Multiple" Name="PanelBarCursor"
t:StyleManager.Theme="Office_Blue"
ScrollViewer.VerticalScrollBarVisibility="Visible">
<t:RadPanelBarItem 
VerticalAlignment="Top"
HorizontalContentAlignment="Left"
Header="{DynamicResource CursoriAssociati}">
<StackPanel>
<t:RadListBox ItemsSource="{Binding TabCursori.Cursori}" 
  SelectionMode="Single"
  Loaded="RadListBox_Loaded"
  SelectedItem="{Binding TabCursori.SelectedCursor}">
<t:RadExpander t:AnimationManager.IsAnimationEnabled="false" IsExpanded="{Binding IsExpanded, Mode=TwoWay}">
<t:RadExpander.Content>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<t:RadGridView 
MaxHeight="250"
ItemsSource="{Binding PositionsY}"
CanUserDeleteRows="False"
CanUserInsertRows="False"
RowIndicatorVisibility="Collapsed"
AutoGenerateColumns="False"
ShowColumnHeaders="False"
ShowColumnFooters="False"
ShowGroupPanel="False"
ShowScrollPositionIndicator="False"
ShowSearchPanel="False"
SelectedItem="{Binding 
RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=t:RadDocking},
Path=DataContext.TabCursori.PositionHilight}"
   IsReadOnly="True">
<t:RadGridView.Resources>
<Style TargetType="t:GridViewRow">
<Setter Property="SelectedBackground" Value="Bisque"/>
</Style>
</t:RadGridView.Resources>
<t:RadGridView.Columns>
<t:GridViewDataColumn DataMemberBinding="{Binding ParameterName}" Width="100"/>
<t:GridViewDataColumn DataMemberBinding="{Binding ParameterValue, StringFormat=N1}" Width="80"/>
</t:RadGridView.Columns>
</t:RadGridView>
<!--<TextBlock Text="{Binding Internal.PositionY, StringFormat={}{0:F4}}"
   Visibility="{Binding PositionYVisibility, Converter={StaticResource BoolToVis}}"/>-->
</Grid>
</t:RadExpander.Content>
</t:RadExpander>
</t:RadPanelBarItem >
</t:RadPanelBar>
</t:RadPane>
</t:RadSplitContainer >
</t:RadDocking>
</grid>
Martin Ivanov
Telerik team
 answered on 10 Feb 2022
0 answers
78 views
I've been struck with a dilemma. A certain RadWindow contains a RadTabControl, that has a Tab with RadCartesianCharts and a WebBrowser on it. I discovered that the web browser wasn't able to show when we changed all Windows into RadWindows, and the solution would be to use the RadWindowInteropHelper to set the transparency to false. This solved the WebBrowser's issue and now it displays, but suddenly the colored bars on the charts don't appear, so it seems the transparency was necessary for them. I'm not sure if there's a way for me to have both appear or if I'll need to make changes to how the application should work. 
Evan
Top achievements
Rank 1
 asked on 09 Feb 2022
1 answer
105 views

I have this working for properties of the GroupHeaderRow. How do I change the text of the header row?

 Property="Header" Value = "{}{0} test" and  Property="Content" Value = "{}{0} test"  dont seems to do anything.

 public class GroupRowStyleSelector : StyleSelector
    {
        public override Style SelectStyle(object item, DependencyObject container)
        {
            var group = item as QueryableCollectionViewGroup;   
            if (group.count > 1)
            {               
                return BigGroupStyle;
            }
            else
            {
                return SmallGroupStyle;
            }
        }

        public Style BigGroupStyle { get; set; }
        public Style SmallGroupStyle { get; set; }     
    }
<Window.Resources>
        <local:GroupRowStyleSelector x:Key="GroupRowStyleSelector">
            <local:GroupRowStyleSelector.BigGroupStyle>
                <Style TargetType="telerik:GroupHeaderRow">
                     <Setter Property="Background" Value="Red" />
                </Style>
            </local:GroupRowStyleSelector.BigGroupStyle>
            <local:GroupRowStyleSelector.SmallGroupStyle>
                <Style TargetType="telerik:GroupHeaderRow">
                <Setter Property="Background" Value="Yellow" />
                </Style>
            </local:GroupRowStyleSelector.SmallGroupStyle>
        </local:GroupRowStyleSelector>
    </Window.Resources>


Dilyan Traykov
Telerik team
 answered on 09 Feb 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?