Telerik Forums
UI for WPF Forum
2 answers
250 views

Hi! I appreciate your time very high but this time I can't go without your help. Please don't consider me as lazy and slothful programmer but I've tryed to solve my problem for all day today and my efforts to solve it remain ineffectual. The matter is in the following: I've studied the Prism 6 application solution you give me as answer on my question at http://www.telerik.com/forums/can-i-use-telerik-styles-for-prism-window-%28wpf%29-and-prism-usercontrol-%28wpf%29-that-are-supplied-with-prism-template-pack-for-prism-6  and try to write similar application myself. But all that is achieved by me here is that the solution of this application is succsesfully built without errors and runs. But herewith the MainWindow of my application is not displayed on the computer screen! I attached the structure of my application solution  in Teleril_Prism_Unity.PNG file.I use MS VS 2015 Professional (russified).

Below is App.config:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
  </startup>
</configuration>

Below is Bootstrepper:

class FcBootstrapper : UnityBootstrapper
    {
        protected override DependencyObject CreateShell()
        {
            return Container.Resolve<MainWindow>();
        }

        protected override void InitializeShell()
        {
            ((RadWindow)this.Shell).Show();
        }
    }

Below is App.XAML:

<Application x:Class="FlowmeterConfigurator.App"
             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"
             xmlns:local="clr-namespace:FlowmeterConfigurator"
             xmlns:views="clr-namespace:FlowmeterConfigurator.Views">
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/System.Windows.xaml" />
                <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.xaml" />
                <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.Navigation.xaml" />
                <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.Docking.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>
</Application>

Below is App.XAML.CS:

public partial class App : Application
    {
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            var bootstrapper = new FcBootstrapper();
            bootstrapper.Run();
        }
    }

Below is MainWindow.XAML:

<telerik:RadWindow x:Class="FlowmeterConfigurator.Views.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"
        xmlns:prism="http://prismlibrary.com/"
        xmlns:views="clr-namespace:FlowmeterConfigurator.Views"
        prism:ViewModelLocator.AutoWireViewModel="True"
        Header="{Binding Title}" Height="300" Width="300">
    <Grid>

    </Grid>
</telerik:RadWindow>

Below is MainWindow.XAML.CS:

public partial class MainWindow : RadWindow
    {
        public MainWindow()
        {
            InitializeComponent();
        }
    }

And below is MainWindowViewModel.CS

public class MainWindowViewModel : BindableBase
    {
        private string _title = "Prism Unity Application with Telerik";

        public MainWindowViewModel()
        {

        }

        public string Title
        {
            get { return _title; }
            set { SetProperty(ref _title, value); }
        }
    }

I created this application as Telerik Empty Project and after added folders there. Then I added RadWindow in Views folder and named it MainWindow and then deleted MainWindow (which was WPF Window) created with the solution. And after it I aded Prism 6 for WPF library via NuGet. Please reply me (if this is possible of course) why MainWindow is not visualized when the application runs.  I would be very much obliged to you.

Eugene.

Eugene
Top achievements
Rank 1
 answered on 24 Mar 2016
1 answer
229 views

Hi, I have a question similar to this: http://www.telerik.com/forums/y-axis-values-on-radcartesianchart-with-zoom.

I'd like for the y-axis to auto-adjust its range based off of just the data points displayed, not the entire collection. And it should happen as the user scrolls/zooms. I understand how the solution you provided in the previous forum post works, but it wouldn't work for me because I have many different charts with a variable number of series, different data points being charted, etc.

So, my questions

1) Since the forum post I linked above, have you added the ability to auto-adjust an axis off the current viewport rather than the entire data set?

2) If not, can you think of a generic version of the sample in the previous forum post? One where I don't have to access a series' ItemsSource? I noticed that in the sample, there's this line of code in MainWindow.xaml.cs that gets the range using the series' ItemsSource (Context).

var visibleRange = Context.GetRange(firstElem, lastElem - firstElem).Select(pd => pd.YVal);
How can I replace that with something that can give me the max y-axis values of all chart series within a range? Can I get a collection of all the visible DataPoints? This would also have to work with stacked bar charts, where I'd like to get the total y-axis value of each set of stacked bars.

I attached a screenshot to visualize the issue. The bars are so small because somewhere else in the chart, there's a data point where the max value of both bars, stacked, is about 2.2 million. When a user scrolls to see the data points in the screenshot, the y axis max value should change to probably be about 500K.

Martin Ivanov
Telerik team
 answered on 23 Mar 2016
4 answers
152 views

Dear admin,

please helm me out from this problem, i was already test a sample app RadMap on Map -> SalesDashboard example, but i always have aproblem when compiling show messages :

"'Provide value on 'System.Windows.Markup.StaticResourceHolder' threw an exception.' Line number '7' and line position '42'."

on file Win8Resources.xaml , and i too got a messages error when opening example.xaml like this :

'{DependencyProperty.UnsetValue}' is not a valid value for the 'System.Windows.Controls.Border.BorderBrush' property on a Setter.
   at System.Windows.Setter.Seal()
   at System.Windows.SetterBaseCollection.Seal()
   at System.Windows.Style.Seal()

Please helm me, i attached a full project sample, please help me resolve this problem and resend a worked project soluution if run well.

this is link off full project , please check this out :

http://1drv.ms/1QORP1n

 

please fast response, i am urgent need this sample really,

thanks,

 

 

