Click here to Skip to main content
15,909,332 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionScreen Scraping Windows App Pin
mr_1234522-Jun-06 1:30
mr_1234522-Jun-06 1:30 
QuestionTextBox Methods In VC.Net Pin
Nagaraju_Focus22-Jun-06 0:55
Nagaraju_Focus22-Jun-06 0:55 
AnswerRe: TextBox Methods In VC.Net Pin
MatthewAnderson26-Jun-06 3:55
MatthewAnderson26-Jun-06 3:55 
Questionconverting exe to Web Application Pin
Shailesh Ha22-Jun-06 0:20
Shailesh Ha22-Jun-06 0:20 
AnswerRe: converting exe to Web Application Pin
Dave Kreskowiak22-Jun-06 1:28
mveDave Kreskowiak22-Jun-06 1:28 
QuestionWhat is Serialize and MarshalByRef ? Pin
webC#21-Jun-06 20:02
webC#21-Jun-06 20:02 
AnswerRe: What is Serialize and MarshalByRef ? Pin
Josh Smith23-Jun-06 4:24
Josh Smith23-Jun-06 4:24 
QuestionCan't implement real-world UI using XAML. Pin
nicknotyet21-Jun-06 11:22
nicknotyet21-Jun-06 11:22 
Here's my scenario:

I have a piece of UI that accepts that takes a value (happens to be a property on a custom object) in an edit control. When the user commits the change, the form controls are disabled and the value is applied to an underlying object, which takes a couple of seconds. When the underlying object completes the assignment of the value it fires an event indicating that the change is complete. When the event is received, the UI is enabled and the user can proceed. Should be a piece of cake.

Note: Perhaps the user experience could be designed a little better, but that is a separate issue, for now it is what it is.

After spending a couple of weeks messing around with XAML, I can't see how this can be done in XAML by a non-coding (UI person), it seems like I have to implement handlers in code behind or start building my own custom controls.

Explanation:

1) The event object is not of type Routed Event.
2) If the event was of type RoutedEventArgs, I would have to lose information that is passed in the existing event.
3) The underlying object is not a UIElement, so it can't raise that event anyway, have to subclass and create a new custom control.
4) If I implement a data binding object to catch the custom event, I have no way to "catch" the custom event or even the standard PropertyChanged notification in a useful way in XAML.
5) If I try to implement a trigger on the PropertyChange notification, I can only do so in style that cannot operate on child or parent objects (thus the form can't use a trigger and setter on propeties of the textbox)
6) Event triggers can only operate on Routed Events defined for the object in question - custom control again
7) Event triggers can only operate on the control raising the event.
8) Event triggers call handlers which are implemented in code (behind or inline).
9) yada, yada, yada

In summary, my form cannot respond to events or property changes in child objects, only the controls themselves can.
Additionally, controls only respond to predefined events, requiring sub-classing for additonal events/properties.
Finally the only events at my disposal are of type Routed Events so a limited amount of information can be provided.

Granted, today I do not have any kind of Markup language for my UI folks to use that can readily transfer to Visual Studio, but even with XAML, a programmer is still required to implement the code behind and wire the layout together. The idea that UI folks can develop applications in XAML while coders just work on DataSources and Validation objects seems to be a myth, or at least a Nirvana that NET 3.0 doesn't acheive.

Am I missing something. Seems like I am learning a whole new language and shifting to a new development paradigm just so I can import UI layout from a designer tool.


AnswerRe: Can't implement real-world UI using XAML. Pin
Josh Smith22-Jun-06 4:29
Josh Smith22-Jun-06 4:29 
GeneralRe: Can't implement real-world UI using XAML. Pin
nicknotyet22-Jun-06 8:21
nicknotyet22-Jun-06 8:21 
GeneralRe: Can't implement real-world UI using XAML. Pin
Dustin Metzgar22-Jun-06 8:32
Dustin Metzgar22-Jun-06 8:32 
GeneralRe: Can't implement real-world UI using XAML. Pin
nicknotyet22-Jun-06 11:28
nicknotyet22-Jun-06 11:28 
GeneralRe: Can't implement real-world UI using XAML. Pin
Josh Smith22-Jun-06 11:24
Josh Smith22-Jun-06 11:24 
GeneralRe: Can't implement real-world UI using XAML. Pin
nicknotyet22-Jun-06 11:27
nicknotyet22-Jun-06 11:27 
AnswerRe: Can't implement real-world UI using XAML. Pin
Dustin Metzgar22-Jun-06 4:42
Dustin Metzgar22-Jun-06 4:42 
QuestionXAML / Grid Pin
Andre xxxxxxx21-Jun-06 5:19
Andre xxxxxxx21-Jun-06 5:19 
AnswerRe: XAML / Grid Pin
Dustin Metzgar21-Jun-06 5:44
Dustin Metzgar21-Jun-06 5:44 
GeneralRe: XAML / Grid Pin
nicknotyet21-Jun-06 6:09
nicknotyet21-Jun-06 6:09 
GeneralRe: XAML / Grid Pin
Andre xxxxxxx21-Jun-06 6:27
Andre xxxxxxx21-Jun-06 6:27 
GeneralRe: XAML / Grid Pin
Dustin Metzgar21-Jun-06 6:38
Dustin Metzgar21-Jun-06 6:38 
GeneralRe: XAML / Grid Pin
Andre xxxxxxx21-Jun-06 6:48
Andre xxxxxxx21-Jun-06 6:48 
GeneralRe: XAML / Grid Pin
Dustin Metzgar21-Jun-06 6:56
Dustin Metzgar21-Jun-06 6:56 
GeneralRe: XAML / Grid [modified] Pin
Josh Smith21-Jun-06 7:16
Josh Smith21-Jun-06 7:16 
GeneralRe: XAML / Grid Pin
nicknotyet21-Jun-06 7:15
nicknotyet21-Jun-06 7:15 
AnswerRe: XAML / Grid Pin
Josh Smith21-Jun-06 7:12
Josh Smith21-Jun-06 7:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.