Hello.
When using the tooltip content separately, the namespace is shown together.
<
telerik:RadButton
Height
=
"30"
Width
=
"30"
telerik:RadToolTipService.Placement
=
"Mouse"
telerik:RadToolTipService.ShowDuration
=
"5000"
>
<
telerik:RadButton.Content
>
<
TextBlock
Text
=
""
FontFamily
=
"Segoe MDL2 Assets"
/>
</
telerik:RadButton.Content
>
<
telerik:RadToolTipService.ToolTipContent
>
<
telerik:RadToolTipContentView
>
<
TextBlock
Text
=
"ToolTip Name"
/>
</
telerik:RadToolTipContentView
>
</
telerik:RadToolTipService.ToolTipContent
>
</
telerik:RadButton
>
If I use telerik:RadToolTipService.ToolTipContent="Content" it looks correct.
However, the above source was selected because it should be different from the button font setting.
When telerik:RadToolTipContentView is deleted, only other namespaces are shown, textblock content is not.
Please check.
Thanks.
Hello,
Look at the included screenshots. As you can see, when the end of an attribute is outside the current view, the value is in black, not in blue. When the view is scrolled horizontally, it suddenly becomes blue, when the scroll returns to the left, it becomes black again!
I set a global textblock style in app.xaml in order to styling text in dialog:
<Style TargetType="TextBlock" x:Key="{x:Type TextBlock}">
<Setter Property="Width" Value="100"/>
<Setter Property="Margin" Value="5"/>
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="t:StyleManager.Theme" Value="{StaticResource GlobalTheme}"/>
</Style>
But when I run the application I saw that the width property affect the space left for the menu item in toolbar:
This is the appearance without textblock style:
How can I use the style without change the Menu?
Thank you
Luigi
Hello.
I am using Revit API as well, so it seems to have a problem. (For similar issues, I will ask elsewhere.)
The xaml designer keeps crashing.
I am using the variable name like Rooms in the xaml source.
<telerik:RadGridView ItemsSource="{Binding Rooms}"/>
This is where the xaml designer exception is thrown.
ArgumentException: 'RadGlyphExtension' is not valid for Setter.Value. The only supported MarkupExtension types are DynamicResourceExtension and BindingBase or derived types.
I don't use glyph. I don't know if this is only the 'Rooms' variable, but there are other exception errors as well.
It succeeds on build, it starts up and works fine until results.
The controller is difficult to place as the error only occurs in the designer.
Why is that so? Could I ask for confirmation?
Thanks
Hi,
Are there any best practices in order to develop a web application (with kendo for instance) and a wpf application (with UI for WPF) with very similar appearance and user experience?
Thank you
Hi Team,
We want to show the battery status for laptop users in our application designed using Telerik in MVVM pattern using PRISM framework. We want to show the ICON with gauge showing current status of Battery very similar to thermometer design present in Telerik sample application.
We are able to design the Battery similar to mobile application using Viewbox and Borders in WPF. We are not able to implement it in the Telerik RadVerticalLinearScale Custom Items. We want to define the battery status with 3 ranges in which one will be red indicating action required, one will be yellow representing warning and one will be green indicating normal state. Kindly help us design it using RadVerticalLinearGauge.
Below is the code we tried but it is not working. If you have any other way then please help we also tried like thermometer code but we are not able to design the battery as shown in image.
<
telerik:RadVerticalLinearGauge
Grid.Row
=
"3"
Grid.Column
=
"0"
Grid.RowSpan
=
"4"
><
br
> <
telerik:VerticalLinearScale
Min
=
"0"
Max
=
"100"
MajorTicks
=
"4"
RangeLocation
=
"Inside"
IsInteractive
=
"True"
><
br
> <
telerik:VerticalLinearScale.Ranges
><
br
> <
telerik:GaugeRange
Background
=
"#FFE50000"
Min
=
"0"
Max
=
"20"
IndicatorBackground
=
"#FFE50000"
StartWidth
=
"0.05"
EndWidth
=
"0.05"
/><
br
> <
telerik:GaugeRange
Background
=
"#FFFFFF00"
Min
=
"20"
Max
=
"30"
IndicatorBackground
=
"#FFFFFF00"
StartWidth
=
"0.05"
EndWidth
=
"0.05"
/><
br
> <
telerik:GaugeRange
Background
=
"#FF32CD32"
Min
=
"30"
Max
=
"100"
IndicatorBackground
=
"#FF32CD32"
StartWidth
=
"0.05"
EndWidth
=
"0.05"
/><
br
> </
telerik:VerticalLinearScale.Ranges
><
br
> <
telerik:VerticalLinearScale.Indicators
><
br
> <
telerik:BarIndicator
UseRangeColor
=
"True"
<br> RangeColorMode="MixedColor" <
br
> Value="35" /><
br
> </
telerik:VerticalLinearScale.Indicators
><
br
> <
telerik:VerticalLinearScale.Template
><
br
> <
ControlTemplate
><
br
> <
Viewbox
Width
=
"80"
Height
=
"150"
><
br
> <
StackPanel
Orientation
=
"Vertical"
><
br
> <
Border
Background
=
"#00c000"
CornerRadius
=
"2,2,0,0"
Padding
=
"2"
Width
=
"20"
Height
=
"7"
Margin
=
"0,-2,0,-2"
/><
br
> <
Border
BorderBrush
=
"#00c000"
BorderThickness
=
"2"
CornerRadius
=
"5"
Padding
=
"2"
Width
=
"50"
Height
=
"100"
><
br
> <
Grid
><
br
> <
Grid.RowDefinitions
><
br
> <
RowDefinition
/><
br
> <
RowDefinition
Height
=
"Auto"
/><
br
> </
Grid.RowDefinitions
><
br
> <
Border
Height
=
"75"
Grid.Row
=
"1"
Background
=
"#00c000"
CornerRadius
=
"2"
Padding
=
"2"
/><
br
> </
Grid
><
br
> </
Border
><
br
> </
StackPanel
><
br
> </
Viewbox
><
br
> </
ControlTemplate
><
br
> </
telerik:VerticalLinearScale.Template
><
br
> </
telerik:VerticalLinearScale
><
br
> </
telerik:RadVerticalLinearGauge
>
Hi Martin,
Thanks for the code sample tried to implement the way you have shown but it does not look like the expected design shared in the sample image. We have Windows application which we have designed using telerik control and was able to achieve the same design using rad linear Gauge. You can check below attached image for the same. We are migrating this application to WPF and we are not able to design this part. Can you look at windows control and helps us design the same way?
Or can we achieve the same thing using any other way like using path for designing the battery icon like you people had designed the thermometer? Kindly help.
Attaching changedbatterydesignonResize for reference.
Hello.
I'm looking for a similar control like Matrix table.
Among them, HeatMap Control is the most similar, so I used it.
But here is the problem. I have attached an example file.
I want to control by putting TextBox in Cell. However, putting a textbox in the template doesn't work.
I'm far from using HeatMap, but I'm trying to use it this way.
Is there a way or could you recommend a different control for what I want to do?
Thanks.
Hello,
Please see the attached sample app for reference.
The issue is with the Crystal theme when I try to set the height of the row to 20 pixels in the grids and the height does change, however, it won't increase when a cell's text wraps. If you run the attached app you will see that behavior.
The row height is set in App.xaml line 73. If you comment out that line you will see the functionality of the row height resize, but there is a lot of white space above and below the text in the grid. This is what I am trying to remove.
There is code I added to the App.xaml file at line 69 that sets the theme for the gridview to VisualStudio2019 that sets the row height the way I want it in the grids, however, if you comment that out and leave the line 73 uncommented, the row height for the grid does not increase with word wrapping in the cell.
Is there a way to get the row height to have less white space and the row height to adjust with the word wrapping in the cells?
Thanks,
Jack
Hi,
I'm version locked at 2020.1.218.
I'm not sure what I am doing wrong or has changed but suddenly I am no longer able to render pdf from a file or URL. The implementation was simple. Here is my snippet
PDFURL is a direct url string to a hosted PDF file.
var SavePathStr = @"%ALLUSERSPROFILE%\HES\" + Constants.TempNDApdf;
var SavePathFinal = Environment.ExpandEnvironmentVariables(SavePathStr);
using (WebClient client = new WebClient())
{
client.DownloadFile(PDFURL, SavePathFinal);
}
pdfViewer.DocumentSource = new PdfDocumentSource(new Uri(SavePathFinal));
I've not have any issues doing it this way until recent compiles. I'm not sure what I broke.
if it helps, this is my xml using for RadPdfViewer,
<telerik:RadPdfViewer x:Name="pdfViewer" BorderBrush="#286090" BorderThickness="2"
Grid.Column="0" Grid.ColumnSpan="2" Margin="0,15,5,0"
Grid.Row="0" Grid.RowSpan="3" Background="Transparent"
Width="875" Height="400"
HorizontalAlignment="Right" VerticalAlignment="Center"
/>
I'm not seeing any "errors" exactly, no exceptions thrown. I get a quick loading symbol and nothing happens. If I step into it to examine the new PdfDocumentSource, it says "Document" is null.