Telerik Forums
UI for WPF Forum
2 answers
186 views
In a Wpf UserControl , Use a RadDatePicker

As a 
 <telerik:RadDatePicker Name="raddpFrom"  Margin="120,0,186,13"  VerticalAlignment="Bottom" />

After i Show it in a <telerik:RadWindow>

But Not show RadDatePicker other Controlls are Show Correctly

Xaml File

<UserControl x:Class="ZeagReports.Reports.Item.ItemSales"
    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"                   
     Height="110" Width="400" xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid">
    
        <Grid Height="110" Width="400">
        <Border BorderThickness="3" CornerRadius="10" >
            <Border.BorderBrush>
                <LinearGradientBrush EndPoint=".5,1" StartPoint="0.5,0">
                    <GradientStop Color="#0f7496"  Offset=".1"/>
                    <GradientStop Color="#0f7496" Offset=".5"/>
                    <GradientStop Color="#0f7496"  Offset="1"/>
                </LinearGradientBrush>
            </Border.BorderBrush>            
        </Border>
        <RadioButton HorizontalAlignment="Left" Margin="100,38,0,0" Name="rbtnFixedItem" Width="80" Height="16" VerticalAlignment="Top">Fixed Items</RadioButton>
            <RadioButton HorizontalAlignment="Left" Margin="16,38,0,56" Name="rbtnValidation" Width="80">Validations</RadioButton>

            <Label Height="28" HorizontalAlignment="Left" Margin="12,16,0,0" Name="label1" VerticalAlignment="Top" Width="120">Item Category</Label>
            <Label Height="28" Margin="0,16,116,0" Name="label2" VerticalAlignment="Top" HorizontalAlignment="Right" Width="75">From</Label>
            <Label Height="28" HorizontalAlignment="Right" Margin="0,16,57,0" Name="label3" VerticalAlignment="Top" Width="53">To</Label>
          
            <telerik:RadDatePicker Name="raddpFrom" Height="22" Margin="16,0,0,13" Width="94" HorizontalAlignment="Left" VerticalAlignment="Bottom" />
            <telerik:RadDatePicker Name="raddpTo"  Height="22" Margin="120,0,186,13"  Width="94" VerticalAlignment="Bottom" />
           
            
            
            <telerik:RadButton Margin="0,0,93,12" Name="radBtnPrint" Click="radBtnPrint_Click" Height="23" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="75">Print</telerik:RadButton>
            <telerik:RadButton Margin="0,0,12,12" Name="radBtnReset" HorizontalAlignment="Right" Width="75" Click="radBtnReset_Click" Height="23" VerticalAlignment="Bottom">Reset</telerik:RadButton>
            
            
    </Grid>
   
</UserControl>

George
Telerik team
 answered on 27 Jul 2010
5 answers
133 views
Hi,

I have two problems about docking control

1. I don't want to let dragging panes outside the window of app, is there any property I can set?

2. When I add new panes programmically, if there are to many panes on the docking area, the latest pane will be added below the old panes, cause docking do not auto resize the panes, how could I solve this problem?

Thanks for your answer!
George
Telerik team
 answered on 27 Jul 2010
3 answers
189 views

Hello.

I've created simple style for my RadPane.
I'm setting there also DataTemplate of TitleTemplate.
I've got problem to acces programatically the element in this DataTemplate from the class on which this style is applied.
For example I'd like to acces somehow the "PART_ParentControls" element in the following simple style.

Can you please, help ?

I would really appreciate that.

Thanks a lot.

Stefan.

<Style x:Key="TelerikRadPaneStyle" TargetType="{x:Type telDockingControls:RadPane}">  
        <Setter Property="CanUserPin" Value="False" /> 
        <Setter Property="CanFloat" Value="True" /> 
        <Setter Property="CanUserClose" Value="False" /> 
        <Setter Property="ContextMenuTemplate">  
            <Setter.Value> 
                <DataTemplate> 
                    <telNavigationControls:RadContextMenu Visibility="Collapsed" /> 
                </DataTemplate> 
            </Setter.Value> 
        </Setter> 
        <Setter Property="TitleTemplate">  
            <Setter.Value> 
                <DataTemplate > 
                    <Grid > 
                        <Grid.ColumnDefinitions> 
                            <ColumnDefinition Width="*" /> 
                        </Grid.ColumnDefinitions> 
 
                        <Grid Grid.Column="0" x:Name="PART_ParentControls" /> 
 
                    </Grid> 
              </DataTemplate> 
         </Setter.Value> 
    </Setter> 
</Style> 
George
Telerik team
 answered on 27 Jul 2010
2 answers
656 views
Hi..
I'm trying to set  the SELECTEDITEM and/or the SELECTED VALUE of combobox in code

this.cmb.SelectedItem = Customers.Name;

But it doesn't work  any ideas?  It's always null

<radcombox  x:name="cmb"  SelectedValuepath="Name"
SelectedItem = "{Binding Name, Mode=TwoWay}"

thanks

Ravi
Top achievements
Rank 1
 answered on 27 Jul 2010
1 answer
81 views

Hi,

Where is it possible to find the official version of the last trial version into the website for the WPF RadControls ?

Thanks in advance,

Rossen Hristov
Telerik team
 answered on 27 Jul 2010
7 answers
231 views
Hello,

I'm having trouble with the RadDragAndDropManager when the UserControl that is using it is being hosted inside of a Windows Form. I made a quick example.

