Advanced Forum Search Results
-
You should try out my reflection based XamlWriter (#1) to see if the performance is acceptable or not. I don't see it as an issue but you could validate it yourself.
The good thing about taking the reflection approach is that you get support for some types/attributes/properties automatically. If you take the SilverlightContrib approach you ...
-
I am attaching a behavior to a Datagrid and I noticed that the OnDetaching override of the behavior is not being called. Is this the case? Does this mean that there would be a memory leak since the event that is being attached on the OnAttached method is not getting released?
I am working around this by programmatically removing the behavior but ...
-
Let's say you have XamlWriter.dll added to your application which contains a class XamlWriter that can be instantiated. Then you could get the assembly full name like this -
Type t = typeof(XamlWriter);
t.Assembly.FullName or t.Module.Assembly.FullName
-
Are you looking for something like this?
Type controlType = control.GetType();
string s = controlType.Module.Assembly.FullName;
This will return the FullName of the assembly in which the type is defined
-
Xaml
<Grid x:Name="LayoutRoot">
<datagrid:DataGrid x:Name="dg" />
</Grid>
Code behind
public MainPage()
{
InitializeComponent();
dg.ItemsSource = "H e l l o".Split();
}
The datagrid displays a single column with 5 rows, one ...
-
That is probably right but I noticed a lot of samples out there using the CanWrite property assuming that it correctly identifies public setters. I just use the GetSetMethod but the issue did cause me some pain.
-
You are probably just doing something wrong. If you post your project here I am sure someone will be able to spot it right away.
I implemented a photo viewer some time ago which handles browser resizing properly. I even did content resizing to avoid clipping as far as I could. You can find a sample here - ...
-
That's the way I do it as well. I use 7-zip exclusively but I suppose most zip programs will work fine.
-
The reason is that the xap file generated for the main application should contain the custom control dll if it has to work properly.
The only way this can be achieved is to add a reference to the custom control dll in the main application. The test project xap will contain the custom control dll but this will not be propagated to the main ...
-
[quote user="jackbond"]You don't need javascript to do this. For example, click the Khet link below, and view the source. No resize handlers required. All you need is a root control that stretches vertically and horizontally.[/quote]
I agree! Also the javascript solution will not work in full screen mode.