Hello,
I was wondering, is it possible to add a new document to the document host but don't immediately make that new document active/visible? To clarify, the behavior I'm looking for is like in Chrome, when you middle-click a link, it opens the link in a new tab, but doesn't switch to it, it just opens it in the background.
What I'm trying to do is allow users to quickly open multiple tabs. This is tough to do when you have to keep switching back to the original tab that triggers the new tabs.
Thanks,
Joel
Normally the pivot element has a parent and child (on expanding) and the parent is usually some kind of aggregation of all its children. I have a requirement where-in the parent should not be an aggregation and its independent of children. Say parent has some 5000 value, upon expanding the value need not be a sum, it can be more than 5000.
Is this possible with Pivots or do I have to use any other controls?
My Challenge:
I am trying to capture the selected row in a RadGridView which I would like to store in the database when the user exits the screen. When the user re-enters the screen I would like to programmatically select the row previously stored.
I set up a proof of concept using 2 Test buttons and a GridView:
Test 1 Button:
- Get the selected row
- Cast the selected row object to a string (which would be stored in the database)
- Cast the string back to an object (simulate return from the database)
- Add object to a list of objects
- Clear selected items in the grid
Test 2 Button:
- Execute the Select method on the GridView with the list of selected objects as an argument
- Check the GridView SelectedItems count
Problem:
The select method executes but nothing happens. What am I missing?
Sample Code:
private object rowObject = new object();
private List<object> rowList = new List<object>();
private void test1_Click(object sender, System.Windows.RoutedEventArgs e)
{
if (ProjectListingGridView.SelectedItems.Count > 0)
{
var item = ProjectListingGridView.SelectedItem.ToString();
if (item != null)
{
var rowObject = (object)item;
rowList.Clear();
rowList.Add(rowObject);
}
this.ProjectListingGridView.SelectedItems.Clear();
}
}
private void test2_Click(object sender, System.Windows.RoutedEventArgs e)
{
var selectList = rowList;
try
{
ProjectListingGridView.Select(selectList);
}
catch (Exception)
{
throw;
}
var cnt = ProjectListingGridView.SelectedItems.Count;
}
Hello,
I'm missing a way to display a label for a GridLineAnnotation in a polar chart. What is the intended way to achieve this?
I would have created my own annotation type, but the necessary methods are all internal, so overriding is not possible.
Is there a reason why these are not declared as protected internal? (This would be helpful anyway, as I also also need
other annotation types which are not possible at the moment...)
Alex
I have RadChart that populated with real time data.
private Random random;
private DataSeries series;
This is my RadChart configuration:
rcStatistics.Background = Brushes.Transparent;
rcStatistics.BorderBrush = Brushes.Transparent;
rcStatistics.DefaultView.ChartLegend.Visibility = System.Windows.Visibility.Collapsed;
rcStatistics.DefaultView.ChartArea.AxisX.Visibility = System.Windows.Visibility.Hidden;
rcStatistics.DefaultView.ChartArea.AxisY.Visibility = System.Windows.Visibility.Hidden;
My chart is populated with real time data via timer, this is my timer tick event:
int
val = random.Next(0, 100);
series.Add(
new
DataPoint(val));
rcStatistics.DefaultView.ChartArea.DataSeries.Add(series);
Please see my attach screenshot:
1. How can i remove value label ?
2. How can i remove the upper and the lower 2 stripes that i have on my chart ?
3. As you can see my chart series line is fill only half of my chart and this is how it is all the time and in additional after adding few points into my chart my application is stuck and become more slow, why this is happening and how can i fix it ?
Hello,
I am new to WPF. I am trying to understand the differences between UI for WPF and UI for Silverlight.
How silverlight works with WPF ?