Telerik Forums
UI for WPF Forum
1 answer
75 views
Hi, I can“t set visibility appointments delete button to collapsed. How can i get it? thanks for your support.
Rosi
Telerik team
 answered on 22 Dec 2011
2 answers
136 views
In our Radmap we have an InformationLayer and a SpatialDataReader.
We display regions as polygons.
How can we use a TextBlock or a label to show the RegionName in the polygon.
We tried making a DataTemplate but it would not work...

<telerik:InformationLayer x:Name="MyLayer">
                    
   <telerik:InformationLayer.Reader>
        <telerik:SqlGeospatialDataReader x:Name="MyReader"  Source="{Binding}" 
                                         GeospatialPropertyName="RegionGeometry" ToolTipFormat="RegionName">
        </telerik:SqlGeospatialDataReader>
   </telerik:InformationLayer.Reader>
					
   <telerik:InformationLayer.ShapeFill>
					    <telerik:MapShapeFill Fill="#50CCFF66" Stroke="Orange" StrokeThickness="3" />
    </telerik:InformationLayer.ShapeFill>
				
</telerik:InformationLayer>
Rieni De Rijke
Top achievements
Rank 1
 answered on 22 Dec 2011
0 answers
78 views
Actually i ran into a problem like User should be able to type Dates in MMddyy format(100105).once the control is lost its focus i have to show it like 10/01/2005.but the problem i face here is the DatePicker shows the previous value if i try to key-in 100105(MMddyy). can u pls privide me a suggestion how i could complete this.
joseph
Top achievements
Rank 1
 asked on 22 Dec 2011
2 answers
171 views
Hi,

I have a floating pane "LeftPane" that needs to act like photoshop tool palette.The pane is floating and its location is set as expected, but its size can not go under 84px.I tried all the possible ways of resizing the pane,the pane group,and the tool window to 26px but none of this worked and the floating pane width is always ~84px while resizing would work if i am setting to a bigger size (e.g 150px).

<telerik:RadDocking Grid.Row="1" HasDocumentHost="False" x:Name="radDocking" AllowUnsafeMode="True" VerticalAlignment="Stretch" VerticalContentAlignment="Stretch"  ClipToBounds="True" Margin="0,0,0,0" PaneStateChange="radDocking_PaneStateChange">
 
 
           <telerik:RadSplitContainer  InitialPosition="DockedTop" Orientation="Horizontal"  VerticalAlignment="Stretch" VerticalContentAlignment="Stretch" telerik:RadDocking.FloatingSize="26,300" telerik:RadDocking.FloatingLocation="7,200"
   >
               <telerik:RadPaneGroup Name="LeftPaneGroup"  telerik:ProportionalStackPanel.RelativeSize="20, 500">
                   <telerik:RadPane PaneHeaderVisibility="Collapsed" Name="LeftPane" prism:RegionManager.RegionName="LeftRegion">
 
                   </telerik:RadPane>
 
               </telerik:RadPaneGroup>
               <telerik:RadPaneGroup telerik:ProportionalStackPanel.RelativeSize="80, 500" >
                   <telerik:RadPane Name="ContentPane"  VerticalAlignment="Stretch" VerticalContentAlignment="Stretch">
 
 
                       <ContentControl prism:RegionManager.RegionName="ContentRegion"/>
 
                   </telerik:RadPane>
 
               </telerik:RadPaneGroup>
           </telerik:RadSplitContainer>
       </telerik:RadDocking>

private void radDocking_PaneStateChange(object sender, Telerik.Windows.RadRoutedEventArgs e)
       {
           if (e.OriginalSource == LeftPane)
           {
               if (LeftPane.IsFloating)
               {
                   LeftPane.CanUserClose = false;
                   LeftPane.MaxWidth = 26;
                   LeftPane.Width = 26;
                   LeftPane.PaneHeaderVisibility = System.Windows.Visibility.Collapsed;
                   ToolWindow window = LeftPane.ParentOfType<ToolWindow>();
                   if (window == null)
                   {
                       window = (((LeftPane.Parent as RadPaneGroup).Parent as RadSplitContainer).Parent) as ToolWindow;
                   }
                   window.Width = 26;
                   window.MaxWidth = 26;
                   LeftPaneGroup.Width = 26;
                   LeftPaneGroup.MaxWidth = 26;
               }
           }
       }

Thanks in advance

Madani
DMC Helpdesk
Top achievements
Rank 1
 answered on 22 Dec 2011
3 answers
107 views
Hi,

