<
telerik:RadGridView
Name
=
"gdTestRecords"
DockPanel.Dock
=
"Bottom"
AutoGenerateColumns
=
"False"
ClipboardCopyMode
=
"All"
MouseDoubleClick
=
"gdTestRecords_MouseDoubleClick"
SelectionMode
=
"Extended"
SelectionUnit
=
"FullRow"
MaxHeight
=
"600"
ScrollViewer.VerticalScrollBarVisibility
=
"Visible"
>
Telerik.Windows.Controls DelegateCommand
public
class
CreateAuthorizationViewModel : ViewModelBase
{
private
Authorization authorization;
private
AuthorizationRepository authorizationRepository;
private
DelegateCommand saveAuthorizationCommand;
public
DelegateCommand SaveAuthorizationCommand
{
get
{
return
saveAuthorizationCommand;
}
}
public
CreateAuthorizationViewModel()
{
InitializeCommand();
}
private
void
InitializeCommand()
{
saveAuthorizationCommand =
new
DelegateCommand(SaveAuthorization, CanSaveAuthorization);
}
private
void
SaveAuthorization(
object
parameter)
{
authorizationRepository.Save();
}
private
bool
CanSaveAuthorization(
object
parameter)
{
//I would have validation logic here
return
true
;
}
}
This is the border of the RadPropertyGrid with Expression_DarkTheme :
http://img163.imageshack.us/img163/4715/capturemft.png
I want to apply the same border at a Rectangle.
rect = new Rectangle();
rect.Stroke = Brushes.?;
But i don't know what brushes to use...
Thanks for your help !
PersistenceStorage
.Persist(MainGrid, ref stream, PersistenceStorage.PersistenceAction.Save, out errMsg);
static
public class PersistenceStorage
{
static public bool Persist(object pObject, ref Stream pStream, PersistenceAction pPersistenceAction, out string pErrorMessage)
{
mResult =
true;
pErrorMessage =
string.Empty;
PersistenceManager manager = new PersistenceManager();
manager.PersistenceError +=
new Telerik.Windows.Persistence.Events.PersistenceErrorEventHandler(manager_PersistenceError);
try
{
if (pPersistenceAction == PersistenceAction.Load)
{
if (pObject != null && pStream != null)
{
pStream.Position = 0L;
manager.Load(pObject, pStream);
}
else
{
mResult =
false;
}
}
else if (pPersistenceAction == PersistenceAction.Save)
{
if (pObject != null)
{
pStream = manager.Save(pObject);
}
else
{
mResult =
false;
}
}
}
catch
{
mResult =
false;
}
finally
{
manager.PersistenceError -=
new Telerik.Windows.Persistence.Events.PersistenceErrorEventHandler(manager_PersistenceError);
pErrorMessage = mErrorMessage;
}
return mResult;
}
static void manager_PersistenceError(object sender, Telerik.Windows.Persistence.Events.PersistenceErrorEventArgs e)
{
mErrorMessage = e.Exception.Message;
mResult =
false;
}
public enum PersistenceAction { Load, Save }
static private string mErrorMessage;
static private bool mResult;
}
We are facing a problem while adding steps in Test studio.
When we are working web and wpf at a time we are not a able to add new steps into Wpf test and while adding the code which is lies in Webtest that is deleting.
Please let me know solution for this problem.
Please find the attachment of error message which we are getting while adding steps.