Now I have the honor of being the first to write something on the subject. :-)
I would like to display a callout in the lower right corner of my window - similar of what NotifyIcon does in the taskbar. The documentation mentions some "Absolute..." placements, but is very sparse in explaining the usage. It should just behave like the usual "Toaster" components that are often used on webapplications.
Regards
Heiko
Hello, I have a document with a predefined structure locked by read-only ranges. Users are allowed to edit only small portions of it in the middle. But I cannot find a way to prevent them editing the beginning of the document before the first read-only range or at the end of the document after the last read-only range. Is there some way to achieve this?
Best regards,
Vitalij
Hello, and thank you in advance for your help.
I am attempting to have a a column that would change the way it displays data based off an enum value in another column using MVVM. For a reason I have not been able to find, there are two issues happening.
My column that has different data types displaying has a stackpanel that contains three bound objects, a textbox, textblock, and bool. On each of these is a converter that will refer to the Enum where the logic will set one to visible and the other two to collapsed.
Currently, the binding is working, but the only way to see the value is to click on the field. Also, only one row shows the data, if I select another field the data disappears and shows the new data (and the correct data persists and shows if I click it again). Another problem is that the converter only fires when I click the field, even though it is not bound to a click style event.
Do you have any idea why data is not showing up when unless the boxes are clicked? Do you how to show the data on all rows?
Here is my code:
Xaml:
<telerik:GridViewColumn Header="Action" Width="150">
<telerik:GridViewColumn.CellTemplate>
<DataTemplate>
<telerik:RadComboBox ItemsSource="{Binding Path=ActionSource}"
SelectedValue="{Binding Path=Action}"
DisplayMemberPath="Description"
SelectedValuePath="Value"
Name="actionBox" />
</DataTemplate>
</telerik:GridViewColumn.CellTemplate>
</telerik:GridViewColumn>
<telerik:GridViewColumn Header="Value" Width="*">
<telerik:GridViewColumn.CellEditTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<TextBox Text="{Binding Path=RenamedName, Mode=TwoWay}"
cal:Bind.Model="{Binding}"
IsReadOnly="False"
Visibility="{Binding Path=Action, Converter={StaticResource MappableTypesIndexToBoolConverter}, ConverterParameter=Renamed}" />
<TextBlock Text="{Binding Path=Ignore, Mode=OneWay}"
cal:Bind.Model="{Binding}"
Visibility="{Binding Path=Action, Converter={StaticResource MappableTypesIndexToBoolConverter}, ConverterParameter=Ignore}" />
<telerik:RadComboBox ItemsSource="{Binding Path=MappableComponentName, Mode=TwoWay}"
SelectedItem="{Binding Path=Remapped, Mode=TwoWay}"
DisplayMemberPath="Name"
DropDownWidth="auto"
cal:Bind.Model="{Binding}"
Visibility="{Binding Path=Action, Converter={StaticResource MappableTypesIndexToBoolConverter}, ConverterParameter=Map}"
Width="200" />
</StackPanel>
</DataTemplate>
</telerik:GridViewColumn.CellEditTemplate>
</telerik:GridViewColumn>
Converter:
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
string actionsBoxValue = value.ToString();
string param = parameter.ToString();
switch (actionsBoxValue)
{
case "IGNORE":
if (param == "Ignore")
{
return "Visible";
}
else
{
return "Collapsed";
}
case "RENAMED":
if (param == "Renamed")
{
return "Visible";
}
else
{
return "Collapsed";
}
case "MAP":
if (param == "Map")
{
return "Visible";
}
else
{
return "Collapsed";
}
case "CREATE":
{
if (param == "Create")
{
return "Visible";
}
else
{
return "Collapsed";
}
}
default:
return null;
}
}
Let me know if there is any additional information that might be helpful. Have a great day!
Hi,
I would like to implement a feature like below with NavigationView.
1. I use NavigationView to show a list of countries as items, say UK, USA, Australia, etc.
2. The first NavigationView Item is called "Overview". It basically displays all the countries on a TileView.
3. When user clicks one Tile on the "Overview", say "UK", I want to jump to the "UK" item of NavigationView to disaply detailed information on UK
How can do that on a MVVM way? I guess I maybe able to use SelectedItem of RadTransitionControl to achieve this, but I am not sure how exactly I can do this.
Appreciate any help.
Thanks.
Hello.
I am now customizing the demo source for "DiagramDesignToolBox", a diagram program for WPF.
Here I am trying to customize the shape controls in the ToolBox to suit my needs and drag and drop them to display on the interface.
In my ToolBox of the program, I want to display only the shape controls as shown in the picture.
So, I added custom shape controls to the toolbox by referring to https://docs.telerik.com/devtools/wpf/controls/raddiagram/features/raddiagrams-drag-drop.
But here, all others can perform draw drop, but only one shape control (end shape) cannot accurately perform draw drop.
This is my code follow as:
- XAML:
<ListBox x:Name="xListBox" Grid.RowSpan="2" Grid.Column="2">
<ListBox.Resources>
<Style x:Key="DraggableContainerShape" TargetType="telerik:RadDiagramContainerShape">
<Setter Property="telerik:DragDropManager.AllowCapturedDrag" Value="True" />
</Style>
<Style x:Key="DraggableShapeStyle" TargetType="telerik:RadDiagramShape">
<Setter Property="telerik:DragDropManager.AllowCapturedDrag" Value="True" />
</Style>
</ListBox.Resources>
<telerik:RadDiagramShape Width="100"
Height="100"
Content="Start"
Geometry="{telerik:FlowChartShape ShapeType=StartShape}"
Style="{StaticResource DraggableShapeStyle}" />
<telerik:RadDiagramShape Width="100"
Height="100"
Content="Task"
Style="{StaticResource DraggableShapeStyle}" />
<telerik:RadDiagramShape Width="100"
Height="100"
Content="Gateway"
Geometry="{telerik:FlowChartShape ShapeType=DecisionShape}"
Style="{StaticResource DraggableShapeStyle}" />
<telerik:RadDiagramShape
Width="100"
Height="100"
Geometry="{telerik:CommonShape ShapeType=EllipseShape}"
Style="{StaticResource DraggableShapeStyle}">
<telerik:RadDiagramShape.ContentTemplate>
<DataTemplate>
<Ellipse Width="50"
Height="50"
Fill="#FF333333"
/>
</DataTemplate>
</telerik:RadDiagramShape.ContentTemplate>
</telerik:RadDiagramShape>
</ListBox>
- C#:
public Example()
{
InitializeComponent();
DragDropManager.AddDragInitializeHandler(xListBox, OnDragInitialize);
service = diagram.ServiceLocator.GetService<ISerializationService>();
}
private void OnDragInitialize(object sender, DragInitializeEventArgs args)
{
args.AllowedEffects = DragDropEffects.All;
SerializationInfo serializaedInfo;
if (args.OriginalSource is RadDiagramShape)
{
RadDiagramShape draggedShape = args.OriginalSource as RadDiagramShape;
List<RadDiagramShape> shapes = new List<RadDiagramShape>();
shapes.Add(draggedShape);
serializaedInfo = SerializationService.Default.SerializeItems(shapes);
}
else
{
RadDiagramContainerShape draggedShape = args.OriginalSource as RadDiagramContainerShape;
List<RadDiagramContainerShape> shapes = new List<RadDiagramContainerShape>();
shapes.Add(draggedShape);
serializaedInfo = SerializationService.Default.SerializeItems(shapes);
}
args.Data = serializaedInfo;
}
Please help me.
Hallo,
I found only RadMap control for WinForms in NuGet?
Where can I get the assembly/DLL of Telerik.Windows.Controls.Map for WPF?
Regards
T
How does one hide the back-button in Backstage ?
we have our own custom menu in there and have no need for the round "<" go-back button in the left side panel.
Thanks,
Barry
I have some controls structured like this:
<telerik:RadSplitContainer
<telerik:RadSplitContainer
<telerik:RadPane
<CONTROL
When the RadPane is not active, two clicks are required to fire mousedown events in the control.
Is it possible to do this with just one Click?
For example the Control van be a RadExpander... two seperate clicks are required to expand it
I noticed the RadGridView activates and handles mousedown, with just one click for example when it is placed inside a RadPane