Telerik Forums
UI for WPF Forum
2 answers
147 views

Hi, 

I'm using the Swimlane Demo, and I have a problem in Example.xaml.cs line 96 -  SamplesFactory.LoadSample(this.diagram, "SwimlaneDiagram"); 

I can't find the "SamplesFactory", it doesn't exist any other place. Maybe it's in a different reference? Where can I find it?

 

Best Regards

Prime Minister Office
Top achievements
Rank 1
 answered on 18 Jan 2016
4 answers
226 views

Hi,

I'm trying to do something that very similar to the TableShape demo example.

In the example there is a class named TableAdditionalContent, that inherited from a class named AdditionalContent ( public class TableAdditionalContent : AdditionalContent )

I use all the references in the example (except the 2 that belong only the example), but my VS can't find completion to the AdditionalContent  class (it's just can't find it in any reference i guess...).

 I would like to get some help to know is there maybe a missing reference that the AdditionalContent  class need or any help..

This is the example code from the demo:

using System;
using System.Linq;
using System.Windows;
using System.Windows.Input;
using Telerik.Windows.Controls;
using Telerik.Windows.Controls.Diagrams.Extensions.ViewModels;
using Telerik.Windows.Diagrams.Core;
using Telerik.Windows.Examples.Diagrams.Swimlane;
using Telerik.Windows.Examples.Diagrams.TableShape.Models;

namespace Telerik.Windows.Examples.Diagrams.TableShape
{
    public class TableAdditionalContent : AdditionalContent

}

 

Thank U!

Prime Minister Office
Top achievements
Rank 1
 answered on 18 Jan 2016
1 answer
128 views

Good Evening,

 

I have a WPF Window with 3 Row. In the first there's a ribbon, in the second a RedTileList and in the third is a series of label (like a status bar).

 

In the RadTileList I've sono tiles and I want to know if it's possibile to do this 2 things:

1) When I click on a Tile, a new WPF Windows in initialized and the window must fit only the second row (the row where it's the RadTileList)

2) In this new Window if i click the close button the window will close, but if I click the Minimize button the window will be resized and it can be displayed such as the controls in RadPane.

 

In attachments sono images to better explain the request.

 

Thanks

Dilyan Traykov
Telerik team
 answered on 18 Jan 2016
12 answers
271 views
Hi
I am using Telerik version Q3 2013. I want to use my custom control instead of RadDateTimePicker control according to this post in row filter mode in Gridview. My Gridview columns are dynamic. Please provide with the source code so that I can apply this change as I want.
Dilyan Traykov
Telerik team
 answered on 18 Jan 2016
1 answer
129 views

Hello.

