private void SetMaxWidth() { if (CharacterNameCollection.Count > 0) { string longestString = CharacterNameCollection.OrderByDescending(s => s.Length).First(); MaxWidth = MeasureStringSize.GetMaxStringWidth(longestString); } }
private void SetMaxWidth() { if (VnNameCollection.Count > 0) { string longestString = VnNameCollection.OrderByDescending(s => s.Length).First(); MaxListWidth = MeasureStringSize.GetMaxStringWidth(longestString); } if (VnInfoTagCollection.Count > 0) { string longestString = VnInfoTagCollection.OrderByDescending(s => s.Length).First(); MinWidthTags = MeasureStringSize.GetMaxStringWidth(longestString); } }
private void SetMaxWidth() { string longestString = UserListCollection.OrderByDescending(s => s.Length).First(); MaxWidth = MeasureStringSize.GetMaxStringWidth(longestString);; }