Telerik Forums
UI for WPF Forum
1 answer
97 views
I have:

StyleManager.ApplicationTheme = new GreenTheme(GreenPalette.ColorVariation.Light);

and get "GreenTheme is inaccessible due to its protection level".

It appears to be declared as public. 

This works:

StyleManager.ApplicationTheme = new Office_BlueTheme();

Any samples of applying the Green Theme?  Or ideas?

thanks,

Robert

Martin
Telerik team
 answered on 03 Oct 2016
3 answers
292 views

What's the easyest way to draw someting like a combined geometry in a map? http://www.blackwasp.co.uk/WPFCombinedGeometry.aspx

I have a series of ellipse with a trasparency, but, when 2 or more ellipse are overlapped the opacity are reduced and I can't see the map below.

I just want to combile all the geometry and have a unique item..

Martin Ivanov
Telerik team
 answered on 03 Oct 2016
8 answers
1.1K+ views
I'm trying to override or remove the ability to click directly on the content of a DesktopAlert. My problem is that when you set the alert's content to a plain string, it acts as a link-button and upon clicking the text, it will close the window. This is a problem since there are certain DesktopAlerts that I don't want to be closed at all. I can set it as Enabled = False but then the dropdown menu and other parts of the alert quit functioning. This is all created from code behind so it is a little harder for me to set any properties or templates for it in XAML.

Dim mainAlert = New RadDesktopAlert() With {
    .Header = "Messages",
    .Content = "You have " & unreadCount & " new messages",
    .Height = 75,
    .Width = 300,
    .IconTemplate = TryCast(Application.Current.FindResource("radIconTemplate"), DataTemplate),
    .IconColumnWidth = 30,
    .IconMargin = New Thickness(5, 10, 15, 0),
    .CanAutoClose = False,
    .ShowCloseButton = False,
    .Tag = "main",
    .ShowMenuButton = True,
    .MenuItemsSource = GetDesktopAlertMenuItems
}
manager.ShowAlert(mainAlert)
Nasko
Telerik team
 answered on 03 Oct 2016
1 answer
51 views

It seems thet all depedency property are set by telerik RadDocing during pin / unpin of RadPane. It couses unexcpected beheviuour in some our controls. How can I prevent thet Docing pannel change children component state during pining and unpinig?

Nasko
Telerik team
 answered on 03 Oct 2016
4 answers
251 views

 Hi,

     I have created a custom control with Textbox having  properties values as AcceptsReturn="True" TextWrapping="Wrap" so that it will acts as Multi line Textbox. I used this control as Editor for one of the Property which binds to PropertyGrid and Editor Style as DropDown.

I have problem here,whatever I write in the textbox once dropdown closed it should be visible in propertyValue but it is not showing the value.How to achieve this??

I am asking similar to TimePicker where once we select time it will be shown in PropertyValue.

Regards,

Nagasree.

 

Dharmavaram
Top achievements
Rank 1
 answered on 03 Oct 2016
11 answers
1.1K+ views

Hii..

I have Busyindicator on a form..  Why doesn't this work.. nothing shows up.. how do I force a refresh? Do have use a dispatcher?  thanks.

public void DoWork()
{
    this.busyindicator.isbusy = true

        // Dowork
   this.busyindicator.isbusy = false


}
Tim
Top achievements
Rank 1
 answered on 02 Oct 2016
7 answers
349 views

Hello,

I am looking into a way to display a vertical red line in the RadTimeBar displaying the 'current' time. 

Do you have any suggestions on how to approach this?

I did a quick search using Google to find an image which contains a impression of what I need: http://apps.micw.eu/apps/wetter/wetter.01.png

Best regards,

Douwe

Martin
Telerik team
 answered on 30 Sep 2016
5 answers
420 views

Hi, 

   I need to order the Categories in the PropertyGrid.Is there any way to achieve it? In the given picture I want to have the group order as

 1.  Personal

2.Personal Contact

3.Name

4.WorkContact

5.JobDescription

 

Regards,

Nagasree.

 

 

Stefan Nenchev
Telerik team
 answered on 30 Sep 2016
5 answers
198 views

The application is written for a windows 8 tablet desktop.  I have applied the windows 8 touch theme in the code behind of my main window.

StyleManager.ApplicationTheme= new Windows8TouchTheme();

 

Started with a GridViewToggleRowDetailsColumn to open the detail of a row. Unfortunaltely the arrow is too small for the tablet and therefore the touch registration for the arrow would be very finicky. 

Decided to create a custom gridview column that mimicked the behavior of the GridViewToggleRowDetailsColumn as authored in these forums many times. 

public class InoToggleColumn: GridViewBoundColumnBase
{
    public override object Header
    {
        get
        {
            return null;
        }
        set
        {
            base.Header = value;
        }
    }
 
    public InoToggleColumn()
    {
        EditTriggers = GridViewEditTriggers.None;
    }
 
    public override System.Windows.FrameworkElement CreateCellElement(GridViewCell cell, object dataItem)
    {
 
        var gvt = new RadToggleButton()
            { Margin = new System.Windows.Thickness(3) };
 
        gvt.SetBinding(RadToggleButton.IsCheckedProperty, DataMemberBinding);
 
        gvt.Checked += (sender, e) => _setImage((RadToggleButton)sender);
        gvt.Unchecked += (sender, e) => _setImage((RadToggleButton)sender);
 
        _setImage(gvt);
 
        var row = cell.ParentRow as GridViewRow;
        if (row != null)
        {
            row.SetBinding(GridViewRow.DetailsVisibilityProperty, new Binding("IsChecked")
            {
                Source = gvt, Converter = new BooleanToVisibilityConverter(), Mode = BindingMode.TwoWay
            });
        }
        return gvt;
    }
 
    private void _setImage(RadToggleButton radToggleButton)
    {
        Image sourceImage;
        if(radToggleButton==null) return;
        if (radToggleButton.IsChecked == null) return;
 
        if (radToggleButton.IsChecked.Value)
        {
            sourceImage = new Image()
            {
                Source =
                    new BitmapImage(new Uri(@"/InoAuto;component/Assets/Images/arrow-down.png",
                        UriKind.Relative)),Width = 40
            };
        }
        else
        {
            sourceImage = new Image()
            {
                Source =
                    new BitmapImage(new Uri(@"/InoAuto;component/Assets/Images/arrow-right.png",
                        UriKind.Relative)),Width = 40
            };
        }
        radToggleButton.Content = sourceImage;
    }
 
    public override bool CanSort()
    {
        return false;
    }
 
    public override bool CanFilter()
    {
        return false;
    }
 
    public override bool CanGroup()
    {
        return false;
    }
 
 
     
}

 

It works fine with a mouse but when I move it to my windows 8 surface tablet.

The Touchs do not register, the button does not toggle ,  and the detail is not displayed.

 

Any assistance would be appreciated

 

thanks

dco
 

Shaun
Top achievements
Rank 1
 answered on 30 Sep 2016
1 answer
137 views

I've been evaluating the RadMap control for use on one of our applications. I'd like to be able to zoom the map so that the area I am interested in entirely fills the width of the available space for the control e.g. if I shift-select an area such that the selection box left edge touches point "A" and the right edge touches point "B" I want the redrawn map to show "A" at the extreme left edge of the viewing area and "B" at the extreme right edge. It seems that the control selects the nearest discrete zoom level that will include "A" and "B" but this leaves "A" and "B" slightly in from the edge of the viewing area.

Is it possible to achieve what I want, and if so, is there an event that fires allowing me to when the map has redrawn? 

Petar Mladenov
Telerik team
 answered on 30 Sep 2016
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
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?