<UserControl x:Class="DragAndDropTest.simple" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:dragDrop="clr-namespace:Telerik.Windows.Controls.DragDrop;assembly=Telerik.Windows.Controls"> 
    <UserControl.Resources> 
        <Style TargetType="StackPanel"> 
            <Setter Property="dragDrop:RadDragAndDropManager.AllowDrop" Value="True" /> 
        </Style> 
        <Style TargetType="Label"> 
            <Setter Property="dragDrop:RadDragAndDropManager.AllowDrag" Value="True" /> 
        </Style> 
    </UserControl.Resources> 
    <Grid> 
        <Grid.ColumnDefinitions> 
            <ColumnDefinition /> 
            <ColumnDefinition /> 
        </Grid.ColumnDefinitions> 
        <StackPanel 
            Name="Stack1" 
            Grid.Column="0"> 
            <Label Name="lbl1" Background="Green" /> 
        </StackPanel> 
        <StackPanel  
            Name="Stack2" 
            Grid.Column="1"> 
            <Label Name="lbl2" Background="Red" /> 
        </StackPanel> 
    </Grid> 
</UserControl> 
 


using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Text; 
using System.Windows; 
using System.Windows.Controls; 
using System.Windows.Data; 
using System.Windows.Documents; 
using System.Windows.Input; 
using System.Windows.Media; 
using System.Windows.Media.Imaging; 
using System.Windows.Navigation; 
using System.Windows.Shapes; 
using Telerik.Windows.Controls.DragDrop; 
 
namespace DragAndDropTest 
{ 
    /// <summary> 
    /// Interaction logic for simple.xaml 
    /// </summary> 
    public partial class simple : UserControl 
    { 
        public simple() 
        { 
            InitializeComponent(); 
 
            RadDragAndDropManager.AddDragInfoHandler(lbl1, OnDragInfo); 
            RadDragAndDropManager.AddDragQueryHandler(lbl1, OnDragQuery); 
 
            RadDragAndDropManager.AddDragInfoHandler(lbl2, OnDragInfo); 
            RadDragAndDropManager.AddDragQueryHandler(lbl2, OnDragQuery); 
 
            RadDragAndDropManager.AddDropInfoHandler(Stack1, OnDropInfo); 
            RadDragAndDropManager.AddDropQueryHandler(Stack1, OnDropQuery); 
 
            RadDragAndDropManager.AddDropInfoHandler(Stack2, OnDropInfo); 
            RadDragAndDropManager.AddDropQueryHandler(Stack2, OnDropQuery); 
        } 
 
        private void OnDropQuery(object sender, DragDropQueryEventArgs e) 
        { 
            e.QueryResult = true; 
            e.Handled = true; 
        } 
 
        private void OnDropInfo(object sender, DragDropEventArgs e) 
        { 
            if (e.Options.Status == DragStatus.DropComplete) 
            { 
                ((e.Options.Source as Label).Parent as StackPanel).Children.Remove(e.Options.Source); 
                (sender as StackPanel).Children.Add(e.Options.Source); 
            } 
        } 
 
        private void OnDragInfo(object sender, DragDropEventArgs e) 
        { 
            Label item = sender as Label; 
            if (e.Options.Status == DragStatus.DragInProgress) 
            { 
                    ContentControl cue = new ContentControl(); 
                    cue.Content = new Label() { Background = item.Background }; 
 
                    e.Options.DragCue = cue; 
                    e.Options.ArrowCue = RadDragAndDropManager.GenerateArrowCue(); 
            } 
        } 
 
        private void OnDragQuery(object sender, DragDropQueryEventArgs e) 
        { 
            e.Options.Payload = sender; 
            e.QueryResult = true; 
            e.Handled = true; 
        } 
    } 
} 
 


using System; 
using System.Collections.Generic; 
using System.ComponentModel; 
using System.Data; 
using System.Drawing; 
using System.Linq; 
using System.Text; 
using System.Windows.Forms; 
 
namespace DragAndDropTest  
{ 
    public partial class Form1 : Form 
    { 
        public Form1() 
        { 
            InitializeComponent(); 
            elementHost1.Child = new simple(); 
        } 
    } 
} 

seems to work fine inside of a wpf Window but not a Form.
Any ideas on what I'm doing wrong?

Thanks much,
~Boots
Miroslav
Telerik team
 answered on 27 Jul 2010
1 answer
278 views
Im Using a showDialog(); for show my Window and i want to show it in a taskbar

can help ?
Konstantina
Telerik team
 answered on 27 Jul 2010
1 answer
307 views
I Run a Rad window , I want to show it in a Task Bar Can Do it
 
Konstantina
Telerik team
 answered on 27 Jul 2010
3 answers
220 views

Hello,

in the ChartControl-Help I found this hint to increase charting performace:

Simplify the chart item ControlTemplate - e.g. the Line item template contains by default an item label and a point mark visual. The point mark visual can be removed (as they are relatively insignificant when rendering thousands of records). With lots of points the sheer number of UI elements simply bogs the system down as discussed above). So if you cannot reduce the data points, you will need to simplify the chart item ControlTemplate.

Can anybody give me an example how to do this?

Lauren
Top achievements
Rank 1
 answered on 26 Jul 2010
1 answer
96 views
Hi,
Iam unable to find the way to put Shortcut keys for rad application menu items,like we are implementing for radmenu.
tell me the solution for this asap.
Thanks in advance.
Valentin.Stoychev
Telerik team
 answered on 26 Jul 2010
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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
InlineAIAssistant
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?