|
Mark Walter Smith wrote: HTML5, FLash or Silverlight
Each of these technologies will have their own advantages / disadvantages.
Predicting which one will outlast the other is a very very hard thing to do.
I would suggest you list down what you need to do, and then compare your requirements with what these technologies offer. Choose what gives you what you are looking for.
Me, I'm dishonest. And a dishonest man you can always trust to be dishonest. Honestly. It's the honest ones you want to watch out for...
|
|
|
|
|
|
Hey folks, I have a background in traditional enterprise software, and I am trying to gain expertise on newer technologies. I will greatly appreciate, if you could help me understand, when to use HTML5, when to use Flash and when to use Silverlight. If you could point to some tools etc that will be helpful. Thanks for your help
|
|
|
|
|
I think the simple answer is: You pay your money, and take your chance!
I.e. Did you buy a BetaMax, or a VHS video recorder?
Why knows what the future will hold...
Your not lightly to get a completely unbiased answer in this Message Board, as we are all Silverlight freaks & geeks here.
I'm sure there are some people out there, being paid a lot of money to predict which technology will win out. & even if they knew, would they really tell us?
All I can suggest, is decide the area you want to work in, & pick the technology that best fits best!
P.S. Want to buy a BetaMax video recorder, I'll throw in a free HD-DVD player!!! Ha Ha
Cheers,
Alan
|
|
|
|
|
Hi,
I have a lable control and textbox control.I am trying to provide a Keyboard shortcuts by appending '_' to one of letters in the content of lable. When I press Alt+letter it is not going to text box against this lable. In Windows forms we are able to do it. How can I achieve this in WPF?
|
|
|
|
|
You need to set the Target on the label. The reason that it does this is because the layout of the UI is controlled via a combination of the Canvas and the VisualTree so you need to tell it what it binds to. Here's a quick sample:
<Label Grid.Row="0" Grid.Column="0" Content="_Name:" Target="{Binding ElementName=txtName}" />
<TextBox Grid.Row="0" Grid.Column="2" Text="Hello there" x:Name="txtName" /> "WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Thank you very much.But do you know how to achieve same behavior with TextBlock? There is no Target properrty. How to specify keyboard shortcuts to TextBlock?
|
|
|
|
|
By default you can't. There's a technical reason which explains why there's a Label which appears so similar to a TextBlock element (in case you were wondering). Basically, TextBlock inherits directly from FrameworkElement whereas Label inherits from ContentControl . By doing this, TextBlock was free to add a Text property which only allows text. ContentControl elements, however, get a Content element which allows it to hold any form of content (that's why there's no Text element in the Label ).
In order to achieve this effect, you'd have to write an Attached Behavior which isn't a trivial undertaking, and certainly isn't worth the effort when a Label does this for you.
I hope this clarifies the whole issue for you."WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
|
|
This class is not just for use by the ObservableCollection. BTW - ClearItems removes all items from the list, and raises the CollectionChanged for this. If you want bulk capability[^], I wrote an article a while back which provides this."WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
|
|
|
I suggest you reinstall the visual studio. Most of these problems will be solved in this way.
modified 27-May-14 4:40am.
|
|
|
|
|
|
Dear friends ,
i have few clarification ...in WPF please tell me
whether is possible or not
1.move the cursor like presentation and click on a button.
2.i have styles as resource dictionary ... is it possible to have as configuration file so that i can change the style in configuration file
3.is it possible to have windows "on-Screen keyboard" brought inside our application
if any possible please give your idea .. or link ..
by
Joe
|
|
|
|
|
Hi there,
I'm new to WPF, so bear with me..
I have a Main View, and a view within it. I set the DataContext in my 'OnStartup' C# method:
Views.MainView view = new Views.MainView();
view.AssignmentView.DataContext = new ViewModels.MainViewModel(_assignmentDataSource);
I have previous / next button in my 'AssignmentView', that are linked to commands. This Moves focus from record to record as expected in my ListView, in my XAML :
<ListView Margin="10" ItemsSource="{Binding Assignments}" Grid.Row="0" BorderThickness="1" Background="{x:Null}" Foreground="Black">
<ListView.View>
<GridView>
<GridViewColumn Header="Assignment Name" DisplayMemberBinding="{Binding AssignmentName}>
</GridView>
</ListView.View>
</ListView>
Great.
However, when I use the following Stack Panel, the TextBox data does not change when I press previous / next. It stays on the first record.
<StackPanel Grid.Row="1" Orientation="Vertical" DataContext="{Binding Assignments, Mode=TwoWay}"/>
<StackPanel Orientation="Horizontal"/>
<Label Content="Assignment Name:" Margin="0,0,4,0"/>
<TextBox Width="158" Text="{Binding Path=AssignmentName}"/>
</StackPanel>
</StackPanel>
I think its a problem with the 'DataContext' - I don't think I should be wiring it up in the Stack Panel, but when I remove it, there is no data in the Stack Panel text box..
Where am I going wrong?
Any help greatly appreciated. Thanks.
Jon
bgfbgf
|
|
|
|
|
hi
How can I use up & down arrow to move textblock ??? & other controls like listbox & combobox on my user control wont active ??
plz let me know any Solution??
thnxx
|
|
|
|
|
You will need to write animcation transformation code on keydown to move these controls.
See here[^] for an example.Me, I'm dishonest. And a dishonest man you can always trust to be dishonest. Honestly. It's the honest ones you want to watch out for...
|
|
|
|
|
|
thnx alot for your solution but here is a problem, i need to move TextBlock inside Canvas or Grid not outside from these .
any solution??
|
|
|
|
|
urooj_mahmood wrote: thnx alot for your solution but here is a problem, i need to move TextBlock inside Canvas or Grid not outside from these .
You would need to move the the textblock relative to the canvas and grid, not relative to the page.
I hope that helps.Me, I'm dishonest. And a dishonest man you can always trust to be dishonest. Honestly. It's the honest ones you want to watch out for...
|
|
|
|
|
|
yes m doing the same as u said but when i move texrblock, it can move outside the Canvas or Grid but i dnt want to move Text Block outside the Canvas or Grid...
any solution??
|
|
|
|
|
You will need to write your some code to check if the textblock is moving outside the canvas. If it is, you do not allow it to move (transform) further.Me, I'm dishonest. And a dishonest man you can always trust to be dishonest. Honestly. It's the honest ones you want to watch out for...
|
|
|
|
|
|
|
I could not locate a sample, but this is what I would do in the LayoutUpdated handler -
if ((((FrameworkElement)myControl).DesiredSize.Width) > myContainer.Width)<br />
{<br />
_translateTransform.X = myContainer.ActualWidth -(((FrameworkElement)myControl).DesiredSize.Width);<br />
}
The same thing needs to be implemented for the y co-ordinate.
Hope it helps.Me, I'm dishonest. And a dishonest man you can always trust to be dishonest. Honestly. It's the honest ones you want to watch out for...
|
|
|
|
|