We are about to embark on restyling an application and we are using WPF controls. We have decided to use the metro theme as a base theme but have quite a few style changes to make to the controls within this. Mainly colour changes. What is the advised way forward for this? Do we duplicate the metro theme and then edit that or do we tackle it on a control by control basis with Expression Blend? I am new to WPF so could do with some best practice advice.

Deb
Vanya Pavlova
Telerik team
 answered on 22 Dec 2011
3 answers
98 views
I want to add Strings beneath my chart, i dont understand why this doesnt work.

my       sm.ItemMappings.Add(new ItemMapping("Name", DataPointMember.XValue));
Should Show GAS for no.1 and Electricity for no.2
But i cant get it working? im sending u a picture in the picture u can see that the first number is gas and the value for this week and last week and same for number two. I want to change the names to GAS and Electricity
 


 public void GenerateChart()
        {
            SeriesMapping sm = new SeriesMapping();
            sm.LegendLabel = "Comparrison of the Past 7 days, with the folowoing 7 days (€)";
    smartHomeChart.DefaultView.ChartTitle.Content = "Comparison Chart";
            smartHomeChart.DefaultView.ChartLegend.UseAutoGeneratedItems = false;


            ChartLegendItem item1 = new ChartLegendItem();
            item1.Label = "Previous week";
            item1.MarkerFill = new SolidColorBrush(Colors.LightSkyBlue);
            smartHomeChart.DefaultView.ChartLegend.Items.Add(item1);


       
            ChartLegendItem item2 = new ChartLegendItem();
            item2.Label = "This week";
            item2.MarkerFill = new SolidColorBrush(Colors.PaleVioletRed);
            smartHomeChart.DefaultView.ChartLegend.Items.Add(item2);


            smartHomeChart.DefaultView.ChartArea.AxisX.IsDateTime = true;
            smartHomeChart.DefaultView.ChartArea.AxisX.AutoRange = false;
            smartHomeChart.DefaultView.ChartArea.AxisX.MinValue = 40839.00;
            smartHomeChart.DefaultView.ChartArea.AxisX.MaxValue = 40845.00;


            smartHomeChart.DefaultView.ChartArea.AxisX.LabelRotationAngle = 45;
            smartHomeChart.DefaultView.ChartArea.AxisX.DefaultLabelFormat = "dd-MMM";
            sm.ItemMappings.Add(new ItemMapping("Name", DataPointMember.XValue));
            sm.ItemMappings.Add(new ItemMapping("DezeWeek", DataPointMember.YValue));
            sm.ItemMappings.Add(new ItemMapping("VorigeWeek", DataPointMember.YValue));
            smartHomeChart.SeriesMappings.Add(sm);

            smartHomeChart.DefaultView.ChartLegendPosition = Dock.Bottom;
        }
Giuseppe
Telerik team
 answered on 22 Dec 2011
2 answers
120 views
Hi,

I can not understand what is logical difference between Properties ItemsSource and SeriesMappings on a RadChart control.

I understand what ItemsSource is made for, but do not understand what SeriesMappings is made for?

Please help me to resolve this issue.

Regards
Sirum
Sirum
Top achievements
Rank 1
 answered on 22 Dec 2011
1 answer
84 views
I'm would like to use the Data Filter in unbound mode in my mvvm app. User uses the DataFilter to build the criteria, then clicks a button to perform the search. Cancel and clear buttons will also be provided to cancel a search in progress and to clear the datafilter of all filter descriptors.

Can I build my ItemPropertyDefinitions in the viewmodel and bind this collection to the control on the view? If so, what is the proper collection/property I need to use to get this to work.

Also how do I get the collection of filter descriptors back to the viewmodel so that it can create a query. I'm guessing my view needs some code behind to make this work properly.
Rossen Hristov
Telerik team
 answered on 22 Dec 2011
1 answer
150 views
Hi,

I have an issue regarding the display of items if ItemsPerPage is set to 2 and the carousel ItemSource have 2 items only. Yes it displayed the 2 items properly, however when I try to click the 2nd item, the first item is moved to the background (i.e. not displayed). And  when I tried to click again the 2nd item, my expected behavior is that the 1st item would show up but it doesn't.

Note: Vertical and Horizontal scroll bars are set to hidden because we don't want to use those.
Maya
Telerik team
 answered on 22 Dec 2011
1 answer
129 views
hello,

i do binding to tileview Position. in system loading i set positions to the objects and i want the items will be shown order by those positions.
if i'm using with itemsSource, it works fine.
but if i'm using with prism region, the items do not shown as well and some items hidden under other items.

is there any solution to this?
Tina Stancheva
Telerik team
 answered on 22 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?