I found this class in my research but I do not know how to use it. Moreover, it seems to me that the ConvertBack () method is not completely completed.If someone has already used his help will be invaluable for me.
here is the class
publicclass ByteArrayToImageSource : IValueConverter
#region Implementation of IValueConverter
publicobject Convert(objectvalue, Type targetType, object parameter, CultureInfo culture)
var byteArrayImage = valueas byte;
if (byteArrayImage != null && byteArrayImage.Length > 0)
var ms = new MemoryStream(byteArrayImage);
var bitmapImg = new BitmapImage();
bitmapImg.StreamSource = ms;
publicobject ConvertBack(objectvalue, Type targetType, object parameter, CultureInfo culture)
This is a converter - it's meant to be used in your XAML to convert from one type to another - in this case, to take a series of bytes and to return an image from it. If you're using this in XAML and you aren't updating the image on the screen, you don't need to worry about the ConvertBack method - it's there to support Binding back from the XAML to the property you're binding to.
Multiple views can attach to the same command and all get notified when the button is clicked. The one gotcha though is the IActiveAware portion. Your ViewModelBase class needs to be tweaked to properly set the IsActive flags in the commands somehow.
Basically the way the CompositeCommand works is that say vmA and vmB attach... by default, the button will only enable if both return true for canExecute. By setting the IsActive flag on the commands properly, you can make it work in a way where the inactive commands are ignored. For example, if vmA.SaveCommand is not active, only vmB.SaveCommand will get the canexecute/execute calls.
So have you set breakpoints in the debugger and determined which part of the process isn't happening as you expect?
The CustomClick event in usercontrol.xaml.cs or the btn1_CustomClick in MainWindow.xaml.cs ?
Apart from its just plugin it is used to create Rich UI, games and media based application on internet. It works at client side so there is lot saving of network bandwidth until you are not requesting any data to the server.
Please read it correct. I said it works on client side. Again it depends on where you store the data if its in database it may be in server. However we may save data in-memory collections as well which will be reside in client side. It totally depends on requirement.
I am looking at building a very simple schedule display layout something like the telerik TV schedule[^]. Basically a row header with multiple textblock fields and 1 month on a grid display that show a max of 1 event per day per row (no scheduling required).
Both the ScheduleView and PivotGrid are way over the top for what I want to achieve, but between the templated row header and the dynamic date columns I can't decide which control to use.
Never underestimate the power of human stupidity
Why not just use that one? Easier then writing your own. If I was bored and wanted to write my own...
The left two columns would each be an ItemsControl styled with a vertical font and some borders.
The top row would be another ItemsControl styled with the time and tick marks, etc.
The grid would be 2 ItemsControls... one for the rows that contains another ItemsControl for the columns.
I'd package the control to hide all that though from the developer.
I wouldn't really reuse any control besides the ItemsControl. Doesn't seem like there is much functionality that can be reused from other controls.
how to use validations with in a textbox it should not allow me to enter a 11 value my requirment is it only should accept 10 digit number if i tryed to press 11 value it has to be show an error message
I want to make an windows 8.1 store app(can be desktop but prefer store).
I know the following languages :
visual basic 2012(win rt)(preferable)
visual c++( not so good at it)
i have to make the beta fast
->a interactive full screen homepage with 3 buttons and settings in the charm bar
HOME PAGE buttons:-
->1st button: record screen: records the desktop and other win 8 apps with webcam support and audio from mic
->2nd button: Edit video: more like mixing. you can drag-drop video to timeline(like windows movie maker) and 2 channel audio(one for voice and one for song)
->3rd button: upload video: push the video to the web as mp4 or avi at youtube or facebook or save them to disk
(optional) at the home screen when user say some command like 'program run record' or 'program edit video', the program does the same.
i want some leads...i have no experience in intensive, professional programming but i want to do so.
i would really appreciate if you tell me what i have to do,
things that are easy,
things that need some stress
and work on!