Advanced Forum Search Results
-
Blend will not show any custom events for a user control that is open in the designer - only custom events for child controls of the open control.
So you have to add your event to another user control and add that to Page.xaml, then select the child control in Objects & Timeline and the new event should show. You cannot simply add an event ...
-
To add an event to a control (user or otherwise) add something similar to you control code:
// expose the event
public event EventHandler<EventArgs> MyEvent;
// helper method to fire the ...
-
I concur with Skyrunner, it is better to use LINQ; it is much more powerful and elegant. If you have a learning curve to climb regarding parsing or generating XML I think its best to spend your time researching LINQ. But just for the record here is how to count your books using a ...
-
LinearGradientBrush has a GradientStops property, which is of type GradientStopCollection. Each GradientStop within the collection has a .Color property.
Questions like this can easily be answered by looking at the SDK documentation for the given type.
-
The ToString() method of Color returns the fimiliar #AARRGGBB string.
-
I concur. This may also be a threading artefact due to the async handler possibly running on a different thread to the main UI thread, but just guessing.
This is however a good thing to know about.
Main thing I guess is to not do any important work within the controls Loaded handler, and keep simple state setup to the constructor, and then do ...
-
Thnaks for the update.
-
Thought as much. I'm already creating my own custom controls that inherit from TabControl and TabItem, so easily done.
Thanks.
-
Here is a XAML snippet of a template I use in a custom control that allows a button to be dragged and sized etc on a "design" surface. Long story short is I had to write a proof of concept for replacing one of our business applications (thick client) that allows users to design user input forms.
<ControlTemplate ...
-
Beaten again by Skyrunner, but Ill post this anyway.
This is WPF XAML not Silverlight.
Never the less, I think you are misunderstanding what's going on here. InnerControl is a UserControl; just a composite of all the XAML within it. This is fine; you can create an instance of it anywhere else (but what you get is what the XAML defines its ...