Click here to Skip to main content
15,898,819 members

Comments by torin86 (Top 5 by date)

torin86 22-Jan-14 12:57pm View    
Sorry for my explanation.
At TabItem_Loaded event I fill my Panel and when I run the application and go into this TabItem, the content of the mentioned panel is shown (loaded) first and thent (like a second) the rest of the components are shown. I want to delete this effect.
I hope I have expressed myself better.
Thanks.
torin86 25-Oct-13 2:28am View    
Sorry. I forgot the error!!
When I click the button, the tabItem is removed but TabControl doesn´t resize again. how can I force to apply the converter after remove TabItem?

My converter is like this:

public class TabSizeConverterVertical : IMultiValueConverter
{
public object Convert(object[] values, Type targetType, object parameter,
System.Globalization.CultureInfo culture)
{
TabControl tabControl = values[0] as TabControl;
double height = tabControl.ActualHeight / tabControl.Items.Count;
//Subtract 1, otherwise we could overflow to two rows.
return (height <= 1) ? 0 : (height);
}

public object[] ConvertBack(object value, Type[] targetTypes, object parameter,
System.Globalization.CultureInfo culture)
{
throw new NotSupportedException();
}
}

Thanks.
torin86 20-Sep-13 2:22am View    
You think I have not read that before? Did you read fully what I need?
If you're not contributing anything, do not answer. I already know my limitations.

Thanks
torin86 10-Sep-13 6:02am View    
Thanks! It works perfectly!
Bye.
torin86 30-Aug-13 6:36am View    
First of all thanks for ask my question so quickly!

I´m trying to do what you are saying and now I´ve two questions:

1. The namespace wuith the converter must to be in Main or in Secondary Project? If I don´t put it into Secondary project I can´t use it, can I?
2. When I generate the Secondary project, I am having an error because as now is a ClassLibrary Project, it can´t find the ApplicationDefinition element.

What do you think I have to try now?

Thanks.