vb.net - WPF Property grid using PropertyInspectorView -
i using propertyinspectorview in workflowdesigner property grid in wpf application.
http://img89.imageshack.us/img89/2176/propertygrid.jpg
here want to,
remove "clear" button
change icons/background color of "categorize" , "sort a-z" buttons.
move these 2 buttons right side of search text box.
change colors (background, font, border)
please let me know if these things possible? how?
to change colors use following keys,
propertyinspectorbackgroundbrushkey
propertyinspectorborderbrushkey
propertyinspectorcategorycaptiontextbrushkey
propertyinspectorpanebrushkey
propertyinspectortoolbarbackgroundbrushkey
propertyinspectorselectedbackgroundbrushkey
propertyinspectorselectedforegroundbrushkey
dim designer new workflowdesigner() dim rd string = "<resourcedictionary x:uid='resourcedictionary_1' xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml' xmlns:sap='clr-namespace:system.activities.presentation;assembly=system.activities.presentation' xmlns:sapv ='clr-namespace:system.activities.presentation.view;assembly=system.activities.presentation'> <solidcolorbrush x:uid='solidcolorbrush_01' x:key='{x:static sap: workflowdesignercolors.propertyinspectorbackgroundbrushkey}' color='red'/> </resourcedictionary>" dim reader new stringreader(rd) dim xmlreader xmlreader = xmlreader.create(reader) dim fontandcolordictionary resourcedictionary = directcast(system.windows.markup.xamlreader.load(xmlreader), resourcedictionary) dim hashtable new hashtable() each key string in fontandcolordictionary.keys hashtable.add(key, fontandcolordictionary(key)) next designer.propertyinspectorfontandcolordata = xamlservices.save(hashtable)
Comments
Post a Comment