I Need to draw ranges on YAxis on my Cartesian Chart.
At this moment, i'm using CartesianPlotBandAnnotation but i have two problems with this:
1. Points are under the Annotation.
2. When using zoom, Annotation looks creepy (I'm using Gradient Brush).

How can i archive this?

 

In attach, screens with problem.

Ivan
Telerik team
 answered on 18 Jan 2016
2 answers
125 views

select one connection the line color is black,  but select more than one connection  the line color is  outside  blue and inside black

is there any mothed to set them as a same style

rui
Top achievements
Rank 1
 answered on 18 Jan 2016
0 answers
182 views

 I placed two RadSplitContainer inside RadDocking.

Is it possible to stretch frst RadSplitContainer and fix second RadSplitContainer width to auto.

You can check the below attachment for my requirement.

Code:

<telerik:RadDocking BorderThickness="0" Grid.Row="1" HasDocumentHost="False">
                        <telerik:RadSplitContainer x:Name="ContantContainer" HorizontalAlignment="Stretch">
                            <telerik:RadPaneGroup IsContentPreserved="True">
                                <telerik:RadPane x:Name="contentPane" CanUserClose="False" CanUserPin="False" CanFloat="False" PaneHeaderVisibility="Visible" Header="Pane1">
                                    <ContentPresenter Content="{TemplateBinding Content}" />
                                </telerik:RadPane>
                            </telerik:RadPaneGroup>
                        </telerik:RadSplitContainer>
                        <telerik:RadSplitContainer x:Name="editContainer" Width="Auto" HorizontalAlignment="Right">
                            <telerik:RadPaneGroup IsContentPreserved="True">
                                <telerik:RadPane x:Name="editPane" CanUserClose="False" CanUserPin="False" CanFloat="False" PaneHeaderVisibility="Visible" Header="Pane2">
                                    <ContentPresenter Content="{TemplateBinding Abstract}" />
                                </telerik:RadPane>
                            </telerik:RadPaneGroup>
                        </telerik:RadSplitContainer>
Palani
Top achievements
Rank 1
Iron
 asked on 16 Jan 2016
4 answers
1.2K+ views
How do I create a Switch Button control for displaying an ON/OFF button that can be toggled (like the Settings->Airplane Mode on the iphone).

Thanks,

Ed
Sahana
Top achievements
Rank 1
 answered on 15 Jan 2016
3 answers
172 views
I recently upgraded the telerik controls from 2011.2.11.831 to 2015.1.331.20 and I am having an issue with the group by feature of the radgridview. Is this a known issue, and if is then is there a way to fix this?

grid1.png: The screen is stretched, the vertical scroll bar is clearly visible on the right.

grid2.png: As I reduce the width of the screen, the vertical scrollbar comes in with it as expected.

grid4.png: At this point the horizontal scroll bar is visible but the vertical one is not. This is with the horizontal scrollbar all the way to the right. Some content is also cut off.


grid4.png: This is how it looks before the telerik controls were updated to 2015.1.331.20.
Martin
Top achievements
Rank 1
 answered on 15 Jan 2016
0 answers
131 views

I'm doing a project, i have one pivot and this pivot have two pivotitem. The first one is called Lista and the second one is called Carrinho. In the first one i have a listview to store products and i have a binding to my productview model. When i select a button one the product he shows flyout and what i want is when i click the button that is on that flyout all the data that i have on the product will be send to the second pivotitem and i don't know how to do that mainly because the first pivotitem have the binding to productviewmodel and the second need to have the binding to other view model because the second pivotitem will be the order for the product and i think that maybe i just need to send the id of product because they are related in the database between this two tables (product and order).

Here is the code that i have in xaml to better explain.

        <Pivot Grid.Column="1">

            <PivotItem Header="Lista">
                <ListView x:Name="List1" ItemsSource="{x:Bind ProdutoViewModel.Produtos}" Height="550" SelectionChanged="List1_SelectionChanged">
                    <ListView.ItemTemplate>
                        <DataTemplate x:DataType="list:Produto">
                            <ListView FlyoutBase.AttachedFlyout="{StaticResource FlyoutBase1}" RightTapped="StackPanel_RightTapped">
                                <Button x:Name="CarrButton">
                                    <Image Source="/Assets/cart.png" Height="20"/>
                                    <Button.Flyout>
                                        <Flyout>
                                            <StackPanel>
                                                <TextBlock Style="{StaticResource BaseTextBlockStyle}">
                                                    Adicionar este produto?
                                                </TextBlock>
                                                <Button Click="CarrConfirmation_Click">
                                                    Carrinho
                                                </Button>
                                            </StackPanel>
                                        </Flyout>
                                    </Button.Flyout>
                                </Button>
                                <StackPanel>
                                    <TextBlock Text="{x:Bind Nome}" Margin="100,10,10,10"/>
                                    <TextBlock Text="{x:Bind Preco}" Margin="100,10,10,10"/>
                                    <TextBlock Text="{x:Bind Disponivel}" Margin="100,10,10,10"/>
                                    <TextBlock Text="{x:Bind Fornecedor}" Margin="100,10,10,10"/>
                                    <TextBlock Text="{x:Bind Categoria}" Margin="100,10,10,10"/>
                                </StackPanel>
                            </ListView>
                        </DataTemplate>
                    </ListView.ItemTemplate>
                </ListView>

            </PivotItem>
            <PivotItem Header="Carrinho">
                <ListView x:Name="Cart" ItemsSource="{Binding EncomendaViewModel.Encomendas}" Height="550">
                    <ListView.ItemTemplate>
                        <DataTemplate x:DataType="list:Produto">

                            <StackPanel>
                                <TextBlock Text="dasfas"></TextBlock>
                               

                            </StackPanel>

                        </DataTemplate>
                    </ListView.ItemTemplate>
                </ListView>
            </PivotItem>

        </Pivot>

 

On the code behind i don't know what to do and only have this

private void CarrConfirmation_Click(object sender, RoutedEventArgs e)
        {
            
            Button button = sender as Button;
            Produto produto = button.DataContext as Produto;

       }

 

Thanks

 

Vitor
Top achievements
Rank 1
 asked on 15 Jan 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?