See the following:
I cannot reproduce using a simple test project. I am attaching a Word VSTO project that is a test version. I have removed packages which included Fody PropertyChanged and the Telerik Xaml controls.
We are seeing a Dispatch Processor error in Word when the HighlightText is enabled. It goes away if that is removed. Our VSTO project is way too large to easily demo but we passed QA if that HighlightText is removed. Why that is happening is hard to say since Word COM provides little to no information on the issue.
I will compare code against Vladimir's sample and see if I can spot differences. Will get back if something pops out.
As you can see in the picture the button just gets cut. It only does this if the hight is less than 38
<Grid.RowDefinitions><RowDefinition Height="Auto"/><RowDefinition Height="70"/><RowDefinition Height="*"/></Grid.RowDefinitions><Grid Grid.Row="1" >
<telerik:RadDropDownButton HorizontalAlignment="Right" Margin="0,0,20,10" Background="#EFEFEF" Padding="5,0,0,0"
Height="24" BorderThickness="1" BorderBrush="LightGray" CornerRadius="5" telerik:StyleManager.Theme="Windows11" >
<telerik:RadDropDownButton.Content>
Hi,
I used ExplorerControl to create a custom FileOpen Dialog.
Now I want to include a file preview when clicking on a file of specific type.
Unfortunately I cannot find a way to get notified by a change of selected Filename.
Is there a way to do that?
Best Regards,
Dominic
I have the following XAML code:
<telerik:RadMultiColumnComboBox
VerticalAlignment="Top"
Width="250"
DisplayMemberPath="Name"
IsReadOnly="True"
SelectionMode="Single"
SelectionBoxesVisibility="Hidden"
CloseDropDownAfterSelectionInput="True"
DropDownWidth="320"
SelectedItem="{Binding SelectedMandant}">
<telerik:RadMultiColumnComboBox.ItemsSourceProvider>
<telerik:GridViewItemsSourceProvider ItemsSource="{Binding MandantCollection}" AutoGenerateColumns="False" RowIndicatorVisibility="Hidden">
<telerik:GridViewItemsSourceProvider.Columns>
<telerik:GridViewDataColumn Header="Mandant" DataMemberBinding="{Binding Path=Name}"/>
<telerik:GridViewDataColumn
Header="Letzter Abschluss"
DataMemberBinding="{Binding Path=FibuAbschluss}"
DataFormatString="{} {0:dd.MM.yyyy}"
TextAlignment="Center"
HeaderTextAlignment="Center"/>
</telerik:GridViewItemsSourceProvider.Columns>
</telerik:GridViewItemsSourceProvider>
</telerik:RadMultiColumnComboBox.ItemsSourceProvider>
<telerik:EventToCommandBehavior.EventBindings>
<telerik:EventBinding EventName="SelectionChanged" Command="{Binding SelectedMandantChangedCmd}" RaiseOnHandledEvents="True" PassEventArgsToCommand="True"/>
</telerik:EventToCommandBehavior.EventBindings>
</telerik:RadMultiColumnComboBox>
Now everything works fine beside that the first time when the UI is rendered, the RadMultiColumnComboBox Input does not show the current selected item.
I set the SelectedItem in the constructor of my view model:
private Mandant? _selectedMandant;
public Mandant? SelectedMandant
{
get => _selectedMandant;
set
{
_selectedMandant = value;
OnPropertyChanged();
}
}
public KontoViewModel(CommonDbContext commonDbContext, StruebyWinBContext winBContext)
{
......
if(MandantCollection.Count > 0)
{
SelectedMandant = MandantCollection[0];
......
}
.......
}
I see that the SelectedMandat has a value and also it works fine after i select another item, then the item shows.
But the first time after loading, the RadMultiColumnComboBox Input does not show any value, its empty.
It should show the selected item that i set in the constructor of my view model.
Can anyone help me here, thanks
RadCircularProgressBar cannot set width and heighth!
What ever height and width I set for the RadCircularProgressBar, the total pane never change its size.
Its so stange, I want a small RadCircularProgressBar, how can i do it? it just keeps its original size.
<telerik:RadCircularProgressBar Grid.Row="3" Grid.Column="0"Hi,
I have this code and i do not know how to bind to a view model command when i check a checkbox or when i write in a column.
<UserControl x:Class="WISN.Windows.Survey.FacilityStaffControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:vm="clr-namespace:WISN.Windows.Survey.ViewModels"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<telerik:RadTreeListView x:Name="stufftreeListView" AutoGenerateColumns="False"
AutoExpandItems="True" GroupRenderMode="Flat" CanUserDeleteRows="False"
ItemsSource="{Binding AllStaffByType,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged }">
<telerik:RadTreeListView.ChildTableDefinitions>
<telerik:TreeListViewTableDefinition ItemsSource="{Binding StaffCategories,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></telerik:TreeListViewTableDefinition>
</telerik:RadTreeListView.ChildTableDefinitions>
<telerik:RadTreeListView.Columns>
<telerik:GridViewCheckBoxColumn DataMemberBinding="{Binding IsSelected}" AutoSelectOnEdit="True" EditTriggers="CellClick">
<telerik:EventToCommandBehavior.EventBindings>
<telerik:EventBinding Command="{Binding CustomCommandCommand}" EventName="MouseLeftButtonDown" />
</telerik:EventToCommandBehavior.EventBindings>
</telerik:GridViewCheckBoxColumn>
<telerik:GridViewDataColumn IsReadOnly="True" DataMemberBinding="{Binding Name}" Header="Stuff"></telerik:GridViewDataColumn>
<telerik:GridViewDataColumn DataMemberBinding="{Binding AnnualSalary}" Header="Annual Salary"></telerik:GridViewDataColumn>
</telerik:RadTreeListView.Columns>
</telerik:RadTreeListView>
</UserControl>
Thanks
Hi,
I am using <telerik:RadTreeListView> and the scroll functionality does not work. this is how my code looks like:
<UserControl x:Class="WISN.Windows.Survey.FacilityStaffControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:vm="clr-namespace:WISN.Windows.Survey.ViewModels"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<telerik:RadTreeListView x:Name="stufftreeListView" AutoGenerateColumns="False"
AutoExpandItems="True" GroupRenderMode="Flat" CanUserDeleteRows="False"
ItemsSource="{Binding AllStaffByType,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged }">
<telerik:RadTreeListView.ChildTableDefinitions>
<telerik:TreeListViewTableDefinition ItemsSource="{Binding StaffCategories,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></telerik:TreeListViewTableDefinition>
</telerik:RadTreeListView.ChildTableDefinitions>
<telerik:RadTreeListView.Columns>
<telerik:GridViewCheckBoxColumn DataMemberBinding="{Binding IsSelected}" AutoSelectOnEdit="True" EditTriggers="CellClick">
<telerik:EventToCommandBehavior.EventBindings>
<telerik:EventBinding Command="{Binding CustomCommandCommand}" EventName="MouseLeftButtonDown" />
</telerik:EventToCommandBehavior.EventBindings>
</telerik:GridViewCheckBoxColumn>
<telerik:GridViewDataColumn IsReadOnly="True" DataMemberBinding="{Binding Name}" Header="Stuff"></telerik:GridViewDataColumn>
<telerik:GridViewDataColumn DataMemberBinding="{Binding AnnualSalary}" Header="Annual Salary"></telerik:GridViewDataColumn>
</telerik:RadTreeListView.Columns>
</telerik:RadTreeListView>
</UserControl>
I really do not know how to fix it.
Thanks
<utils:AppointmentStyleSelector x:Key="AppointmentStyleSelector">
<utils:AppointmentStyleSelector.ArrivedAppointmentStyle>
<Style TargetType="telerik:AppointmentItem">
<Setter Property="Background" Value="Green"/>
</Style>
</utils:AppointmentStyleSelector.ArrivedAppointmentStyle>
<utils:AppointmentStyleSelector.IndicatorAppointmentStyle>
<Style TargetType="telerik:AppointmentItem">
<Setter Property="Background" Value="Red"/>
</Style>
</utils:AppointmentStyleSelector.IndicatorAppointmentStyle>
</utils:AppointmentStyleSelector>