RenderOptions.BitmapScalingMode="NearestNeighbor" RenderOptions.EdgeMode="Aliased"
Showing posts with label ryarc. Show all posts
Showing posts with label ryarc. Show all posts
Monday, June 27, 2011
Sunday, June 26, 2011
Text Trimming and ToolTip bind to itself
TextTrimming="CharacterEllipsis" TextWrapping="Wrap" ToolTip="{Binding Text, RelativeSource={RelativeSource Mode=Self}}
Sunday, June 5, 2011
Autumn of Agile Screencast Series
Guys
http://www.autumnofagile.net/
this is very interesting & easy to understand agile video
--vishal
http://www.autumnofagile.net/
this is very interesting & easy to understand agile video
--vishal
Friday, May 27, 2011
Cool stuff in .NET 4.0: System.Threading.Tasks.TaskScheduler
private void Save()
{
System.Threading.Tasks.TaskScheduler uiScheduler = System.Threading.Tasks.TaskScheduler.FromCurrentSynchronizationContext();
System.Threading.Tasks.Task<ErrorEnum>.Factory.StartNew(() =>
{
ErrorEnum callResult = ErrorEnum.OK;
try
{
IsIdle = false;
callResult = (ErrorEnum)DataContext.DomainRepository.SaveDomain(_domain);
if (callResult != ErrorEnum.OK)
{
// If remote saving fails, rollback all the changes
Rollback();
}
else
{
// If remote saving succeeds, save changes to local db
SaveChangesToLocalDB();
}
return callResult;
}
catch (Exception ex)
{
LogManager.AddCMEventLog("DomainSettingsViewModel.Save", ex);
// If anything goes wrong, rollback all the changes
return ErrorEnum.LocalFatalAnonymousError;
}
finally
{
IsIdle = true;
}
}).ContinueWith(task => ShowResult(task.Result), uiScheduler);
}
This running tasks in background thread, then call UI thread to execute the ShowResult() function, Just like UIDispatcher
This running tasks in background thread, then call UI thread to execute the ShowResult() function, Just like UIDispatcher
Thursday, March 10, 2011
Subscribe to:
Posts (Atom)