Telerik Forums
UI for WPF Forum
5 answers
283 views

Hi

How can I create a custom Hexagons RadButton with material style and effect?

Vicky
Telerik team
 answered on 18 Oct 2019
6 answers
188 views

Dear Telerik team,

We have a RadGridView with localised columns and we would like to use string that remain same for all localised value. In order to achieve we use UniqueName="Id" and Set AutomationProperties.AutomationId="{Binding UniqueName, RelativeSource={RelativeSource Self}}" but when we run application the Header which is a localised string always get precedence and we end up with header value.

Here is a code there we were using for defining columns

<telerik:GridViewDataColumn
                    x:Name="OrderId"
                    Width="auto"
                    AutomationProperties.AutomationId="{Binding UniqueName, RelativeSource={RelativeSource Self}}"                     DataMemberBinding="{Binding Id}"
                    Header="{x:Static resources:Resources.Id}"
                    Style="{StaticResource RightAlignedRadGridViewColumnStyle}"
                    UniqueName="OrderId">

Usman
Top achievements
Rank 1
 answered on 18 Oct 2019
1 answer
71 views

Hi,

Facing an strange issue, whenever i am trying to add a new row in the grid , the multi select filters starts showing empty value in the filter options, so from which event i can rectify this issue.

 

Help is appreciated. Attached the screenshot.

 

Dilyan Traykov
Telerik team
 answered on 18 Oct 2019
2 answers
219 views

Hi,

When I try to set the padding for the Row Header in my pivot grid it causes the row expand buttons to disappear? I need to adjust the padding so the text sits correctly (in the middle not bottom) of the row.

I have attached images showing the missing expand button. Should the RowHeaderStyle maybe based on a different style?

Thanks for you help!

 Dom

1.<pivot:RadPivotGrid x:Name="radPivotGrid1" Grid.Column="0" DataProvider="{Binding DataProvider}" AllowSelection="True" RowHeight="20" CellTextPadding="2" >
2.  <pivot:RadPivotGrid.RowHeaderStyle>
3.    <Style TargetType="pivot:PivotHeader" BasedOn="{StaticResource PivotHeaderStyle}">
4.      <Setter Property="Padding" Value="20 2 5 0"></Setter>
5.    </Style>
6.  </pivot:RadPivotGrid.RowHeaderStyle>
7.</pivot:RadPivotGrid>
Dom
Top achievements
Rank 1
 answered on 18 Oct 2019
1 answer
227 views
Is it possible to change the size of the thumbnails from code behind?
Martin
Telerik team
 answered on 17 Oct 2019
3 answers
494 views

I have the following .xaml and it correctly colorizes the foreground on specific items when a certain condition is met (Impinged = True).
However, when I select that item, it doesn't maintain the color. I attempted the following suggestion on this thread but it didn't work. Either because I am working with Telerik or something else.

I tried this but didn't work:

https://stackoverflow.com/questions/49936272/combobox-change-selected-item-background-color-by-trigger-condition

 

<telerik:GridViewDataColumn.CellTemplate>
  <DataTemplate>
     <telerik:RadComboBox
        x:Name="cbLowBand"
        DisplayMemberPath="Name"
        ItemsSource="{Binding DataContext.LowBandItems, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:RadGridView}}}"
        SelectedItem="{Binding SelectedLowItem, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
        Style="{StaticResource MyCustomStyle}"

        <telerik:RadComboBox.ItemContainerStyle>
       <Style TargetType="telerik:RadComboBoxItem">
              <Style.DataTriggers>
         <DataTrigger Binding="{Binding IsImpinged}", Value="True">
        <Setter Property="Foreground" Value="Red" />
        <Setter Property=ToolTip", Value="{Binding ImpingedTooltip}" />
         </DataTrigger>
      </Style.DataTriggers>
    </Style> 
    </telerik:RadComboBox.ItemContainerStyle>

       <!--other non related stuff>
       <telerik:EventToCommandBehavior.EventBindings>
     <telerik:EventBinding
              Command="{Binding DataContext.LowBandItem, RelativeSource=...........

Dimitar Dinev
Telerik team
 answered on 17 Oct 2019
3 answers
181 views

Hi,

we have a strange behavior, when we bound a group filter.

                <telerik:RadScheduleView.ViewDefinitions>
                    <telerik:DayViewDefinition  GroupFilter="{Binding VmGroupFilter}" DayStartTime="06:00" DayEndTime="19:00" TimerulerMajorTickStringFormat="{}{0:H:mm}"/>
                    <telerik:WeekViewDefinition GroupFilter="{Binding VmGroupFilter}" DayStartTime="06:00" DayEndTime="19:00"/>
                    <telerik:MonthViewDefinition GroupFilter="{Binding VmGroupFilter}"/>
                </telerik:RadScheduleView.ViewDefinitions>
            </telerik:RadScheduleView>

The DayView works like expected, but now the week view is still a day view and the month view is the week view.
See attached screen shots.

Do you have any explanation for this?

 

Vladimir Stoyanov
Telerik team
 answered on 17 Oct 2019
1 answer
295 views

