Click here to Skip to main content
15,885,891 members

Comments by John Whitmire (Top 20 by date)

John Whitmire 18-Dec-20 15:33pm View    
I have incurred the same need. I want the user to be able to minimize the window, but not maximize it. The window size is very small, and the full Control Box crowds the title bar such that the window title only shows a couple characters. (I thought I remembered from Win7 that the disabled button wouldn't show, but that isn't the case in Win10. The Control Box itself was a lot smaller in Win7, too.)
Do you have a little bit of starter code I can use to create my own, smaller control box?
John Whitmire 13-Aug-20 9:51am View    
@Richard Deeming - Oh, if it were only that simple. Adding the Dictionaries to App.xaml is step 1 of the Getting Started instructions. They are there; if they weren't, I would not have access to the resources I am already using (styles and brushes).
Rebuilding the libraries with the Demo app incurred a slew of warnings about things that aren't defined in the referenced namespace(s). Around half relate to Dragablz and MahApps which I don't have, so they don't concern me, but the rest hint that a large renaming effort occurred that did not get propagated to all the places it affected... like the Getting Started document. I think I know where to look now for the answer to #1, and #3 may just be a misunderstanding of what was presented in the videos.
John Whitmire 29-Jan-19 16:25pm View    
That helps, but I still don't get it. If I had a scenario where I might use PropagateFlags.InheritOnly, what would it look like? What is the difference between PropagateFlags.None and PropagateFlags.NoPropagateInherit? It seems that at least one of the two values in an AccessRule (Inheritance or Propagation) will always be None. Is that what I'm missing?
John Whitmire 27-Jun-18 12:14pm View    
Bingo! Top vs. Bottom was the silver bullet.
John Whitmire 26-Jun-18 16:32pm View    
Thanks for your input. I think I'll file this one in the "just because" category under Microsoft and move on.
@Ralf, I'll take your suggestion and move the anchor for those buttons to top-right since the form isn't allowed to grow vertically. It will be interesting to see if that works.