Dinko | Tech Support Engineer
Telerik team
 answered on 23 Mar 2016
1 answer
253 views

Hi,

in an RadTreeView i can disable the expanding animations with the following line

telerik:AnimationManager.IsAnimationEnabled="False"

 

This line has no effect if i add it to my TreeListView. I also tried:

 

AnimationManager.IsGlobalAnimationEnabled = false;

 

This also has no effect.

Whenever i reload my TreeListView-Elements after OnPropertyChanged is fired all this expanding is going on.

This is completely happening on the telerik's site because onPropertyChanged is fired when i've completely read all elements. So the tree is already complete when this expanding orgy starts.

This is especially bad when i do this on slow computers. It takes sometimes longer than a second until ONE thing is expanded!

This is my definition of the RadTreeListView:

<telerik:RadTreeListView Grid.Row="1"
                         x:Name="radTreeListView"
                         IsReadOnly="True"
                         ItemsSource="{Binding ConnectorList}"
                         CanUserFreezeColumns="False"
                         SelectionMode="Single"        
                         TreeLinesVisibility="Visible"
                         RowIndicatorVisibility="Collapsed"
                         KeyboardNavigation.DirectionalNavigation="Contained"
                         telerik:AnimationManager.IsAnimationEnabled="False"
                         IsExpandedBinding="{Binding IsExpanded, Mode=TwoWay}"
                         ItemContainerStyle="{StaticResource ItemContainerStyle}"
                         SelectedItem="{Binding SelectedConnectorItem, Mode=TwoWay}"
                         ColumnWidth="*"
                         telerik:DragDropManager.AllowDrag="False"
                         GridLinesVisibility="Vertical"
                         AutoGenerateColumns="False">

I would be very thankful for any idea.

Petya
Telerik team
 answered on 23 Mar 2016
3 answers
199 views

Hi All,

I am using "telerik:RadDocking" in my wpf application.  I want to create a layout as follows - X1 is section 1, X2 is section 2 and X3 is section 3. (---- and | are section dividers)

X1 | X3

---- | X3

X2 | X3

X1 - using "telerik:RadSplitContainer" for defining section 1 and it contains non-editable data.

X2 - using "telerik:RadDocking.DocumentHost" for defining section 2 and it using for multiple "RadPane".

X3 - using "telerik:RadSplitContainer" for defining section 1 and it contains non-editable data.  It is single section with same height of X1+X2

Issue:

Section X3 has fixed width. if I try to reduce the width for X1, X2 then I can increase the width of the X3 control.  but the problem here is after the realignment I am unable to resize the section X1 and X2 and also X3 will overlap to other two section.  

If I resize the window then control is not aligning,  based on the window size I need to set some width for each section and these each section should support resizing also.

Please help me to fix this issue.  Please let me know if you need more information.

I appreciate your support in advance.

Thanks

Selvakumar R

 

Nasko
Telerik team
 answered on 23 Mar 2016
4 answers
382 views
I am guessing this isn't possible, but I'll be quite impressed if it is!

I have a RadGridView.  It opens with the rows in a collapsed state so that the details are hidden and you only see a single 'summary' line.  When you expand the row, the row details template contains a separate RadGridView which displays all details.  There are no scrollbars in the second grid.  The users scroll the main grid down which of course hides the detail grid header row.

Two possibilities:
1) Somehow make this row a fixed row, but in the scope of the parent grid (I am guessing not gonna happen? Maybe?)
2) Add scrollbars to the second grid, and make the users use two scroll bars.

I don't like option #2 because users would have trouble with two scrollbars.  Also, I can't figure out how to tell what size I should limit the child grid to.
Maya
Telerik team
 answered on 23 Mar 2016
1 answer
93 views

Hello,
When we make Rad control IsReadOnly=True or disbaled the control, the value inside is not looking good. It masks the value.

How can we remove the mask or make more transparent to make the value visible more bright ?

 

I am using Expression Dark Theme

Please guide me

Masha
Telerik team
 answered on 23 Mar 2016
7 answers
364 views
just wondering if its possible to modify the path to straight line? is there a way to edit the path?
Shameel
Top achievements
Rank 1
 answered on 23 Mar 2016
4 answers
240 views

Hi Team,

I would like to customize the Rad Carousel View - Like Together Deck Of Cards. Could you please give me the exact solution for this. Currently i used RadCarousal to display contents.

For more, Please go through the attached file..

Shameel
Top achievements
Rank 1
 answered on 23 Mar 2016
11 answers
422 views
Hi,

I'm working on a WPF application which include RadCarousel component (Telerik V2010.3.1314.35). I have some questions about the component. In my RadCarousel, I have multiple images.

1. Actually, I'm trying to know if the click made by the user in the RadCarousel was on the top image or not. If the click was on the top image, I will bring him another RadCarousel full screen with the top image and maybe all associated images ortherwise I will keep the normal behavior.

2. Actually, all existing images in my RadCarousel are not aligned horizontally, all of them are aligned on a "3/4 of a circle line". The problem I have actually is when I bring up a full screen RadCarousel to my users, I'm trying to center the selected image and use the maximum height possible to display the selected image. Because I have the horizonal scroll panel of my RadCarousel visible, which is necessary, plus the fact that my image is centered on the "3/4 of the circle line", I lost spaces to display my image. How I can fix it???

Thank`s
Shameel
Top achievements
Rank 1
 answered on 23 Mar 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
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
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
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?