Advanced Forum Search Results
-
[quote user="tanmoy.r"]
Hi,
Whether any class (Specially library class) should be sealed is a long debate between developers and framework developers. So what you are saying is not wrong but from the other point even a slight performance benifit might come in handy when you have lots of TextBlocks in your application.
So ...
-
Can you be more specific when you speak about the binding and the converter class? Could you give an example?
-
Me for example wanted to do a TextBlock that automatically add ellipsis to text when the text exceeds the width of the textblock.
My solution was to create a new control from composition fo the textblock but in that way I didn't inherith all the properties and behaviours of the textblock, which was pretty bad.
So Microsoft is ...
-
I'm not sure if I understood what you want, but couldn't you just do the following:
in the constructor of the user control if the parent is a grid and you want to wire to the loaded event:
((Grid)Parent).Loaded += new RoutedEventHandler(OnLoaded);void OnLoaded(object sender, RoutedEventArgs e)
{//do something.....
}
-
It would be very good if I could extend this class to have my own TextBlock control, so why is it sealed?
-
In the following code why there's a little left margin between the listbox and the textblock even if I set it to 0?
And how can I set that margin to 0?
<UserControl x:Class="SilverlightApplication6.MainPage"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" ...
-
In the previous post my first question is wrong.
What I really meant was :
1. Why grid.ActualWidth > listBox.ActualWidth? (Shouldn't be the oposite?)
-
In the following code in MouseEnter event I have three questions:
1. Why grid.ActualWidth > listBox.Width? (Shouldn't be the oposite?)
2. Why txtHello.Width > grid.ActualWidth? (Shouldn't be the oposite?)
3. How can I make the grid.ActualWidth = listbox.ActualWidth - scrollBar.ActualWidth?
<UserControl ...
-
Why txtHello.Width has the value NAN on the event MouseEnter int the following code?
<UserControl x:Class="SilverlightApplication6.MainPage"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Width="200" ...
-
I can't see your code. Maybe you forgot to post it?