Quantcast
Channel: wixsharp Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1354

New Post: FeaturesDialog does not work

$
0
0
The latest NuGet prerelease v1.0.40.3
Install-Package WixSharp.bin -Pre
does the trick with automatic fallback to the minimized custom drawing in case of any runtime error in the drawing routine.

Note that if you don't set the value of MinimalCustomDrawing Wix# will try to determine its value at runtime. This is the whole algorithm expressed in a pseudo-code:
if MinimalCustomDrawing.IsSet:
    if MinimalCustomDrawing == true:
        CustomDrawModel = TextOnly 
    else:
        CustomDrawModel = DrawAll
else:
    if current_DPI == 96:
        CustomDrawModel = DrawAll 
    else:
        CustomDrawModel = TextOnly 
...
void DrawAll_Routine()
{
    try:
        // do the drawingcatch:
        CustomDrawModel = TextOnly
}
I checked the source code and the impact of MinimalCustomDrawing = true is even less than I anticipated. It is in fact a check box who gets grayed out if the node is a read-only one, not the text. Thus the visual compromize is very minor.

I also saw the opportunity there to fall back to default TreeView checkbox node rendering automatically as the result of the handled runtime exception. This way you don't have to set MinimalCustomDrawing = true at compile time. This change will be available with the very next release (very soon).

Viewing all articles
Browse latest Browse all 1354

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>