We are currently using a simple map component which allows us to load our "map" as a picture (.png). I would like to use the Telerik RadMap instead because you provide several features (virtualization, zooming, layers) which are only supported in a basic way by our current component. We are displaying industrial plant maps which could be represented in "GPS" coordinates however our systems are built to use a different coordinate system. The problem is that we do NOT use shape files, a global coordinate system or such things however the RadMap component is mostly built to be used like that. I tried to use the UriImageProvider which displays my map however I don't know how to configure my coordinate system.

Our map has the following data:

- map image (.png)

- defined coordinate origin (-> e.g. bottom right of the image)

- 1 Pixel = 20mm

- drawings (polylines) based on coordinates located in a SQL DB

 

Is it possible to use the RadMap for our purposes and if so how?
Martin Ivanov
Telerik team
 answered on 17 Oct 2019
19 answers
1.0K+ views

Hello admins.

I have a problem with RadPdfViewer.

normal case is good.

--MainWindow.cs------------------------------------------

    public partial class MainWindow : Window
    {
        string pdfFilePath = @"C:\Temp\PDFs\20170707 learnwpf.pdf";

        public MainWindow()
        {
            InitializeComponent();
            
            this.pdfViewer.DocumentSource = new PdfDocumentSource(new System.Uri(pdfFilePath, System.UriKind.RelativeOrAbsolute));
        }
    }

------------------------------------------------------------

 

But, in MvvM not working.

--MainWindow.xaml------------------------------------

<Window x:Class="TelerikWpfPDFViewerBinding.MainWindow"
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                Title="MainWindow" Height="350" Width="525">
    <Grid>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition/>
            </Grid.RowDefinitions>
            <telerik:RadPdfViewerToolBar RadPdfViewer="{Binding ElementName=pdfViewer, Mode=OneTime}" SignaturePanel="{Binding ElementName=signaturePanel, Mode=OneTime}"/>
            <telerik:SignaturePanel x:Name="signaturePanel" PdfViewer="{Binding ElementName=pdfViewer, Mode=OneWay}" Grid.Row="1"/>
            <telerik:RadPdfViewer x:Name="pdfViewer" 
                                  DataContext="{Binding CommandDescriptors, ElementName=pdfViewer}" 
                                  telerik:RadPdfViewerAttachedComponents.RegisterSignSignatureDialog="True" 
                                  telerik:RadPdfViewerAttachedComponents.RegisterFindDialog="True" 
                                  Grid.Row="2" 
                                  telerik:RadPdfViewerAttachedComponents.RegisterSignaturePropertiesDialog="True" 
                                  telerik:RadPdfViewerAttachedComponents.RegisterContextMenu="True"
                                  Document="{Binding PDFDocument,Mode=TwoWay}"/>
        </Grid>

    </Grid>
</Window>

-------------------------------------------------------------------------------------

--MainWindow.xaml.cs-------------------------------------------------------

namespace TelerikWpfPDFViewerBinding
{
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            DataContext = new MainWindowViewModel();
        }
    }
}

---------------------------------------------------------------------------------

--MainWindowViewModel.cs-------------------------------------------

using System.IO;

using Telerik.Windows.Controls;

using Telerik.Windows.Documents.Fixed.FormatProviders;
using Telerik.Windows.Documents.Fixed.FormatProviders.Pdf;
using Telerik.Windows.Documents.Fixed.Model;

namespace TelerikWpfPDFViewerBinding
{
    public class MainWindowViewModel: ViewModelBase
    {
        private RadFixedDocument _PDFDocument;
        public RadFixedDocument PDFDocument {
            get { return _PDFDocument; }
            set {
                _PDFDocument = value;
                OnPropertyChanged("PDFDocument");
            }
        }
        public MainWindowViewModel()
        {
            string pdfFilePath = @"C:\Temp\PDFs\20170707 learnwpf.pdf";
            LoadPDFDocument(pdfFilePath);
        }

        private void LoadPDFDocument(string pdfFilePath)
        {
            MemoryStream stream = new MemoryStream();

            using (Stream input = File.OpenRead(pdfFilePath))
            {
                input.CopyTo(stream);
            }

            FormatProviderSettings settings = new FormatProviderSettings(ReadingMode.OnDemand);
            PdfFormatProvider provider = new PdfFormatProvider(stream, settings);
            PDFDocument = provider.Import();
        }

    }
}
----------------------------------------------------------------------------------------------

Where am I wrong?

thanks.

Georgi
Telerik team
 answered on 16 Oct 2019
7 answers
241 views

Hi,

SizeAll cursor(Four headed Sizing Cursor) only appears when we hover the mouse pointer on the sides of RadDiagram shapes .But expectation is , SizeAll Cursor has to enable before the mouse pointer touches the sides of shapes (approximately in 0.5 gap). we would like to show the cursor behavior as like powerPoint.

In powerpoint , we could see SizeAll cursor appears in some distance when we move the mouse pointer closer to the shapes. I have attached screenshot for reference .

We have also tried the solution which is given in previous post, yet couldn’t find a solution to fix this issue. Can you kindly check and let us know a appropriate solution.
Note: Need to implement a cursor behavior out of the RadDiagram Shapes (Distance of 0.5 gap).

Regards,

Jeevitha S.

 

 

Martin Ivanov
Telerik team
 answered on 16 Oct 2019
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
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
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
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?